Tuesday, 31 July 2012

Windows 7 automatic logon

1- cmd.exe
2- Tyep: "control userpasswords2"
3- "Uncheck "Users must enter a user name and password to use this computer"


Note: This option might not be available to computers belonging to domains.


AJAX TabContainer within FormView fails to insert\update data


Unfortunately that is true, you have to transfer the data manually as below:

Protected Sub SqlDataSource_Updating(sender As Object, e As System.Web.UI.WebControls.SqlDataSourceCommandEventArgs) Handles SqlDataSource_Patient.Updating

The following is how to reference a TextBox from a TabContainer inside a FormView:
Dim TabContainer_CaseInfo As TabContainer =                        CType(FormView_Main.FindControl("TabContainer_CaseInfo"), TabContainer)

Dim TabPanel_Basic As TabPanel =  
     CType(TabContainer_CaseInfo.FindControl("TabPanel_Basic"), TabPanel)

Dim DOBTextBox As TextBox = CType(TabPanel_Basic.FindControl("DOBTextBox"), TextBox)


More references:
http://stackoverflow.com/questions/969784/ajax-tabcontainer-inside-formview-not-inserting-values

Monday, 30 July 2012

Microsoft IIS Versions


XP  = IIS 5.1
Server 2003 = IIS 6
Server 2008 = IIS 7
Windows 7   = IIS 7.5

Disable line wrap in Visual Studio 2010


Tools -> Options -> Text Editor -> HTML -> Formatting -> Tag Wrapping -> Wrap tags when exceeding specified length (uncheck, or adjust length)

Thursday, 26 July 2012

Accessing host HDD from Remote Desktop Connection


From the guest OS: 
\\tsclient\C

SSMS changing logged in Windows Authentication account

Use the other account to open the SSMS:

1- Open command prompt: cmd.exe
2- 
C:\Program Files\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE>
runas /netonly /user:DomainName\NewUsername ssms.exe

Monday, 23 July 2012

Failing to extend iOS 5 "Require passcode" value

If you are among those thousands suffering from this same symptom, then you are most probably among the victims of an Exchange mail policy!

My advise would be to head to your Exchange Mail Server Administrator and ....%^&^&**:(...
And report it to Apple in hope they release this silly restriction!


Initially (Before Exchange) that displayed up to 4 hours!!!