Server Side Includes
-
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
-
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
-
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
what I think you need to do is use the Application or Session object to store and pass information Holy Handgrenade of Antioch instructions
-
what I think you need to do is use the Application or Session object to store and pass information Holy Handgrenade of Antioch instructions
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
-
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
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
-
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
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
-
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
Perfect, now I can redesign my entire site.... hmm maybe not the best idea.. :) Good to know for the future though Thanks, Gavin ;)
-
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
I set mine up by either placing them inside a HTML table or by using the style tag. HTH
-
I set mine up by either placing them inside a HTML table or by using the style tag. HTH
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