How do you set the autopostback of a form?
btw, I was able to resolve my postback on btn problem by using a
hyperlink in place of the button.
(sorry it's been a while since I replied, but thanks for the suggestion)
Chris
akokini john wrote the following - Dated 09/02/2004 8:37 PM:
> Hi,
>
> When you press enter, automatically the form will
> submit, it's because of the postback. If you dont want
> to automatically submit the form, set the autopostback
> of the form to false
>
>
> --- Alvin Bruney <[EMAIL PROTECTED]> wrote:
>
> > start here to see what you dealing with
> > http://www.allasp.net/enterkey.aspx
> > Regards,
> > Alvin Bruney
> > [ASP.NET MVP
> > http://mvp.support.microsoft.com/default.aspx]
> > Got tidbits? Get it here... http://tinyurl.com/27cok
> > ----- Original Message -----
> > From: Chris Conboy
> > To: [EMAIL PROTECTED]
> > Sent: Thursday, September 02, 2004 2:50 PM
> > Subject: [C#.NET] Enter Key presses defult button
> >
> >
> > I have a web app, with 3 buttons, and a multiline
> > textbox, and various
> > other controls. Pressing the enter key causes one
> > of the buttons to be
> > pressed, submits the form.
> >
> > I don't want any button to be pressed when the
> > enter key hits, but I do
> > want the enter key to work when editing inside the
> > multiline text box.
> > I'm willing to redirect the enter key to a
> > specific button when enter is
> > pressed, as long as enter will still work to give
> > me a newline in the
> > multiline textbox.
> >
> > I can supress the enter key for the form, which
> > means that the enter key
> > won't work in the textbox. I can also jump through
> > hoops to write code
> > to intercept the enter key for each control, or
> > hook up a single handler
> > for all controls. Neither of these solutions is
> > satisfactory.
> >
> > Does anyone have any idea how this can be handled?
> >
> > Chris
| Yahoo! Groups Sponsor | |
|
|
Yahoo! Groups Links
- To visit your group on the web, go to:
http://groups.yahoo.com/group/CSharpNET/
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
