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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T03:06:44+00:00 2026-06-16T03:06:44+00:00

Here is my markup: <asp:TemplateField HeaderText=Loss SortExpression=Loss HeaderStyle-CssClass=StrongText HeaderStyle-Font-Bold=true HeaderStyle-Font-Size=Medium HeaderStyle-ForeColor=Blue HeaderStyle-Font-Underline=true HeaderStyle-VerticalAlign=Bottom ItemStyle-Width=3%

  • 0

Here is my markup:

<asp:TemplateField HeaderText="Loss" SortExpression="Loss" 
     HeaderStyle-CssClass="StrongText" HeaderStyle-Font-Bold="true" 
     HeaderStyle-Font-Size="Medium" HeaderStyle-ForeColor="Blue" 
     HeaderStyle-Font-Underline="true" HeaderStyle-VerticalAlign="Bottom"  
     ItemStyle-Width="3%" ItemStyle-HorizontalAlign="Left" 
     ItemStyle-VerticalAlign="Bottom" HeaderStyle-HorizontalAlign="Left">
     <ItemTemplate>
         <asp:HyperLink runat="server" ID="HyperLink8" 
              NavigateUrl='<%#"db_LossofPay.aspx?UserID="+ Eval("User ID")%>' 
              Text='<%# Eval("Loss","{0}")%>' 
              ForeColor="BLUE" Target="_blank"></asp:HyperLink>
         <asp:Label ID="lblLoss" runat="server"></asp:Label>
     </ItemTemplate>
</asp:TemplateField>

Could you please help me with this? In BoundField I wrote DataFormatString="{0:N2}" which works fine, but I got stuck when using in hyperlink (template field)

  • 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-06-16T03:06:45+00:00Added an answer on June 16, 2026 at 3:06 am

    Try with this:

    <asp:HyperLink runat="server" ID="HyperLink8"
     NavigateUrl='<%#"db_LossofPay.aspx?UserID="+   Eval("User ID")%>' 
     Text='<%# Eval("Loss","{0:#,##0.00}") %>' ForeColor="BLUE" Target="_blank" />
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here's my markup: Name: <asp:TextBox ID=txtNewName runat=server ValidationGroup=NewDepartmentValidationGroup /> <asp:RequiredFieldValidator ID=vldtxtNewName runat=server ControlToValidate=txtNewName ErrorMessage=Required
Here is some asp.net markup: <tr style=display:none id=AllInRateRow> <td id=td6> All-In Fixed Rate <span
I have used ExpressionBuilders here and there within my asp.net markup to return simple
Can I do this without Javascript? Here is the mock markup.. <div id=parent> <div
Okay, so I'm designing this site. Here's the HTML markup of this simple element:
For some reason, all of the objects in my ASP.NET markup are now null
I have following markup which is generated dynamically using C# in my asp.net MVC2
Situation: I am building a page in ASP.NET from an HTML file with markup
I use jqueryui-tabs to display a tabbed UI. here is how my markup looks
Platform: ASP.NET 4.0 MVC 4 C# jQuery Here's what I want to do. I'm

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.