G
Guest
I have datatable returned webservice i need for Name Field in datatable to
call a server side function when user click the link i did as following and i
wonder if there is other ways to do it
I draged and drop and LinkButton Control(make it visible false)
double click it to add the click event
then foreach in datatable i did
foreach(DataRow fileRow in dtFilesInfo.Rows)
{
string fileName= fileRow["FileName"].ToString();
fileRow["FileName"] = String.Format("<a href=\"#\"
onclick='__doPostBack('lbtnAction','Download,{0}')'",fileName);
}
so now when click the link i catch the event then split the EVENTARGUMENT
and begin process the request .....so is there any better and easier way to
do this?
call a server side function when user click the link i did as following and i
wonder if there is other ways to do it
I draged and drop and LinkButton Control(make it visible false)
double click it to add the click event
then foreach in datatable i did
foreach(DataRow fileRow in dtFilesInfo.Rows)
{
string fileName= fileRow["FileName"].ToString();
fileRow["FileName"] = String.Format("<a href=\"#\"
onclick='__doPostBack('lbtnAction','Download,{0}')'",fileName);
}
so now when click the link i catch the event then split the EVENTARGUMENT
and begin process the request .....so is there any better and easier way to
do this?