LinkButton Event Firing

M

Michael

I have a custom control with a linkbutton. I have all
the necessary lines of code to display the button. I'm
not quite sure how to tie a URL path to the link buttons
event function. The hyperlink control has a .NavigateUrl
property, why doesnt the LINKButton? I am new to this
and I have searched endlessly on how handle the event
this way with no avail.

ANY help would be highly appreciated. Thanks in advance.
 
G

Guest

ok, i finally figured it out on my own. for anyone who
reads this here is how i did it.

I used LinkButtons in my custom control class - included
the System.Web assembly - then used
HttpContext.Current.Response.Write("<script
language=javascript>parent.location.href
(yourURL.aspx</script>"); in the LinkButton Click event.

Now im sure there is a better way and please advise me if
so Webmasters. I did use the newsgroup as a refernce so,
Thanks!!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top