reading client value from code behind withoout refreshing...

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

greetings, can someone show me how to read a client side value from code
behind withouth having to resfresh the page? here is the code i've
implemented....

btnSubmission.Attributes.Add("onclick", "return confirm('" &
cboVal.SelectedItem.Value & "');")

cboval.selecteditem.value will read the value when it was 1st loaded. i want
it to dynamiclly read it? without refreshing it of cause. thanks in advance
for your help.
 
You can't "pull" a value from the client. The client "pushes" the value to
the server. That is, you can't get a value from the client without a
postback.

You seem to be trying to add some javascript to a button's onclick handler,
but this will only run on the client. It won't return a value to the server.
 

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

Back
Top