Home » 2012 (Page 12)

Archive for 2012

VB.NET – passing string value from code behind to markup on the page

Solution 1 Protected doit As String = “Hello” (in .vb file) < %=Me.doit%> (inside the markup) Solution 2 ‘automatic properties Protected Property doit2 As String = “Hello” (in .vb file) < %=doit2%> (inside the markup) ‘no automatic properties Private _doit3 As String (in .vb file) Protected Property doit3 As String Get Return _doit3 End Get […]

Error – The ‘Microsoft.ACE.OLEDB.12.0’ provider is not registered on the local machine.

Applies to: Microsoft Access Database Engine 2010 Redistributable This download will install a set of components that can be used to facilitate transfer of data between 2010 Microsoft Office System files and non-Microsoft Office applications. Overview This download will install a set of components that facilitate the transfer of data between existing Microsoft Office files […]

Delete confirm message – VB.NET

Delete confirm message when deleting record in GridView <asp:TemplateField> <ItemTemplate> <asp:LinkButton ID=”LinkButton1″ Runat=”server” OnClientClick=”return confirm(‘Are you sure you want to delete this record?’);” CommandName=”Delete”>Delete </ItemTemplate> </asp:TemplateField>