translate this to VB?

Discussion in 'ASP .Net' started by Luis E Valencia, May 11, 2004.

  1. Please somebody heeelp

    foreach(DataListItem di in dlst.Items)


    {


    Label num = (Label)di.FindControl("num");


    if(int.Parse(num.Text)<0)


    {

    num.ForeColor = Color.FromName("Red");

    LinkButton lb = (LinkButton)di.FindControl("lb");


    lb.ForeColor = Color.FromName("Red");


    }


    }
     
    Luis E Valencia, May 11, 2004
    #1
    1. Advertising

  2. Luis E Valencia

    TJS Guest

    use this

    http://authors.aspalliance.com/aldotnet/examples/translate.aspx



    "Luis E Valencia" <> wrote in message
    news:...
    > Please somebody heeelp
    >
    > foreach(DataListItem di in dlst.Items)
    >
    >
    > {
    >
    >
    > Label num = (Label)di.FindControl("num");
    >
    >
    > if(int.Parse(num.Text)<0)
    >
    >
    > {
    >
    > num.ForeColor = Color.FromName("Red");
    >
    > LinkButton lb = (LinkButton)di.FindControl("lb");
    >
    >
    > lb.ForeColor = Color.FromName("Red");
    >
    >
    > }
    >
    >
    > }
    >
    >
    >
    >
     
    TJS, May 11, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Sridhar Hegde
    Replies:
    2
    Views:
    2,533
    Ajeetha Kumari
    Sep 13, 2004
  2. Rakesh Sharma
    Replies:
    2
    Views:
    2,930
    Thomas Rudloff
    Oct 22, 2004
  3. Nisheeth

    post translate simulation

    Nisheeth, Apr 29, 2005, in forum: VHDL
    Replies:
    2
    Views:
    858
    Mike Treseler
    Apr 29, 2005
  4. Replies:
    3
    Views:
    618
    Bert Cuzeau
    Jun 22, 2005
  5. Replies:
    1
    Views:
    594
Loading...

Share This Page