Roadies x4 winner --- balraj paji
In order to show image from database to webform first add an image control in webpage. <asp:Image ID="imgStudentImage" runat="server" Height="157px" Width="160px" /> Then add new webform to read image from database for example displayimage.aspx and in code behind model write the following code. public string str = //your string public SqlConnection conn; public SqlCommand sql = new SqlCommand(); public SqlDataReader dr; public string strSQL; protected void Page_Load(object sender, EventArgs e) { conn = new SqlConnection(str); conn.Open(); long id = Convert.ToInt64(Request.QueryString["mId"]); strSQL = ""; strSQL = strSQL + " SELECT snap from S...
nyc
ReplyDelete