postback and focus problem

postback and focus problem

am 31.07.2007 21:00:03 von mrpeanut

Say I have a textbox (autopostback=true) and a button. I enter a new value in
the textbox then - without clicking anywhere else first - I click the button.

The box's text isn't changed prior to the button's click so the new data in
the box isn't evaluated at the server. The user has to click the button twice.

I would like to change this without any scripts on the client that will be
rejected by security setting in today's browsers.

How?

Re: postback and focus problem

am 31.07.2007 21:13:06 von reb01501

mr peanut wrote:
> Say I have a textbox (autopostback=true) and a button. I enter a new
> value in the textbox then - without clicking anywhere else first - I
> click the button.
>
> The box's text isn't changed prior to the button's click so the new
> data in the box isn't evaluated at the server. The user has to click
> the button twice.
>
> I would like to change this without any scripts on the client that
> will be rejected by security setting in today's browsers.
>
> How?

There was no way for you to know it (except maybe by browsing through
some of the previous questions before posting yours - always a
recommended practice), but this is a classic asp newsgroup. ASP.Net is
a different technology from classic ASP. While you may be lucky enough
to find a dotnet-savvy person here who can answer your question, you
can eliminate the luck factor by posting your question to a newsgroup
where the dotnet-savvy people hang out. I suggest
microsoft.public.dotnet.framework.aspnet.
There are also forums at www.asp.net where you can find a lot of people
to help you.


I'm not sure why you would have an autopostback textbox AND a submit
button

--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.