Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net Web Controls (http://www.velocityreviews.com/forums/f63-asp-net-web-controls.html)
-   -   LinkButton Event Firing (http://www.velocityreviews.com/forums/t771498-linkbutton-event-firing.html)

Michael 10-23-2003 01:56 PM

LinkButton Event Firing
 
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.

10-23-2003 07:54 PM

LinkButton Event Firing
 
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!!

>-----Original Message-----
>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.
>.
>



All times are GMT. The time now is 10:59 AM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57