if you want to send your div inner htnl as a string and you are finding error "Cannot get inner content of DIV because the contents are not literal."
Solution is :-
StringWriter sw = new StringWriter();
HtmlTextWriter h= new HtmlTextWriter(sw);
objDiv.RenderControl(h);
string str= sw.GetStringBuilder().ToString();
* objDiv is your DIV Id.
Thanks
Subscribe to:
Post Comments (Atom)
7 comments:
Great Solution!
Thanks-
Thanks a lot
Hi
I am unable to get my DIV id as it's placed under a TemplateField.
I am trying to get the DIV id in onRowDatabound.
please advise on this.
Thanks
Vinoth
Thanks bro....
Good work
Every great and deep difficulty bears in itself its own solution. It forces us to change our thinking in order to find it. See the link below for more info.
#solution
www.ufgop.org
thanks... works!!
Post a Comment