We help IT Professionals succeed at work.

Echo post var in aspx file

qwertq
qwertq asked
on
1,289 Views
Last Modified: 2008-07-30
I do not have programming experience with ASP but need to make very slight modifications to an .aspx file. I would like to echo a _POST variable on the page (eventually into a hidden input field).

Can you tell me how to do this?

Thanks.
Comment
Watch Question

Guy Hengel [angelIII / a3]Billing Engineer
CERTIFIED EXPERT
Most Valuable Expert 2014
Top Expert 2009

Commented:
>aspx file.
means, asp.net?

or was that a typo, you really use classic ASP pages (.asp)?

Author

Commented:
Not a typo. The server has a foo.aspx files. When I look in them they are pretty much normal html with the addition of things like:

Guy Hengel [angelIII / a3]Billing Engineer
CERTIFIED EXPERT
Most Valuable Expert 2014
Top Expert 2009

Commented:
that is aspx.net, so you use visual studio.net to develop/change the site?
because with simple notepad/text editor, you cannot do it, as you need to compile the site's .dll file for the changes to be applied....

Author

Commented:
I am not the developer of the pages, just trying to make slight modifications to the html of an already installed product.

Your kidding me about being required to be recompiled... there is no simple way to edit an asp site?

Author

Commented:
If I edited an .aspx file (just added the text "Test" in the body) and now the site says
"The underlaying connection was closed: Unable to connect to the remote server"

Do you think that was me?
Guy Hengel [angelIII / a3]Billing Engineer
CERTIFIED EXPERT
Most Valuable Expert 2014
Top Expert 2009

Commented:
you have 1 guess :)
Guy Hengel [angelIII / a3]Billing Engineer
CERTIFIED EXPERT
Most Valuable Expert 2014
Top Expert 2009

Commented:
>Your kidding me about being required to be recompiled...
nope. no simple way with asp.net

>there is no simple way to edit an asp site?
with the classic asp pages, yes, there is was easy.
with asp.net, you have to open the whole site project, change, compile in release, and put into place the necessary files...

Author

Commented:
God..... I am already hating asp.

It would crash the entire system just because I added one bit of text to a template? I even removed it and it still doesn't work.
Guy Hengel [angelIII / a3]Billing Engineer
CERTIFIED EXPERT
Most Valuable Expert 2014
Top Expert 2009

Commented:
restart the IIS, that might clean up the mess...
b0lsc0ttIT Manager
CERTIFIED EXPERT

Commented:
qwertq,

Just to add another option that may work in a case like this to get going again.  In a lot of cases the "connection" is something setup on the server to the DB.  Delete that and reset it up, using the same info, has gotten things going for someone I had to help in a similar situation.

The other stuff the expert above has said is all correct.  All credit to him for that answer and hopefully one of these things will work to get you going again.

Let me know if you have any questions or need more information.

b0lsc0tt

Author

Commented:
Does anyone have a suggestion on how to echo a post variable (as a value of an input box).
IT Manager
CERTIFIED EXPERT
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
b0lsc0ttIT Manager
CERTIFIED EXPERT

Commented:
I'm glad that helped.  Thanks for the grade, the points and the fun question.
bol
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.