<div class="modal fade" id="myModalprofilepopup" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content" style="height: auto">
/////
<div class=" " style="position: absolute; bottom: 60px; top: 129px; left: 9px;">
<div class=" pull-left " style="margin-bottom: 6px; background-color: transparent">
<a id="A1" href="#" runat="server">
<asp:Image ID="Image1photo" runat="server" ImageUrl='<%# String.Format("PROFILEPHOTOS/{0}",Eval("ImageName").ToString()) %>'
class="userprofilepgoto img-responsive2 animated fadeInDown img-circle" Style="width: 90px;
height: 90px" BorderStyle="Solid" BorderWidth="2" BorderColor="#CCCCCC" />
</a>
</div>
</div>
<a class=" pull-left" style="margin-left: 103px; margin-top: 2px">
<asp:Label ID="Namepro" runat="server" Text='<%# Eval("Name") %>' Font-Bold="True"
CssClass="namepro" Font-Size="Larger" ForeColor="Black" />
<asp:Label ID="UserVerifyStatus" runat="server" CssClass="userverifystatus glyphicon glyphicon-ok-sign"
title="." data-toggle="tooltip" Font-Size="Small" Style="display: none" ForeColor=""></asp:Label><asp:Label
ID="UserName" Text='<%#Eval("UserName") %>' runat="server" CssClass="username" />
</a>
<asp:Label ID="lblGallaryId" Text='<%#Eval("UserId") %>' runat="server" Font-Size="0px" />
<div class="clearfix" style="">
</div>
<div id="modalbody5" class="modal-body">
<div class="clearfix" style="">
</div>
<asp:Label ID="Summary" runat="server" Text="Hi am Test123 @ #Sportifer, one sports social community, share, hype and connect to everyone on sports world . "
CssClass="summary" Font-Size="Larger" ForeColor="Black" />
<div class="clearfix" style="">
</div>
<div class="clearfix" style="">
</div>
<script type="text/javascript">
$(function () {
$('[id*=btncall]').on('click', function () {
var id = $(this).closest('span').find('[id*=lblGallaryId]').html();
$.ajax({
type: "POST",
url: "Timeline.aspx/GetGallery",
data: '{id:"' + id + '"}',
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function (response) {
$(".userphotos").attr('src', 'BannerImage/' + response.d[0].photos);
$(".userprofilepgoto").attr('src', 'PROFILEPHOTOS/' + response.d[0].Image1photo);
$(".namepro").html(response.d[0].Namepro);
$(".username").html(response.d[0].UserName);
$(".summary").html(response.d[0].Summary);
$(".userverifystatus").html(response.d[0].UserVerifyStatus);
if (response.d[0].UserVerifyStatus == "1") {
$('[id*=UserVerifyStatus]').show();
}
else {
$('[id*=UserVerifyStatus]').hide();
}
$('#myModalprofilepopup').modal('show');
},
failure: function (response) {
alert(response.d);
},
error: function (response) {
alert(response.d);
}
});
return false;
});
});
</script>
[WebMethod]
public static List<Gallery> GetGallery(int id)
{
string constr = ConfigurationManager.ConnectionStrings["DB"].ConnectionString;
using (SqlConnection con = new SqlConnection(constr))
{
using (SqlCommand cmd = new SqlCommand("SELECT ImageBanner,ImageName,UserName,Name,UserVerifyStatus FROM User3 WHERE UserId = '" + id + "'"))
{
cmd.Connection = con;
List<Gallery> customers = new List<Gallery>();
con.Open();
SqlDataReader sdr = cmd.ExecuteReader();
while (sdr.Read())
{
customers.Add(new Gallery
{
photos = sdr["ImageBanner"].ToString(),
Image1photo = sdr["ImageName"].ToString(),
UserName = sdr["UserName"].ToString(),
Namepro = sdr["Name"].ToString(),
UserVerifyStatus = sdr["UserVerifyStatus"].ToString(),
});
}
con.Close();
return customers;