![]() |
Asp:Image |
Post Reply ![]() |
|
Author | |
aliaygor ![]() Newbie ![]() Joined: 27 Şubat 2018 Location: Ankara Status: Offline Points: 2 |
![]() ![]() ![]() ![]() ![]() Posted: 27 Şubat 2018 at 14:12 |
Merhaba.
Üzerinde çalıştığım sistemime, template giydirdim fakat veritabanımdaki resmi çekemiyorum. 2 tür loginim var. Facebook Login / Normal Login. Facebook ile bağlanırken sıkıntı yok resim geliyor. Fakat Normal login olurken resim gelmiyor. Birçok yol denedim, kesin bir sonuç alamadım. İnternetten bulduğum template ile ilgili bir sıkıntı diye düşünüyorum. Çünkü sistem kabataslak çalışıyor Yardımcı olursanız çok sevinirim. Kolay gelsin. <span class="image avatar48"> <%--<asp:Image ID="ProfileImage" runat="server" ImageUrl='<%#Eval("user_picture") %>' />--%> <asp:Image ID="ProfileImage" runat="server" /> </span> Cs; protected void Page_Load(object sender, EventArgs e) { hediyenbendenEntities db = new hediyenbendenEntities(); int a = Convert.ToInt32(Session["id"]); var sorgu = (from x in db.User where x.user_id == a select x).SingleOrDefault(); ProfileImage.ImageUrl = sorgu.user_picture; //ProfileImage.ImageUrl = Convert.ToString(Session["picture"]); lblName.Text = Convert.ToString(Session["name"]); lblEmail.Text = Convert.ToString(Session["email"]); } |
|
Ankara
Bilgisayar Mühendisi |
|
![]() |
|
memotr ![]() Newbie ![]() Joined: 28 Ağustos 2018 Status: Offline Points: 3 |
![]() ![]() ![]() ![]() ![]() |
aşağıda klasör adı yazan yere resimin oldugu klasorlerın adını yaz
<%--<asp:Image ID="ProfileImage" runat="server" ImageUrl='../klasör_adi/<%#Eval("user_picture") %>' />--%>
yukarıda yazdığım kodla dener misin eğer olmazsa aşağıdakini dene bir de <img src="../klasör_adi/<%#Eval("user_picture") %>" class="" alt="" /> |
|
![]() |
|
onur_cikit ![]() Groupie ![]() Joined: 31 Ocak 2012 Status: Offline Points: 103 |
![]() ![]() ![]() ![]() ![]() |
Sonuç nedir ?
|
|
![]() |
Post Reply ![]() |
|
Tweet
|
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |