aspx questions
- Started
- Last post
- 8 Responses
- ukit
Anyone know ASP .NET? I don't but am trying to make a small change to a website that uses ASPX and have a simple task I would like to perform:
1) Read a text string variable from the querystring.
2) Tell the page to include an HTML file with the same name as that text string.
- ukit0
Someone...anyone?
- canton0
I know a little aspx.
- ukit0
Thanks but I think that is for ASP not ASPX. I'm not a programmer but I think the syntax is different...?
- QuincyArcher0
do you have Visual Studio .NET?
- ukit0
Yeah
- QuincyArcher0
ok, there's a control called a "place holder". Put one on the page...wherever you want that html file to appear. Give it the name "phContent"
go to the code view, and in the page load event (this should be there by default), and put this in there.
Dim ctrl as control
ctrl = me.loadcontrol(filePath)
phContent.Controls.Add(ctrl)except, instead of writing "filePath" in there, put the actual file path. when you get to the file name, put Request.Querystring(value).
so it should look something like this:
"content/" & Request.querystring(value) & ".htm"
let me know if you have any more questions.