!include aspx in anotheraspx
-
hello like i have one aspx/asp page which iam using in my many anither pages so i don't want to write all the stuff every time how can i do this? i tried with its not working and i also tried with response.writefile("file.aspx") its working but i want to use some functions of file.aspx page in my present page
-
hello like i have one aspx/asp page which iam using in my many anither pages so i don't want to write all the stuff every time how can i do this? i tried with its not working and i also tried with response.writefile("file.aspx") its working but i want to use some functions of file.aspx page in my present page
-
You have to create user controls for that purpose. They are just like your aspx pages and you can drag and drop to any page you want. The extension for that is ascx.
Best Regards, Apurva Kaushal
but i have "response.write" stmts in my page how can it work any other way? can any one send me one example?
-
but i have "response.write" stmts in my page how can it work any other way? can any one send me one example?
It does not matter. What you need to do is first create a ascx page(User control). Same as you create a aspx page and then drag it from solution explorer to you web page(aspx page) and that over. You can get the contents of the control to the page. :)
Best Regards, Apurva Kaushal
-
It does not matter. What you need to do is first create a ascx page(User control). Same as you create a aspx page and then drag it from solution explorer to you web page(aspx page) and that over. You can get the contents of the control to the page. :)
Best Regards, Apurva Kaushal
thanks alot for a very fsater reply but still iam getting prob because i have some functions in my first page which are having response.write stmts ok and i want to use these functions in my second page.........iam getting reference error thanks in advance
-
thanks alot for a very fsater reply but still iam getting prob because i have some functions in my first page which are having response.write stmts ok and i want to use these functions in my second page.........iam getting reference error thanks in advance
I am not been able to understand your because i dont think there is any relation between your user control and response.write statements. What is the exact error message and you debug the code and see where which part is diaplaying the error.
Best Regards, Apurva Kaushal
-
I am not been able to understand your because i dont think there is any relation between your user control and response.write statements. What is the exact error message and you debug the code and see where which part is diaplaying the error.
Best Regards, Apurva Kaushal
hai apurva let me explain what i need exactly ihave one.aspx page ok in that i have written some functions to display some table of content ok for example... in my one.aspx ihave a function like... function disp(pagesize,query...etc) (iused record set of adodb here to fech the table from param query passed ok) response.write("") (taken loop to display) response.write(") and so on. now i want to use this function in my second.aspx i think now it is clear thanks
recods that feched from table
-
hai apurva let me explain what i need exactly ihave one.aspx page ok in that i have written some functions to display some table of content ok for example... in my one.aspx ihave a function like... function disp(pagesize,query...etc) (iused record set of adodb here to fech the table from param query passed ok) response.write("") (taken loop to display) response.write(") and so on. now i want to use this function in my second.aspx i think now it is clear thanks
recods that feched from table