Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Keep LinkButton from postback

Reply
Thread Tools

Keep LinkButton from postback

 
 
DavidC
Guest
Posts: n/a
 
      02-03-2010
I have a LinkButton that I only want it to run a javascript function at the
client so I put OnClientClick="return showdiv();" on it and the function
returns false but the form still does a postback. How can I stop this?
Thanks.
--
David
 
Reply With Quote
 
 
 
 
DavidC
Guest
Posts: n/a
 
      02-03-2010
Ignore this. There was an error in the javascript function.
--
David


"DavidC" wrote:

> I have a LinkButton that I only want it to run a javascript function at the
> client so I put OnClientClick="return showdiv();" on it and the function
> returns false but the form still does a postback. How can I stop this?
> Thanks.
> --
> David

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LinkButton & Postback Eric ASP .Net 4 11-14-2010 11:20 AM
Linkbutton does not look like a linkbutton Sathyaish ASP .Net 3 09-08-2005 09:41 AM
Linkbutton does not look like a linkbutton Sathyaish ASP .Net Datagrid Control 1 09-08-2005 08:44 AM
Disable Linkbutton Before Postback? Al Cohen ASP .Net 6 12-28-2004 05:23 PM
LinkButton CommandArgument bound property loses value on postback =?Utf-8?B?QmVuamFtaW4gSm9sZGVyc21h?= ASP .Net 2 08-21-2004 05:57 PM



Advertisments
 



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