control events
-
i am adding the controls at runtime. Say textboxes and buttons then how can i get the click event of these buttons.Very urgent
Mohinder Singh
Here you go...
AddHandler ControlName.EventName, AddressOf Event 'Where you write the statements
Regards, Venkatesh Mookkan. Software Engineer, India My: Website | Yahoo Group
-
Here you go...
AddHandler ControlName.EventName, AddressOf Event 'Where you write the statements
Regards, Venkatesh Mookkan. Software Engineer, India My: Website | Yahoo Group
-
what is the address of the event. i want to write "Response.Redirect("Message.aspx? Qoestion=" & TxtTopic.Text, False)" this statement in button click event.
Mohinder Singh
Try this, Assigning the Click Event to Button,
AddHandler Button1.Click, AddressOf Button1_Click
Button Click Event,
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs)
Response.Redirect("Message.aspx? Qoestion=" & TxtTopic.Text, False)
End SubThis would help, I believe....
Regards, Venkatesh Mookkan. Software Engineer, India My: Website | Yahoo Group