Hi All,
I just started to re write an ASP site to ASP.NET 3.
I'm trying to update a MySql table when the page loads however the table is not being updated.
Here is what i'm doing:
Sub Page_Load(Source as Object, E as EventArgs)
DS1.ConnectionString = "driver={MySQL ODBC 3.51 Driver};SERVER=server;DATABASE=dddd;UID=ccc;PWD=xx;OPTION=3;"
Dim MySQL As String = "update static set hits=hits+1 where pagename ='artists'"
End Sub
</script>
I think the problem is that the update query is not being executed.
Can any one tell what do I need to do in order to fix it?
Thanks
Simon
I just started to re write an ASP site to ASP.NET 3.
I'm trying to update a MySql table when the page loads however the table is not being updated.
Here is what i'm doing:
Sub Page_Load(Source as Object, E as EventArgs)
DS1.ConnectionString = "driver={MySQL ODBC 3.51 Driver};SERVER=server;DATABASE=dddd;UID=ccc;PWD=xx;OPTION=3;"
Dim MySQL As String = "update static set hits=hits+1 where pagename ='artists'"
End Sub
</script>
I think the problem is that the update query is not being executed.
Can any one tell what do I need to do in order to fix it?
Thanks
Simon