How to pass parameters between modules?
-
I got the 2 module files defined in my ASP UI page, module1.aspx, module1.ascx, module1.cs and module2.aspx, module2.ascx, module2.cs. How, the structure of ASP module is: module1.aspx will use module1.ascx file, and module1.cs is defined inside module1.ascs through "...src=module1.cs", samething to module2 files. Now, I want to pass some paramters from module1 to module2 through clicking from module1.ascx file and the way I use is to define a client script in module1.ascx file: function xxx(par1,par2) { .... window.navigate("module2.aspx?para1=xxx¶2=yyy"); } And defined something like this in module2.cs file: var1=Request.QueryString["para1"].ToString(); var2=Request.QueryString["para2].ToString(); But after run my program, I found nothing has been parsed into module2. Does anybody know what's wrong with my code and how to pass the parameter from ascx file to another aspx part? Thanks!
-
I got the 2 module files defined in my ASP UI page, module1.aspx, module1.ascx, module1.cs and module2.aspx, module2.ascx, module2.cs. How, the structure of ASP module is: module1.aspx will use module1.ascx file, and module1.cs is defined inside module1.ascs through "...src=module1.cs", samething to module2 files. Now, I want to pass some paramters from module1 to module2 through clicking from module1.ascx file and the way I use is to define a client script in module1.ascx file: function xxx(par1,par2) { .... window.navigate("module2.aspx?para1=xxx¶2=yyy"); } And defined something like this in module2.cs file: var1=Request.QueryString["para1"].ToString(); var2=Request.QueryString["para2].ToString(); But after run my program, I found nothing has been parsed into module2. Does anybody know what's wrong with my code and how to pass the parameter from ascx file to another aspx part? Thanks!
If you enable tracing on the Module2 page, do you see the parameters being passed in the trace information? Rocky Moore <><
-
I got the 2 module files defined in my ASP UI page, module1.aspx, module1.ascx, module1.cs and module2.aspx, module2.ascx, module2.cs. How, the structure of ASP module is: module1.aspx will use module1.ascx file, and module1.cs is defined inside module1.ascs through "...src=module1.cs", samething to module2 files. Now, I want to pass some paramters from module1 to module2 through clicking from module1.ascx file and the way I use is to define a client script in module1.ascx file: function xxx(par1,par2) { .... window.navigate("module2.aspx?para1=xxx¶2=yyy"); } And defined something like this in module2.cs file: var1=Request.QueryString["para1"].ToString(); var2=Request.QueryString["para2].ToString(); But after run my program, I found nothing has been parsed into module2. Does anybody know what's wrong with my code and how to pass the parameter from ascx file to another aspx part? Thanks!
change: window.navigate("module2.aspx?para1=xxx¶2=yyy"); to: window.navigate("module2.aspx?para1=xxx¶2=yyy");
#include <beer.h>