Quantcast
Channel: ADO.NET, Entity Framework, LINQ to SQL, NHibernate
Viewing all articles
Browse latest Browse all 1698

How to create a querystring

$
0
0

If there is a query string at the end of my http link I dont want to display a textbox with a button (the manual way of executing my code)

If the query string is present I would like Me.Button1_Click(sender, New EventArgs()) to be fired also

I have wrapped my button in a panel as I thought this would help. this is the code I have tried with the textbox and button being got rid of but the button event doesnt fire, any help would be great !!!

exampleof querystring:

/Defaultsql.aspx?Code=sp

 Private Sub _Defaultsql_Load(sender As Object, e As EventArgs) Handles Me.Load

        If Not Page.IsPostBack Then
If Not String.IsNullOrEmpty(Request.QueryString("Code")) Then Me.Panel1.Visible = False

'--fire button event here End If End If End Sub




Viewing all articles
Browse latest Browse all 1698

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>