Home All Groups Group Topic Archive Search About
Author
7 Nov 2005 12:37 PM
Prakash
i am using a textbox and  i need to popup a dialog on Enter Key, i have used
javaScript for it.The pop-up is coming but the page gets posted.I am using
asp:button to save the information in page.i have set tabindex and focus but
nothing is working,how to stop the page being posted, Is there any way, Help
me.

Thanks in Advance.

Prakash.V

Author
7 Nov 2005 5:54 PM
Alvin Bruney - ASP.NET MVP
you need to return false to cancel the post event in your javascript
function

--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @ www.lulu.com/owc
Forth-coming VSTO.NET - Wrox/Wiley 2006
-------------------------------------------------------



Show quoteHide quote
"Prakash" <vvpraka***@gmail.com> wrote in message
news:#vg8Jf54FHA.1148@tk2msftngp13.phx.gbl...
> i am using a textbox and  i need to popup a dialog on Enter Key, i have
used
> javaScript for it.The pop-up is coming but the page gets posted.I am using
> asp:button to save the information in page.i have set tabindex and focus
but
> nothing is working,how to stop the page being posted, Is there any way,
Help
> me.
>
> Thanks in Advance.
>
> Prakash.V
>
>
Author
8 Nov 2005 4:34 AM
Prakash
Thanks,

        i used returnValue = false, it works for me.

Prakash.v
Show quoteHide quote
"Alvin Bruney - ASP.NET MVP" <www.lulu.com/owc> wrote in message
news:up08WR84FHA.2548@TK2MSFTNGP10.phx.gbl...
> you need to return false to cancel the post event in your javascript
> function
>
> --
> Regards,
> Alvin Bruney [MVP ASP.NET]
>
> [Shameless Author plug]
> The Microsoft Office Web Components Black Book with .NET
> Now Available @ www.lulu.com/owc
> Forth-coming VSTO.NET - Wrox/Wiley 2006
> -------------------------------------------------------
>
>
>
> "Prakash" <vvpraka***@gmail.com> wrote in message
> news:#vg8Jf54FHA.1148@tk2msftngp13.phx.gbl...
> > i am using a textbox and  i need to popup a dialog on Enter Key, i have
> used
> > javaScript for it.The pop-up is coming but the page gets posted.I am
using
> > asp:button to save the information in page.i have set tabindex and focus
> but
> > nothing is working,how to stop the page being posted, Is there any way,
> Help
> > me.
> >
> > Thanks in Advance.
> >
> > Prakash.V
> >
> >
>
>