Jump to content

can some one implement this coding

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
1 reply to this topic

#1
Guest_Stenna_*

Guest_Stenna_*
  • Guests
DataSet ds = new DataSet();
            ds = Testimonial.getRandomTestimonials();
            if (ds.Tables.Count > 0)
            {
                if (ds.Tables[0].Rows.Count > 0)
                {
                    lblTestimonials.Text = ds.Tables[0].Rows[0]["comments"].ToString();
                    imgbtnTestim.PostBackUrl = "ReadTestimonial.aspx?id=" + ds.Tables[0].Rows[0]["temp_id"].ToString();
                }
                else
                {
                    lblTestimonials.Text = "No Testimonial Yet.";
                }
            }

Edited by WingedPanther, 09 March 2009 - 07:40 AM.
add code tags (the # button)


#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,822 posts
Generally you will simply output the text... I don't think labels exist in ASP.NET.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog