Anyway of setting Request.Params type values from javascript?

  • Thread starter Thread starter foldface
  • Start date Start date
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
 
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)
 
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
 
Back
Top