i need to use the variables declared in javascript in asp.net
saw a thread suggesting hidden textfields
but that wud help in request or query strings
what if i needed to use the value of a variable declared in javascript by fulfilling some condition into an INSERT COMMAND.
the page will not be posted back
n the client side script sets the value for the variable
how do i incorporate the value in asp.net
adnan1888
0
Newbie Poster
Recommended Answers
Jump to Posti'm confused about what you are trying to do. if nothing is going to go back to your server, then how are you going to use the asp.net code?
Jump to PostStep 1: the asp code is handled by the server before the page is returned to the client.
Step 2: the javascript is handled by the clients browser after the page is returned to it
Step 3:the javascript can then affect whatever (which boxes are checked, the value …
Jump to PostA web browser, regardless of which, can only communicate to a web server via an HTTP REQUEST, which come in two flavors: POST, and GET.
POST = A form.
GET = A querystring.That's all.
A server-side language, such as ASP.NET or any other, can only generate …
All 10 Replies
campkev
0
Posting Pro in Training
adnan1888
0
Newbie Poster
campkev
0
Posting Pro in Training
adnan1888
0
Newbie Poster
campkev
0
Posting Pro in Training
tgreer
189
Made Her Cry
Team Colleague
campkev
commented:
Well put
+1
campkev
0
Posting Pro in Training
tgreer
189
Made Her Cry
Team Colleague
adnan1888
0
Newbie Poster
tgreer
189
Made Her Cry
Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.