Anyway of setting Request.Params type values from javascript?

F

foldface

Hi
Pardon the vague-ness, I mean the ?name=value stuff in the URL. Can you
set this within javascript on a page such that when an asp.net
button is clicked then these values are passed as params?

On a side note, whats the earliest place on a page where some form of
text from the client could be passed back to the asp.net page,
i.e. a "<input type=hidden>" element can have its text read in Page_Load,
is there anything which could be submitted by the client and read
in, for example, OnInit?

Ta
F
 
B

bruce barker

1) javascript can add to the request parameterlist by adding hidden fields
and setting their values before the submit.

2) in OnInit you can always look in the query string (form data if post) to
get the values.


-- bruce (sqlwork.com)
 
S

Scotty

have you checked out Page.RegisterClientScriptBlock

you can load a javascript function from a method in
C#/VB.NET code using the above. This might be of help to
you
 

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

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top