nitin yadav

nitin yadav

  • NA
  • 136
  • 0

Repeater under div tag

Aug 10 2011 3:20 AM
Hi,

i have one repeater control under div tag like
<div id="divOuter" runat="server">
repeater control
</div>

repeater control is bind on page load. Now i want this repeater data to be send to other page using json.so how can i pick this repaeter control data pls tell me how to do this.

i tried like this
JavaScriptSerializer js = new JavaScriptSerializer();
StringBuilder sb = new StringBuilder();
sb.Append(divOuter.InnerHtml);
string json = js.Serialize(sb);
return json;

it give me this error : Cannot get inner content of divOuter because the contents are not literal.
 pls help me out.thanks


Answers (2)