C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Resources » Code Snippets » Images »

"Links For Images from Datadase"


Posted Date: 23 Sep 2008    Resource Type: Code Snippets    Category: Images
Author: nirmalaMember Level: Gold    
Rating: 1 out of 5Points: 10



hai friends,Try this code for In Gridview select a link button depending on the select displaying the image from database.

.cs:

using System.Data.SqlClient;
using System.IO;
public partial class _23092008_displayimage : System.Web.UI.Page
{
SqlConnection conn;
SqlCommand cmd;
protected void Page_Load(object sender, EventArgs e)
{
conn = new SqlConnection(System.Configuration.ConfigurationManager.AppSettings["abcconnectionstring"]);
conn.Open();

}
public string FormatURL(object strArgument)
{

return ("format.aspx?guid=" + strArgument);
}
}



Attachments

  • "Links For Images from Datadase" (21419-23119-LinkImage_aspx.doc)


  • Responses


    No responses found. Be the first to respond and make money from revenue sharing program.

    Feedbacks      
    Popular Tags   What are tags ?   Search Tags  
    Sign In to add tags.
    "Links For Images from Datadase"  .  

    Post Feedback


    This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
    You must Sign In to post a response.
    Next Resource: "Retriving Image From Database By Using FormatUrl"
    Previous Resource: image display
    Return to Discussion Resource Index
    Post New Resource
    Category: Images


    Post resources and earn money!
     
    More Resources



    dotNet Slackers

    About Us    Contact Us    Privacy Policy    Terms Of Use