Better way to do this...

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top