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)


Sign In
Create Account

Guest_Stenna_*
Back to top









