include file in aspx page from codebehind file.
-
hi.... i m going to make assembler page. In this page i want to read url on page load method and as per parameter. ex. if URL is http://mysite/assembler.aspx?pgname=aboutas then "aboutus.aspx" page will be load on assembler page's div tag. how can i include "aboutus.aspx" page through code behind file at assembler.aspx pages div? thnks in advance.
!- F - R - I - E - N - D - S -!
-
hi.... i m going to make assembler page. In this page i want to read url on page load method and as per parameter. ex. if URL is http://mysite/assembler.aspx?pgname=aboutas then "aboutus.aspx" page will be load on assembler page's div tag. how can i include "aboutus.aspx" page through code behind file at assembler.aspx pages div? thnks in advance.
!- F - R - I - E - N - D - S -!
Use IFrame instead of DIV.
-
hi.... i m going to make assembler page. In this page i want to read url on page load method and as per parameter. ex. if URL is http://mysite/assembler.aspx?pgname=aboutas then "aboutus.aspx" page will be load on assembler page's div tag. how can i include "aboutus.aspx" page through code behind file at assembler.aspx pages div? thnks in advance.
!- F - R - I - E - N - D - S -!
AFAIK, there is no way to load an ASPX page. Why don't you redirect to
aboutus.aspx
when the criteria matches? Another method is to create make aboutus as a web user control. Put a place holder inside the DIV tag and load the appropriate control to it depending on the condition. You need to use theLoadControl
method for doing this. Something like,Control c = LoadControl("aboutus.ascx"); placeHolderId.Controls.Add(c);
Hope that helps :)Navaneeth How to use google | Ask smart questions