如何从具有C#中的querystring id匹配值的数据库中获取图像 [英] how to get images from database with querystring id match value in c#
本文介绍了如何从具有C#中的querystring id匹配值的数据库中获取图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有人告诉我如何从查询字符串ID匹配的数据库中获取图像,C#中的代码是
Pls some one tell that how to get images from database with querystring id match value in c#, my code is
If Request.QueryString("ID") <> "" AndAlso Request.QueryString("ID") IsNot Nothing Then
''Dim cmd As New SqlClient.SqlCommand("SELECT * FROM news WHERE id=" + Request.QueryString("ID"), sqlcon)
If Request.QueryString("ID") = 1 Then
ada = New SqlClient.SqlDataAdapter("SELECT * from teammanage where saveas=''Under 10''", sqlcon)
dt = New DataTable("dell")
ada.Fill(dt)
If dt.Rows.Count > 0 Then
tit = dt.Rows(0)("name").ToString()
detail = dt.Rows(0)("photo").ToString()
End If
请告诉我一个电话,该电话如何使用尊重的查询字符串ID从数据库中获取图像,以及如何在c#中的数据列表控件中显示
请有人帮忙
谢谢
Pls some one tel that how to take images from database with respected querystring id, and how to display in datalist control in c#
Pls someone help
Thanks
推荐答案
这只是 ^ ].
您的问题与查询字符串有关.你被回答了.现在尝试!!!不要期望我们为您编写代码.
This just goes as a repost[^].
Your issue was with query string. You were replied. Now try!!! Don''t expect us to write code for you.
这篇关于如何从具有C#中的querystring id匹配值的数据库中获取图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文