Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations dencom on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

relationship between Load statement & file

Status
Not open for further replies.

oceannative

Programmer
Oct 7, 2005
92
US
I have a table of contents page that lists several entries like this:

Code:
<tr><td><a href="Default.aspx?Load=AP100M">Incorporation by Reference</a></td></tr>

<tr><td><a href="Default.aspx?Load=AP200M">Delegated Authority</a></td></tr>

The documents that they reference are 'incorporation.aspx' and 'authority.aspx'

What indicates the relationship between the reference to Load=AP100M and the .aspx file?

Thanks in advance...
 
Even though this isnt the right forum... (forum855)

The relation is: Default.aspx?Load=AP200M
The query string 'Load' is getting passed to the Default.aspx page.
 
Better re-phrase:

The relation from these links to the right pages ('incorporation.aspx' and 'authority.aspx') is done by the 'Load' parameter (query string), which is passed to the 'Default.aspx' page.
Propably, there will be a container in the Default.aspx (content place holder) that will host the right page... depending on the 'Load' value. "AP100M" for 'incorporation.aspx' and AP200M for 'authority.aspx'.


Hope this helps
 
Thanks Tip,

I'll post there as well if I need to... I guess my question is where does AP200M point to authority.aspx? default.aspx has only one string in it:

Code:
<%@ Page language="c#" Inherits="Intranet.Accounts.DefaultAccountPolicy" %>
 
Found it! Had to click on "show all files" so I could see "default.aspx.cs". Since I'm already here, can you tell me if I can just add the new line here and publish or will it have to recompiled? I'll be adding another case line in this file, another line to the TOC, then the new page itself...

Thanks again for pointing me in the right direction!
 
There are:
- Code bebind (needs compilation), and
- Page layout (XML - XHTML... the .aspx files).

The last do not need compilation.

Maybe, the Default.aspx.cs (code-behind) needs updating and compile. I am saying this because you may have a switch clause to check what was the value of the 'Load' querystring. So if you add more possible values, you might need to add more 'case "AP300M"' .. in order to redirect to the correct page.
 
Awesome -- thanks again for your assistance today -- can't wait to see if I can get this page published!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top