Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Get value on page refresh

Reply
Thread Tools

Get value on page refresh

 
 
peashoe
Guest
Posts: n/a
 
      07-05-2006
I have a simple page that has a dropdown and I need to populate a
textbox with the onchange event. How can I do that? My page refreshes,
but I don't know how to 'get' the value of the dropdown. Here is some
of my code.

<form name="ClassForm" method="Post" action="ClassEdit.asp?m=c">
<td><div class="textB">Location:</td>
<td><select size="1" name="LocationID"
onchange="document.ClassForm.submit();">

' Generate choices for Location pull-down box. An inactive location
will be flagged with *.
query = "select ID as Result," _
& " case when City is not null and City <> '' then City + ': ' +
LocationName else LocationName end as Choice," _
& " case when IsInactive=1 then '*' else '' end as Flag" _
& " from LocationTop order by City, ListOrder"
GenerateOptions Conn, query, sLocationID
</select></div></td>
</tr>
<tr>

'Max Registration will be prepopulated with Location dropdown onchange
event
<td><div class="textB">Maximum Registrations:</td>
<td><input type="text" name="MaxRegistrations" size="3"
value="????"></div></td>

thanks in advance

 
Reply With Quote
 
 
 
 
Bob Barrows [MVP]
Guest
Posts: n/a
 
      07-05-2006
peashoe wrote:
> I have a simple page that has a dropdown and I need to populate a
> textbox with the onchange event. How can I do that? My page refreshes,
> but I don't know how to 'get' the value of the dropdown. Here is some
> of my code.

http://www.aspfaq.com/show.asp?id=2270
--
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.


 
Reply With Quote
 
 
 
 
peashoe
Guest
Posts: n/a
 
      07-05-2006
Exactly what I was looking for - THANKS!

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
JSP: Session parameters vanish on refresh. How do I keep them on refresh? Per Magnus L?vold Java 1 10-08-2004 02:52 PM
How do i refresh a datagrid from a pop up window without having to refresh the whole page? Pkenty ASP .Net Web Controls 0 05-28-2004 07:06 AM
how to get value from page.asp?value=myvalue Mike Brearley ASP General 1 05-14-2004 07:54 PM
using refresh button on the menu bar to refresh two frames. Jawahar Rajan ASP General 1 10-01-2003 09:20 PM
Problem with refresh button breaking automatic refresh brian lanning ASP .Net 0 07-29-2003 07:57 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57