PC Review


Reply
Thread Tools Rate Thread

Better way to do this...

 
 
=?Utf-8?B?UmFlZCBTYXdhbGhh?=
Guest
Posts: n/a
 
      17th Aug 2005
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?
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:20 AM.