Click here to Skip to main content
15,898,944 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Get Controls in htmlstring Pin
Christian Graus2-Nov-09 20:41
protectorChristian Graus2-Nov-09 20:41 
GeneralRe: Get Controls in htmlstring Pin
Imran Khan Pathan2-Nov-09 20:49
Imran Khan Pathan2-Nov-09 20:49 
GeneralRe: Get Controls in htmlstring Pin
Christian Graus2-Nov-09 20:51
protectorChristian Graus2-Nov-09 20:51 
GeneralRe: Get Controls in htmlstring Pin
Imran Khan Pathan2-Nov-09 21:02
Imran Khan Pathan2-Nov-09 21:02 
GeneralRe: Get Controls in htmlstring Pin
sashidhar2-Nov-09 21:28
sashidhar2-Nov-09 21:28 
GeneralRe: Get Controls in htmlstring Pin
Christian Graus2-Nov-09 22:33
protectorChristian Graus2-Nov-09 22:33 
GeneralRe: Get Controls in htmlstring Pin
Imran Khan Pathan2-Nov-09 22:38
Imran Khan Pathan2-Nov-09 22:38 
AnswerRe: Get Controls in htmlstring Pin
Abhishek Sur2-Nov-09 21:24
professionalAbhishek Sur2-Nov-09 21:24 
Imran Khan Pathan wrote:
hCell.InnerText = "Username";
hRow.Cells.Add(hCell);
hTable.Rows.Add(hRow);
// Now here I want to return created controls in html string.


Now use the following to get the string :

StringBuilder sb = new StringBuilder();
StringWriter tw = new StringWriter(sb);
HtmlTextWriter hw = new HtmlTextWriter(tw);
hTable.RenderControl(tw);
string renderedoutput = sb.ToString();


Now find the control string from the object, inspect renderedoutput.
Rose | [Rose]

Abhishek Sur
Don't forget to click "Good Answer" if you like this Solution.
My Latest Articles-->

Microsoft Bing MAP using Javascript
CLR objects in SQL Server 2005
Uncommon C# Keywords
/xml>

Questionfile upload and repeater Pin
m@dhu2-Nov-09 19:47
m@dhu2-Nov-09 19:47 
AnswerRe: file upload and repeater Pin
Christian Graus2-Nov-09 19:50
protectorChristian Graus2-Nov-09 19:50 
GeneralRe: file upload and repeater Pin
m@dhu2-Nov-09 19:58
m@dhu2-Nov-09 19:58 
GeneralRe: file upload and repeater Pin
Christian Graus2-Nov-09 20:10
protectorChristian Graus2-Nov-09 20:10 
GeneralRe: file upload and repeater Pin
Christian Graus2-Nov-09 20:51
protectorChristian Graus2-Nov-09 20:51 
GeneralRe: file upload and repeater Pin
m@dhu2-Nov-09 22:07
m@dhu2-Nov-09 22:07 
GeneralRe: file upload and repeater Pin
Christian Graus2-Nov-09 22:20
protectorChristian Graus2-Nov-09 22:20 
GeneralRe: file upload and repeater Pin
m@dhu2-Nov-09 23:22
m@dhu2-Nov-09 23:22 
GeneralRe: file upload and repeater Pin
Christian Graus3-Nov-09 8:38
protectorChristian Graus3-Nov-09 8:38 
GeneralRe: file upload and repeater Pin
m@dhu3-Nov-09 17:49
m@dhu3-Nov-09 17:49 
GeneralRe: file upload and repeater Pin
Christian Graus3-Nov-09 19:26
protectorChristian Graus3-Nov-09 19:26 
GeneralRe: file upload and repeater Pin
m@dhu3-Nov-09 21:23
m@dhu3-Nov-09 21:23 
QuestionCart Pin
KhandelwalA2-Nov-09 19:40
KhandelwalA2-Nov-09 19:40 
AnswerRe: Cart Pin
Christian Graus2-Nov-09 19:48
protectorChristian Graus2-Nov-09 19:48 
QuestionRegular expression in ASP.Net. Pin
suravi2-Nov-09 19:12
suravi2-Nov-09 19:12 
AnswerRe: Regular expression in ASP.Net. Pin
Christian Graus2-Nov-09 19:28
protectorChristian Graus2-Nov-09 19:28 
AnswerRe: Regular expression in ASP.Net. Pin
ademsandeepreddy2-Nov-09 19:31
ademsandeepreddy2-Nov-09 19:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.