hello,
this is my html and jquery code
is there any way i can pass the label label2 value so its clear for which label i want to fetch id and pass to query string
<asp:ListView ID="ListView1" runat="server">
<ItemTemplate>
<div class=" list whitebg">
<div class="thumbnail">
<div class="caption">
<asp:LinkButton ID="LinkButton1" runat="server" CssClass="color-btn pull-right"> Send <asp:Label ID="Label6" runat="server" Text="Pro" CssClass="pro"></asp:Label>posal </asp:LinkButton>
</div>
<h5>
<asp:Image ID="Image1" runat="server" ImageUrl='<%# Eval("buyerimage") %>' CssClass="img-circle pull-left" Width="40px" />
<asp:Label ID="Label2" runat="server" Text='<%# Eval("title") %>'></asp:Label>
<br />
<small>
<asp:Label ID="Label3" runat="server" Text='<%# Eval("projectdate") %>'></asp:Label>
</small>
</h5>
</div>
<div class="row">
<div class="col-md-10 nopadding">
<div class="truncate">
<%# Eval("description") %> </div>
</div>
<div class="col-md-1 bold center"> <asp:Label ID="Label4" runat="server" Text='<%# Eval("budget") %>'></asp:Label></div>
<div class="col-md-1 center"> <asp:Label ID="Label5" runat="server" Text='<%# Eval("totaloffer") %>'></asp:Label></div>
</div>
</div>
<hr class="nomargin" />
</ItemTemplate>
</asp:ListView>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script type="text/javascript">
$(function () {
$('[id*=LinkButton1]').on('click', function () {
var id = $(this).closest('tr').find('[id*=lblQueryString]').html();
var oldURL = window.location.protocol + "//" + window.location.host + window.location.pathname;
var newUrl = oldURL + "?Id=" + id;
if (window.history != 'undefined' && window.history.pushState != 'undefined') {
window.history.pushState({ path: newUrl }, '', newUrl);
}
return false;
});
});
</script>