 |
|
ดึงรูป(Binary)ใน Database มาแสดง บน Gridview ไม่ขึ้นครับมันบอก Object reference not set to an instance of an object. |
|
 |
|
|
 |
 |
|
Code (C#)
HttpContext.Current.Request.QueryString["picName"];
ใช้แบบนี้แทนได้หรือเปล่าครับ
|
 |
 |
 |
 |
Date :
2012-11-15 09:16:30 |
By :
mr.win |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
แก้ให้เป็นแบบนี้ครับ
cmd.Parameters.Add(new SqlParameter("@picName", Request.QueryString["picName"].ToString()))
|
 |
 |
 |
 |
Date :
2012-11-15 10:11:46 |
By :
kanchen |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ของmr.win มันขึ้น Error ว่า Only assignment, call, increment, decrement, and new object expressions can be used as a statement
ส่วนของคุณ KanJi ลองแล้วก็ยังขึ้น Object reference not set to an instance of an object. เหมือนเดิมครับ T-T
|
 |
 |
 |
 |
Date :
2012-11-16 04:52:43 |
By :
Begin |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|