473,403 Members | 2,183 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

Anyway of setting Request.Params type values from javascript?

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
Nov 18 '05 #1
2 2126
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)
<fo******@yahoo.co.uk> wrote in message
news:ac**************************@posting.google.c om...
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

Nov 18 '05 #2

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
-----Original Message-----
Hi
Pardon the vague-ness, I mean the ?name=value stuff in the URL. Can youset this within javascript on a page such that when an asp.netbutton is clicked then these values are passed as params?

On a side note, whats the earliest place on a page where some form oftext 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 readin, for example, OnInit?

Ta
F
.

Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Tobias Olbort | last post by:
Hello, i've a outer function, which takes a params-array as a parameter. I want to pass this array to inner function with a params-array (e. g. string.format). When i've passed an integer to...
3
by: 2003et | last post by:
How can I understand a Request.Params object's type? I need this: User enters www.domain.com/myfile.aspx?6 then myfile.aspx.cs use "SELECT name FROM people WHERE id="+Request.Params; so if...
3
by: Stan Huff | last post by:
Is there any way to disable the "params" on a particular invocation so that one can pass an array containing the arguments and not have receiver get an array having you argument array stuffed into...
6
by: Praveen | last post by:
As you all know the value of input, checkbox and other "user editable" elements can be retrieved on postback via Request.Params list, if you know their ID. However, if there is a span element...
10
by: Mr Newbie | last post by:
DropDown lists and Listboxes do not appear in the list of controls and values passed back to the server on PostBack in Request.Form object. Can someone confirm this to be correct and possibly...
3
by: oopaevah | last post by:
Hello To prevent scross site scripting I am validating each value in the Request.Params collection against the following regular expression : ^*$ This only allows the following characters :...
11
by: Alexander Walker | last post by:
Hello I would like to write a method that allows me to pass a reference to an instance of a class, the name of a property of that class and a value to set that property to, the method would then...
4
by: Scott Durrett | last post by:
I have 2 pages. Page1 is a .html page with a form, hidden input, and a submit button. I have the action set to Post. <form id="form1" action="paymentcatch.aspx" method="post"> <input...
1
by: laredotornado | last post by:
Hi, I'm using PHP 4.4.4 on Apache 2 on Fedora Core 5. PHP was installed using Apache's apxs and the php library was installed to /usr/local/php. However, when I set my "error_reporting"...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.