Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: C#
hi all , i have Q :
i used this this method to Return my Value
but i dont know how can I Get this value ,,
should i use this ,
plz help me Guys ! TnQ
Posted 3-Dec-12 4:43am
Edited 3-Dec-12 10:33am
ryanb31 at 3-Dec-12 11:28am
Response.Write is writing the value to the response, which usually will mean that it will be printed on the users screen. Can you explain better what you are trying to do because this doesn't make much sense?
Arun1990 at 3-Dec-12 12:57pm
I don't understand the meaning of your question,plz explain it in proper way
Sergey Alexandrovich Kryukov at 3-Dec-12 12:57pm
The question just makes no sense. Probably it is based on some misconception; but we don't know what was your thinking. A client sends HTTP request and received HTTP response, as defined by HTTP protocol. Learn about it. If a Web browser does it, you don't have to write any code to "get this value"; it is already done. If you need to write some client-side application other then a browser, ask about it, I'll tell you how to do it...

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Response.Write just ouputs a literal string to the Response Stream going to the client.
If you need this value to come back through the Request Stream then you'll need to add it something like this into your html and within your form so that you can pull it from the form data on the server later.
<input id="YourId" type="hidden" value="Your value goes here" />
Then in your code behind you can see this value like this
string yourValue = YourId.Value;
yourValue will equal "Your value goes here"...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 453
1 CPallini 333
2 George Jonsson 270
3 OriginalGriff 159
4 Prasad Khandekar 135
0 OriginalGriff 4,613
1 CPallini 3,340
2 Sergey Alexandrovich Kryukov 2,879
3 George Jonsson 2,264
4 Gihan Liyanage 2,020

Advertise | Privacy | Mobile
Web01 | 2.8.140905.1 | Last Updated 3 Dec 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100