Avatar of qwertq
qwertq
 asked on

Echo post var in aspx file

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.
ASP

Avatar of undefined
Last Comment
b0lsc0tt

8/22/2022 - Mon
Guy Hengel [angelIII / a3]

>aspx file.
means, asp.net?

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

ASKER
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]

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....
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
qwertq

ASKER
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?
qwertq

ASKER
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]

you have 1 guess :)
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Guy Hengel [angelIII / a3]

>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...
qwertq

ASKER
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]

restart the IIS, that might clean up the mess...
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
b0lsc0tt

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
qwertq

ASKER
Does anyone have a suggestion on how to echo a post variable (as a value of an input box).
ASKER CERTIFIED SOLUTION
b0lsc0tt

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
b0lsc0tt

I'm glad that helped.  Thanks for the grade, the points and the fun question.
bol
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.