I want to call images from database in to ASP:repeater control but I am getting in result

前端 未结 3 882
太阳男子
太阳男子 2021-01-22 03:57

This is my code in aspx file

cnn.Open();
    SqlDataAdapter da1 = new SqlDataAdapter(\"select * from carousel\", cnn);
    DataTable dt1 = new DataTable();
    d         


        
3条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-22 04:26

    suppose your image column name in database "ImageName" then

    Solution 1:if your image in Root Folder

     
    
    OR
    
    
    
     
    

    Solution 2:if your image in images Folder

    
    

    OR

    
    

    Your Final Solution:

    
               
            
    OR

提交回复
热议问题