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. ASP.NET
  4. How to pass parameters between modules?

How to pass parameters between modules?

Scheduled Pinned Locked Moved ASP.NET
designtoolstutorialquestion
3 Posts 3 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.
  • S Offline
    S Offline
    Segal
    wrote on last edited by
    #1

    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&para2=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!

    R J 2 Replies Last reply
    0
    • S Segal

      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&para2=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!

      R Offline
      R Offline
      Rocky Moore
      wrote on last edited by
      #2

      If you enable tracing on the Module2 page, do you see the parameters being passed in the trace information? Rocky Moore <><

      1 Reply Last reply
      0
      • S Segal

        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&para2=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!

        J Offline
        J Offline
        Jon Hulatt
        wrote on last edited by
        #3

        change: window.navigate("module2.aspx?para1=xxx¶2=yyy"); to: window.navigate("module2.aspx?para1=xxx¶2=yyy");

        #include <beer.h>

        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