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

  • Home
  • SEARCH
  • 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 6676097
In Process

The Archive Base Latest Questions

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

When I use: <asp:Label id=lbCatId runat=server Text='<%# Eval(VideoId) %>’ Visible=true /> I get: <span

  • 0

When I use:

<asp:Label id="lbCatId" runat="server" Text='<%# Eval("VideoId") %>' Visible="true" />

I get:

<span id="ctl00_mainContent_ucCoverFlow_rptVideos_ctl00_lbCatId">5</span>

However when I use:

<asp:Image runat="server" href='Play.aspx?VideoId=<%# Eval("VideoId") %>' ID="iThumbnailFileName" CssClass="content" />

I get:

<img id="ctl00_mainContent_ucCoverFlow_rptVideos_ctl01_iThumbnailFileName" class="content" href="Play.aspx?VideoId=&lt;%# Eval(&quot;VideoId&quot;) %>"

I would like to know why C# isn’t generating the ‘VideoId’ like it is in the first example.

  • 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-26T03:56:40+00:00Added an answer on May 26, 2026 at 3:56 am

    You are printing the string of the command you want to execute instead of executing it.

    Use :

     '<%# "Play.aspx?VideoId=" + Eval("VideoId") %>'
    

    Instead of :

     'Play.aspx?VideoId=<%# Eval("VideoId") %>'
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i've the following code in aspx page <asp:Label ID=CittaLabel runat=server Text='<%# Eval(Citta) %>' Font-Size='<%#
Which one to use <label>Name</label> <asp:Label Text=Name runat=server></asp:Label> Genreally we are using label to
When you assign something an ID in asp.net such as: <asp:Label runat=server ID=mylabel Text=some
Regarding these two approaches: <asp:Label ID=Label1 runat=server><%# DateTime.Now %></asp:Label> and Label1.Text = DateTime.Now.ToString(); Which
What is the difference between the following? <asp:Label runat=server>Hello World</asp:Label> <asp:Label runat=server Text=Hello World></asp:Label>
I use jquery to fill a asp:label Jquery code: $(#more15).text(<p> <b>Hello WOrld!</b> </p>); Asp
I use the following code to display a tooltip <asp:GridView ID=GridView1 runat=server AutoGenerateColumns=False DataKeyNames=ID
<asp:GridView ID=gvGrid runat=server AutoGenerateColumns=False DataSourceID=dsDataSource AllowPaging=True PageSize=20 > <Columns> <asp:BoundField DataField=Field1 HeaderText=Field1 SortExpression=Field1 />
I have the following label control: <asp:Label ForeColor=DarkGreen runat=server ID=lblStatus></asp:Label> Its value is filled
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

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.