Please send me the reply immediately its hurry for me.
Thanks & Regards
Prashant S. More
Please send me the reply immediately its hurry for me.
Thanks & Regards
Prashant S. More
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Niradhip ChakrabortyPosted May 19, 2008, 2:15 PM
I have used html table,tr,td in the codebehind.and then pass the table values in a level control,to display it.each time i am looping it holding the value and passing it in lebel.
You can use differnt way to assign it but basic of using table tr and td is the same that I have used below.
string strSQL = "SELECT distinct evd_num_eventid, evm_txt_Name, evm_txt_Address, evm_txt_City, evm_txt_State, evm_txt_Zip, evm_txt_Phone, evm_txt_Email from EventMaster INNER JOIN Eventdates ON EventMaster.evm_seq_ID = Eventdates.evd_Num_EventID ";
DataSet dstData = new DataSet();
objDataAccess.GetDataSet(ref dstData, strSQL, "EventMaster");
for (int intIndex = 0; intIndex < dstData.Tables["EventMaster"].Rows.Count; intIndex++)
{
value = hstdate[dstData.Tables["EventMaster"].Rows[intIndex]["evd_Num_EventID"]];
str = value.ToString();
strVenders = strVenders + "
strVenders = strVenders + "
" + "" + dstData.Tables["EventMaster"].Rows[intIndex]["evm_txt_Address"].ToString() + "" + "
" + "" + dstData.Tables["EventMaster"].Rows[intIndex]["evm_txt_City"].ToString() + "," + dstData.Tables["EventMaster"].Rows[intIndex]["evm_txt_State"].ToString() + "," + dstData.Tables["EventMaster"].Rows[intIndex]["evm_txt_Zip"].ToString() + "
" + " " + " Tel: " + "" + dstData.Tables["EventMaster"].Rows[intIndex]["evm_txt_Phone"].ToString() + "
" + " " + " Email: " + "" + dstData.Tables["EventMaster"].Rows[intIndex]["evm_txt_Email"].ToString() + "
" + " " + " Date: " + "" + str + "" + "
strVenders = strVenders + "
";
}
lblEvents.Text = strVenders;
}