i'm trying to append a bool variable zoom. zoom is set to true once the btnview is clicked. i did something but it's not working. can someone put me on the right path here.

<a id="btnview" class="btnview" data-href="<%=HttpContext.Current.Request.QueryString.Add("zoom",true) %>" style="margin:60px 0 0 0;">zoom</a>

some how it is not setting the zoom value to true.

Recommended Answers

Are you trying to add a query string to the current url, like this:

http://current.website.com/index.aspx?zoom=true

Try

   protected void Button1_Click(object sender, EventArgs e)
    {
        Response.Redirect("default.aspx?zoom=true");
    }
Jump to Post

All 2 Replies

Are you trying to add a query string to the current url, like this:

http://current.website.com/index.aspx?zoom=true

Try

   protected void Button1_Click(object sender, EventArgs e)
    {
        Response.Redirect("default.aspx?zoom=true");
    }

yes....thank you....it's working perfectly now....

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.