Tuesday, 31 July 2012
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
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
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
Tuesday, 24 July 2012
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!
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
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
- 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"
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"
Thursday, 12 July 2012
Wednesday, 11 July 2012
What does SQL data type: numeric(5, 2) mean?
numeric(5, 2) and decimal(5,2)
mean the same thing 5 digits with 2 decimal places.
e.g. 123.45
mean the same thing 5 digits with 2 decimal places.
e.g. 123.45
IE 9 showing tabs in different row
Click the Internet Explorer frame (anyway around the address bar)
Select from the dropdown menu --> Show tabs on a seperate row
Select from the dropdown menu --> Show tabs on a seperate row
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
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
<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
Subscribe to:
Posts (Atom)