Home » Posts tagged "ASP.NET" (Page 8)

Archive for the 'ASP.NET' Tag

Microsoft.ACE.OLEDB.12.0 provider is not registered

Basically, if you’re on a 64-bit machine, IIS 7 is not (by default) serving 32-bit apps, which the database engine operates on. So here is exactly what you do: 1) ensure that the 2007 database engine is installed, this can be downloaded at: http://www.microsoft.com/downloads/details.aspx?FamilyID=7554F536-8C28-4598-9B72-EF94E038C891&displaylang=en 2) open IIS7 manager, and open the Application Pools area. On […]

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 […]

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>