Saving the Html output of aspx page
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
If you are looking for a code to get the selected values from checkboxlist then you can use below code
- var checkboxValues = [];
-
- $('[id*=chktagindex] input:checked').each(function () {
- checkboxValues.push(this.value);
- });
- var result = checkboxValues.toString();
You need to change the checkboxlist markup like below
- <asp:CheckBoxList ID="chktagindex" runat="server" Width="162px">
- <asp:ListItem Text="TagIndex1" Value="TagIndex1"> </asp:ListItem>
- <asp:ListItem Text="TagIndex2" Value="TagIndex2"></asp:ListItem>
- <asp:ListItem Text="TagIndex3" Value="TagIndex3"></asp:ListItem>
- </asp:CheckBoxList>
0
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