1
Answer

Saving the Html output of aspx page

sunkiks

sunkiks

20y
1.4k
1
I'm trying to get the Html output of an aspx page using webResponse. But I'm not getting all the dynamic code that is created at the server side (Tables..). Here is the code: mywebReq = WebRequest.Create(Server.MapPath("linkscreate.aspx")); mywebResp = mywebReq.GetResponse(); sr = new StreamReader(mywebResp.GetResponseStream()); strHTML = sr.ReadToEnd(); Help!
Answers (1)
2
Ajeesh

Ajeesh

NA 349 1.6k 7y
If you are looking for a code to get the selected values from checkboxlist then you can use below code
  1. var checkboxValues = [];  
  2.                 //Get selected value from checkbox like below  
  3.                 $('[id*=chktagindex] input:checked').each(function () {  
  4.                     checkboxValues.push(this.value);  
  5.                 });  
  6.                 var result = checkboxValues.toString();  
 You need to change the checkboxlist markup like below
  1. <asp:CheckBoxList ID="chktagindex" runat="server" Width="162px">  
  2.                 <asp:ListItem Text="TagIndex1" Value="TagIndex1"> </asp:ListItem>  
  3.                 <asp:ListItem Text="TagIndex2" Value="TagIndex2"></asp:ListItem>  
  4.                 <asp:ListItem Text="TagIndex3" Value="TagIndex3"></asp:ListItem>  
  5.             </asp:CheckBoxList>  
 
0
Suraj Kumar

Suraj Kumar

NA 1.3k 14.4k 7y
Hi Nitish,
As you have given heading of your question "checkboxlist select query in j query" and also provided your code snippet. But, you have not properly ask what difficulty you are facing? So, can you modify your question for better understanding?
Thanks