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!!!

Saturday, 21 July 2012

iPad 2 iOS 5 Airplane mode behavior


Both Airplane Mode and WiFi are ON


This turned out to be a very nice feature while on board disabling your mobile line and using the provided WiFi! :)

Thursday, 19 July 2012

Audit Folder\File actions such as copy move

- Administrative Tools --> Local Security Policy --> Local Policies --> Audit Object Access
- Folder\File properties --> Security Tab --> Auditing Tab

Note:
Folder\File can be set only on NTFS drives

Tuesday, 17 July 2012

Error connecting Jabra headset to the cellphone

Plug the headset into power for few seconds.
Turn OFF\ON the Bluetooth after removing the current device from the cellphone list if it exists.
Press the answer/end button until you receive a solid blue light. This may take up to 10 seconds.
Pair, using the device PIN, usually "0000"

Tuesday, 10 July 2012

Monday, 9 July 2012

Using iTunes behind a proxy frustration

Yes, me too is fed up with the number of times I have to enter the proxy account, even remember password has no value!

iTunes 10.6.3

Monday, 2 July 2012

GridView Delete Confirmation

<asp:GridView ID="GridView_Main" runat="server" ...>
<Columns>
.....

<asp:CommandField ButtonType="Image" DeleteImageUrl="Images/Delete_16.gif" ShowDeleteButton="true" CausesValidation="true" >
<HeaderStyle Width="16px" />
<ItemStyle Width="18px" />
</asp:CommandField>
</Columns>

</asp:GridView>



Protected Sub GridView1_RowDataBound(sender As Object, e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles GridView_Main.RowDataBound
.....

Dim ImagButton_Delete As ImageButton = e.Row.Cells(6).Controls(0)
ImagButton_Delete.OnClientClick = "if (!confirm('Delete?!')) return;"
.....

End Sub