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.

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 developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.