So making a .Net site with VB and running off of a MySQL server.
Trying to use a variable within the connectionstring
to only retrieve certain data.
I Currently have in the header:
<script language="vbscript">
Dim varSQLcommand as String
varSQLcommand = "1"
</script>
and the connection string of
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$ ConnectionStrings:emergency systemsConnectionString3 %>"
ProviderName="<%$ ConnectionStrings:emergency systemsConnectionString3.ProviderName %>"
SelectCommand= "SELECT * from tbldisaster WHERE Disaster_ID = " & varSQLcommand & "" >
</asp:SqlDataSource>
Going to replace varSQLcommand = "1"
with varSQLcommand = Request.QueryString("ID")
and make the url disasterdetails.aspx?ID={1}
.
is this the Correct way to do what I want to do?