locked
Passing parametes to the custom application page in MS CRM 4.0 RRS feed

  • Question

  • Hi,

    How to pass parametes to the custom application page in MS CRM 4.0 ?

    Thanks,

    Srikanth Reddy

    Thursday, November 24, 2011 4:00 PM

All replies

  • hi Srikanth Reddy ,

      Use QueryString to pass parameter to .aspx page .

     Can you please make sure  that you mark This  & All Previous posts as Answered / Helpful 

    if your query is answered.

    This will help others with similar problem identify the answer and also close this thread as resolved.

    Dk

     

    • Proposed as answer by D kay Thursday, November 24, 2011 4:42 PM
    Thursday, November 24, 2011 4:38 PM
  • Hi,

    Can you provide me the code to pass parametes to the custom application page ?

    Thanks,

    Srikanth Reddy

    Thursday, November 24, 2011 5:32 PM
  • For passing variables content between pages ASP.NET gives us several choices. One choice is using QueryString property of Request Object.

    eg :

    http://www.localhost.com/Webform2.aspx?name=Atilla&lastName=Ozgur

    private void btnSubmit_Click(object sender, System.EventArgs e)
    {
    Response.Redirect("Webform2.aspx?Name=" +
    this.txtName.Text + "&LastName=" +
    this.txtLastName.Text);
    }

    Reading the querystring parameter

    private void Page_Load(object sender, System.EventArgs e)
    {
    this.txtBox1.Text = Request.QueryString["Name"];
    this.txtBox2.Text = Request.QueryString["LastName"];
    }

    Hope this helps


     if the response answered your question, please take a minute and mark the response as an answer.

     

    • Proposed as answer by D kay Thursday, November 24, 2011 8:43 PM
    Thursday, November 24, 2011 8:43 PM
  • Hi Srikanth

    Did this help?

    Please make sure to mark as answer to the response that helped you get through. This will help others with similar problem identify the answer and also close this thread as resolved.

    Thanks

    Dkay

    Saturday, November 26, 2011 7:37 AM