Imagebutton - how to redirect?

keyframerlino

New member
Joined
Apr 18, 2008
Messages
1
Programming Experience
Beginner
Hello, Im new on vb.net and still learning. I have an image button on my page and I want a vb.net server-side code that when a user click the imagebutton the page will redirect to my other website.

Hope u can give me an idea. Thanks. :)
 
Well, you set the NavigateUrl-property for the image button.

Dynamically, you would leave the property empty and in the Page_Load sub you would give the Me.ImageButton.NavigateUrl the value used in the NavigateUrl-field of your database. How you do that depends on the database you're using.
 
Last edited:
Back
Top