|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Enter Key posts the Pagei 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 you need to return false to cancel the post event in your javascript
function -- Show quoteHide quoteRegards, 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 > > 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 > > > > > >
Error in DataList test query - aspnet 2.0
getting Membership userid to use and store in a custom database Gridview Updates not writing to database after clicking update General Event Handler For Runtime Buttons Dynamically Adding DataLists Custom DropDownList Control and ListItem Hyperlink Control Sorting only certain columns in datagrid GridView DataFormatString not formatting VB and get text behing java |
|||||||||||||||||||||||