How to edit .aspx?parentID=xxxx files/pages

Discussion in 'C#' started by krazii_kid, Aug 6, 2009.

  1. #1
    So I'm using VWDexpress and I can edit the .aspx files, but instead of editing the general template, I'd like to edit a page with parentID=8192 (for example). Is it possible to access the code for that particular page using VWD? If so, how?

    I've also seen it being done in Dreamweaver, but I have no clue how to do it.

    Any help would be much appreciated.

    Thanks!
     
    krazii_kid, Aug 6, 2009 IP
  2. boomers

    boomers Peon

    Messages:
    18
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    If I'm understanding you correctly then you need to read up on querystrings. The domain.com/page.aspx?parentid=1 and domain.com/page.aspx?parentid=2 are physically the same file.
     
    boomers, Aug 7, 2009 IP
  3. krazii_kid

    krazii_kid Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Does this mean I can't make the pages so that I have something on domain.com/page.aspx?parentid=1 but not on domain.com/page.aspx?parentid=2? For example, if the domain.com/page.aspx code includes an image and I want to make the one on domain.com/page.aspx?parentid=1 into a link, but not have the one on domain.com/page.aspx?parentid=2 turn into a link as well...how would I do that?
     
    krazii_kid, Aug 7, 2009 IP
  4. Free Born John

    Free Born John Guest

    Messages:
    111
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #4
    the bits after the question mark are parameters being passed into the one physical page.

    If you want different layouts, in the code behind module you can look at the parameters coming in and write different stuff out depending which parameter you get.
     
    Free Born John, Aug 12, 2009 IP
  5. camjohnson95

    camjohnson95 Active Member

    Messages:
    737
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    60
    #5
    Yes for example, within page.aspx where you want the code to change ...
    
    <% If Request.Querystring("parentID") = "1" Then %>
    //HTML CODE HERE //
    <% Else %>
    //DIFFERENT HTML CODE HERE//
    <% End If %>
    
    Code (markup):
     
    camjohnson95, Aug 12, 2009 IP
  6. krazii_kid

    krazii_kid Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    what if i have 10 different pages that i want to create image links for?

    i know on that i can make an image or have words (like "click here") in the .aspx file become a link, but how would i set it so that each page (domain.com/page.aspx?parentid=##) has a link to a different thing?
     
    krazii_kid, Aug 15, 2009 IP
  7. camjohnson95

    camjohnson95 Active Member

    Messages:
    737
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    60
    #7
    it's hard to say without seeing the code
     
    camjohnson95, Aug 15, 2009 IP