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