hello,
this code works fine with me, but another problem i am ran into
previous i had a bootstrap modal popup so on button click query string change and modal popup comes in
but now without page refresh query string changes fine but modal popups not coming
so 2 function
1. on button click label value pass to query string- works fine
2. but also need to show modal popup
please advice i apprecaite your help
<asp:ListView ID="ListView1" runat="server">
<ItemTemplate>
<div class="list whitebg">
<div class="thumbnail">
<div class="caption">
<asp:LinkButton ID="LinkButton1" runat="server" data-toggle="modal" data-target="#myModal"
CssClass="color-btn pull-right">
Send
<asp:Label ID="Label6" runat="server" Text="Pro" CssClass="pro"></asp:Label>posal
</asp:LinkButton>
</div>
<div class="row">
<div class="col-md-2">
<asp:Label ID="Label3" runat="server" Text='<%# Eval("projectdate") %>'></asp:Label>
</div>
<div class="col-md-8 nopadding">
<h5>
<asp:Image ID="Image1" runat="server" ImageUrl='<%# Eval("buyerimage") %>' CssClass="img-circle pull-left"
Width="30px" Height="30px" />
<asp:Label ID="Label2" runat="server" Text='<%# Eval("title") %>'></asp:Label>
<br />
<small>
<div class="truncate">
<%# Eval("description") %>
</div>
</small>
</h5>
</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>
</div>
<hr class="nomargin" />
</ItemTemplate>
</asp:ListView>
</div> </div> </div>
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content sahdow">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="myModalLabel">
Send
<asp:Label ID="Label10" runat="server" Text="Pro" CssClass="pro"></asp:Label>posal</h4>
</div>
<div class="modal-body greybg">
<div class="form nopadding">
<asp:TextBox ID="TextBox1" runat="server" TextMode="MultiLine"></asp:TextBox></div>
<asp:LinkButton ID="LinkButton2" runat="server" CssClass="color-btn pull-right">Send</asp:LinkButton>
</div>
</div>
</div>
</div>
<script type="text/javascript">
$(function () {
$('[id*=LinkButton1]').on('click', function () {
var id = $(this).closest('div[class="list whitebg"]').find('[id*=Label2]').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>