I am extracting data from sql query to asp table in cs code page by page
TableCell tCell1 = new TableCell(); tCell1.Text = myDataRow["tid"].ToString();
I want to convert this id to a hyperlink. How can i do this?
You can create a HyperLink control and add it as a child of the TableCell :
HyperLink
TableCell
HyperLink link = new HyperLink(); link.NavigateUrl = ... link.Text = ... TableCell tCell1 = new TableCell(); tCell1.Controls.Add(link);
Source: https://habr.com/ru/post/1382114/More articles:Best Approach to Finding First Name and Last Name from Blob Text - algorithmDelete and update Limit on the query limit mysql - performanceMAC OSX dylib and how to use them - dylibjQuery mobile minimum slider value - jqueryThe problem with the game of life - javaHow can I embed Perl Interpreter inside a C ++ application creating a DLL? - c ++How to set onClick listener for ImageButton in ViewBinder? - androidrspec design pattern for testing multiple data points - design-patternsConvert iPhone app to Android app or vice versa - androidrspec refactoring? - ruby-on-railsAll Articles