.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Post New Web Links


Posted By:      Posted Date: September 01, 2010    Points: 0   Category :ASP.Net
  Hi CodersI have an application where I use an ImageHandler to display pictures added using the fileupload control to sql2005 server database as Binarydata. The pictures upload fine and are shown in the table however when I attempt to then display these pics all I get is red x , all the other fields associated are showingis it possible that my operating system "Windows7" could be also be causing problems with displaying pics?'this is my upload pagePicDisplay.aspxImports System.Data.SqlClientImports System.Web.ProfileImports SystemImports System.DataImports System.ConfigurationImports System.WebImports System.Web.SecurityPartial Class PicDisplayInherits System.Web.UI.PagePrivate sqlMyConnect As SqlConnectionPrivate sqlMyCmd As SqlCommandPrivate sqlMyDataRead As SqlDataReaderPrivate strSql As StringPrivate Sub OpenConnection()TryDim strConString As StringsqlMyConnect = New SqlConnection()strConString = Web.Configuration.WebConfigurationManager.Connecti onStrings("myConnect").ToStringsqlMyConnect.ConnectionString = strConStringsqlMyConnect.Open()Catch sqlEx As SqlExceptionDim err As SqlErrorFor Each err In sqlEx.ErrorslblMessage.Text = "SQL Error " & _err.Number & ": " & err.MessageNextEnd TryEnd SubPrivate Sub GiveCommand(ByVal sSql As String)sqlMyCmd = New SqlCommand()sqlMyCmd.Connection = sqlMyConnectsqlMyCmd.Command

View Complete Post

More Related Resource Links

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend