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 6383503
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T02:39:26+00:00 2026-05-25T02:39:26+00:00

<%#String.Format(~/storefront.aspx?CatalogID={0}&ProductID={1}, Eval(CatalogID), Eval(ProductID))%> what I am trying to do is: NavigateUrl='<%#String.Format(~/storefront.aspx?CatalogID={0}&ProductID={1},Eval(CatalogID), (Eval(CatalogID)==856 ? Eval(ProductID)

  • 0
<%#String.Format("~/storefront.aspx?CatalogID={0}&ProductID={1}", Eval("CatalogID"), Eval("ProductID"))%>

what I am trying to do is:

 NavigateUrl='<%#String.Format("~/storefront.aspx?CatalogID={0}&ProductID={1}",Eval("CatalogID"), (Eval("CatalogID")=="856" ? Eval("ProductID") : Eval("CustItem")))%>

I’m trying to link back to the item from a page.. and I have accomplished this for every item except the ones in catalogid 856 …the url looks like: storefront.aspx?CatalogID=856&ProductID=AVE05418 that example is of one from catalog 856, problem is, is the productid being passed in the url is actually the a variable called CustItem so Im trying to pass the CustItem in the place of ProductID when the catalog is 856

Thank you

  • 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-25T02:39:27+00:00Added an answer on May 25, 2026 at 2:39 am

    You can try something like this:

    Eval("CatalogID") == 856 ? Eval("CustItem") : Eval("ProductID")
    

    EDIT

    NavigateUrl='<%#String.Format("~/storefront.aspx?CatalogID={0}&ProductID={1}",Eval("CatalogID"), (Eval("CatalogID").ToString() == "856" ? Eval("CustItem") : Eval("ProductID")))%>'
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

[String.Format(&quot;/build Debug {0}\Sources\Source\Infrastructure\Infrastructure.Interface\Infrastructure.Interface.csproj&quot;, BuildDirectory)] Say I want to have another double quotes from ===>
I'm using String.format() in Java trying to emulate the printf() control channel available in
I am trying to format a string of arbitrary length into a fixed width
For instance: String login = String.Format(computer={0}&ver={1}.{2}.{3}&from={4}&realcomputername={5}&type={6}&Channels={7}&Hotkeys={8}&ID={9}\r\n, serviceConfig.Computer, serviceConfig.Version.Major, serviceConfig.Version.Minor, serviceConfig.Version.Build, userName, Environment.MachineName, type, serviceConfig.ChannelsString,
In an aspx page i have: <asp:HyperLink ID=HyperLink runat=server style=cursor:pointer; text-decoration:none; NavigateUrl='<%#String.Format(~/storefront.aspx?CatalogID={0},Eval(CatalogID))%>'> <asp:Label id=lblCustItem
public String format() { return printf(%1$10s, %2$10s, %3$10d, getForename(), getSurname(), getAge()); } I'm trying
outStream = new FileOutputStream(String.format( /sdcard/%d.jpeg, System.currentTimeMillis())); I'm trying to save an image from the
I have the following string.Format({0:MM/dd},item.ActDate) Not sure whey it still shows it in 01/09/2012.
I am trying to use string.format on a url to pass several values into
string.Format() with it's bla {0} bla syntax is great. But sometimes I don't want

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.