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. Advertisements

  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. Advertisements

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,775
    Ajeetha Kumari
    Sep 13, 2004
  2. Rakesh Sharma
    Replies:
    2
    Views:
    3,316
    Thomas Rudloff
    Oct 22, 2004
  3. Nisheeth

    post translate simulation

    Nisheeth, Apr 29, 2005, in forum: VHDL
    Replies:
    2
    Views:
    1,012
    Mike Treseler
    Apr 29, 2005
  4. Replies:
    3
    Views:
    753
    Bert Cuzeau
    Jun 22, 2005
  5. Replies:
    1
    Views:
    703
  6. Lildog
    Replies:
    0
    Views:
    2,289
    Lildog
    Feb 15, 2006
  7. kennethfine
    Replies:
    1
    Views:
    672
    John Saunders
    Jul 23, 2003
  8. SimpleSimple

    WebDav, Translate: f, ASP.NET

    SimpleSimple, Sep 30, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    2,382
    SimpleSimple
    Sep 30, 2003
Loading...