postback and focus problem

M

mr peanut

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?
 
B

Bob Barrows [MVP]

mr said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,093
Messages
2,570,607
Members
47,227
Latest member
bluerose1

Latest Threads

Top