Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 478259
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T00:40:25+00:00 2026-05-13T00:40:25+00:00

<div visible=false runat=server><a href='<%#string.Format({0}removeAllItems=true, this.Page)%>’ onclick=return confirm(‘Are you sure you want to remove all

  • 0
<div visible="false" runat="server"><a href='<%#string.Format("{0}removeAllItems=true", this.Page)%>' onclick="return confirm('Are you sure you want to remove all items?')">Remove all items</a></div>   

when I run this, it doesn’t show the querystring portion, just the page.aspx. I don’t see why the rest of that string after {0} is being cut off.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T00:40:26+00:00Added an answer on May 13, 2026 at 12:40 am

    The problem with the question mark probably has something to do with using data binding (<%#...%>) instead of simple output (<%=...%>).

    String.Format is overkill, as you only want to concatenate two strings:

    <a href='<%=String.Concat(this.Page, ".aspx?removeItems=true")%>' >text</a>
    

    Or simply putting the second string in the markup:

    <a href='<%=this.Page%>.aspx?removeItems=true' >text</a>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My content page <asp:updatePanel id=Panel1 runat=server Visible=true> <ContentTemplate> <div> blah blah </div> </ContentTemplate> </asp:updatePanel>
I am having a nested update panel something like this <asp:UpdatePanel ID=DetailsUpdatePanel runat=server Visible=false
<asp:GridView ID=gridInboxMessage runat=server AllowPaging=True AllowSorting=True AutoGenerateColumns=False DataSourceID=LinqDataSource1 OnSelectedIndexChanged=gridInboxMessage_SelectedIndexChanged> <Columns> <asp:TemplateField> <ItemTemplate> <asp:Button runat=server ID=DeleteInbox
Here is my DataList: <asp:DataList id=DataList Visible=false RepeatDirection=Horizontal Width=100% HorizontalAlign=Justify RepeatLayout=Flow runat=server> [Contents Removed]
I have a MasterPage, with my Usercontrol inside a div. I can set visible=false
I want to postion a DIV inside a page such that it is visible
I've got UpdatePanel with Div <telerik:RadAjaxPanel runat=server ID=RadAjaxPanel1> <div class=pnlFind style=display:none;> </div> </telerik:RadAjaxPanel> wanna
I've a user control which contains asp:Literal. <div> <asp:Literal id=MenuContainer runat=server /> </div> There
On my webpage, I have the following link: <asp:LinkButton ID=lnkChangePic runat=server onclick=lnkChangePic_Click Text=Upload new
I have a listview that is setup like so: <asp:ListView ID=lv_First runat=server> <LayoutTemplate> <div

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.