Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Server Side Includes

Server Side Includes

Scheduled Pinned Locked Moved Web Development
questioncsharpasp-netdatabasesysadmin
9 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    Gavin_Mannion
    wrote on last edited by
    #1

    Hi All, Does ASP.NET still support SSI's? If so how do I do it? My other question is in regard to Controls. I have a control called 'navigation.ascx' which holds all my navigation buttons for my application. I place this control below every page. What I am trying to do is when the client clicks on Button1 I populate the database with all the data from Page1. But I can't seem to figure out how to pass data to a control dynamically. Is this possible? Thanks, Gavin

    L 2 Replies Last reply
    0
    • G Gavin_Mannion

      Hi All, Does ASP.NET still support SSI's? If so how do I do it? My other question is in regard to Controls. I have a control called 'navigation.ascx' which holds all my navigation buttons for my application. I place this control below every page. What I am trying to do is when the client clicks on Button1 I populate the database with all the data from Page1. But I can't seem to figure out how to pass data to a control dynamically. Is this possible? Thanks, Gavin

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      good question - I was also going to ask this one today - anyone? Shaun

      1 Reply Last reply
      0
      • G Gavin_Mannion

        Hi All, Does ASP.NET still support SSI's? If so how do I do it? My other question is in regard to Controls. I have a control called 'navigation.ascx' which holds all my navigation buttons for my application. I place this control below every page. What I am trying to do is when the client clicks on Button1 I populate the database with all the data from Page1. But I can't seem to figure out how to pass data to a control dynamically. Is this possible? Thanks, Gavin

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        what I think you need to do is use the Application or Session object to store and pass information Holy Handgrenade of Antioch instructions

        G 1 Reply Last reply
        0
        • L Lost User

          what I think you need to do is use the Application or Session object to store and pass information Holy Handgrenade of Antioch instructions

          G Offline
          G Offline
          Gavin_Mannion
          wrote on last edited by
          #4

          How would Session Variables work? Example: I have a .aspx page with 1 text box on it called textbox1 After this control I have a control called button.ascx When I load this page I click on the button which is in the control and I want it to redirect me to the URL that I have typed in textbox1 but I can't seem to access textbox1 from button.ascx How would I do this? Thanks, Gavin

          L 2 Replies Last reply
          0
          • G Gavin_Mannion

            How would Session Variables work? Example: I have a .aspx page with 1 text box on it called textbox1 After this control I have a control called button.ascx When I load this page I click on the button which is in the control and I want it to redirect me to the URL that I have typed in textbox1 but I can't seem to access textbox1 from button.ascx How would I do this? Thanks, Gavin

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #5

            assuming the textbox and button control are on the same page then (PS - I just worked this out myself [yesterday I discovered the Application/Session objects]) I made the textbox on the page public rather than protected then in my handler for the button I did this private void Button1_Click(object sender, System.EventArgs e) { WebForm1 page = (WebForm1)Page; Response.Redirect(page.TextBox1.Text,true); } I know it could be done better but I am just learning Holy Handgrenade of Antioch instructions

            G 1 Reply Last reply
            0
            • G Gavin_Mannion

              How would Session Variables work? Example: I have a .aspx page with 1 text box on it called textbox1 After this control I have a control called button.ascx When I load this page I click on the button which is in the control and I want it to redirect me to the URL that I have typed in textbox1 but I can't seem to access textbox1 from button.ascx How would I do this? Thanks, Gavin

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #6

              also how do you position a control - mine seems to anchor itself to the top corner - irritating as I don't want it there Holy Handgrenade of Antioch instructions

              G 1 Reply Last reply
              0
              • L Lost User

                assuming the textbox and button control are on the same page then (PS - I just worked this out myself [yesterday I discovered the Application/Session objects]) I made the textbox on the page public rather than protected then in my handler for the button I did this private void Button1_Click(object sender, System.EventArgs e) { WebForm1 page = (WebForm1)Page; Response.Redirect(page.TextBox1.Text,true); } I know it could be done better but I am just learning Holy Handgrenade of Antioch instructions

                G Offline
                G Offline
                Gavin_Mannion
                wrote on last edited by
                #7

                Perfect, now I can redesign my entire site.... hmm maybe not the best idea.. :) Good to know for the future though Thanks, Gavin ;)

                1 Reply Last reply
                0
                • L Lost User

                  also how do you position a control - mine seems to anchor itself to the top corner - irritating as I don't want it there Holy Handgrenade of Antioch instructions

                  G Offline
                  G Offline
                  Gavin_Mannion
                  wrote on last edited by
                  #8

                  I set mine up by either placing them inside a HTML table or by using the style tag. HTH

                  L 1 Reply Last reply
                  0
                  • G Gavin_Mannion

                    I set mine up by either placing them inside a HTML table or by using the style tag. HTH

                    L Offline
                    L Offline
                    Lost User
                    wrote on last edited by
                    #9

                    thanks - I eventualy placed it a grid layout panel which I think then turns into a div (or is a div) Holy Handgrenade of Antioch instructions

                    1 Reply Last reply
                    0
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • World
                    • Users
                    • Groups