Click here to Skip to main content
15,915,873 members
Home / Discussions / C#
   

C#

 
QuestionWeird ViewState Pin
eggie524-Nov-05 17:26
eggie524-Nov-05 17:26 
AnswerRe: Weird ViewState Pin
Christian Graus24-Nov-05 17:29
protectorChristian Graus24-Nov-05 17:29 
GeneralRe: Weird ViewState Pin
eggie524-Nov-05 17:38
eggie524-Nov-05 17:38 
GeneralRe: Weird ViewState Pin
Christian Graus24-Nov-05 17:41
protectorChristian Graus24-Nov-05 17:41 
GeneralRe: Weird ViewState Pin
eggie524-Nov-05 18:25
eggie524-Nov-05 18:25 
GeneralRe: Weird ViewState Pin
Christian Graus26-Nov-05 21:47
protectorChristian Graus26-Nov-05 21:47 
QuestionDependent Assemblies Question Pin
Ritcho24-Nov-05 14:19
Ritcho24-Nov-05 14:19 
QuestionProblems pulling an image out of SQL Pin
Judy10110124-Nov-05 13:39
Judy10110124-Nov-05 13:39 
Whats wrong with this picture? I keep getting this error and I"m sure it's because of the image I'm trying to pull out. Never was good are arrays....

public class PictureData
{
public int ID;
public String name;
public byte[] data;
public String contenttype;
}
public PictureData GetPrictureDetails(int ID)
{
SqlConnection myConnection = new SqlConnection(SqlHelper.ConnectionString);
SqlCommand myCommand = new SqlCommand("GetPictures", myConnection);

myCommand.CommandType = CommandType.StoredProcedure;
SqlParameter parameterID = new SqlParameter("@ID", SqlDbType.Int, 4);
parameterID.Value = ID;
myCommand.Parameters.Add(parameterID);

SqlParameter parametername = new SqlParameter("@name", SqlDbType.VarChar, 50);
parametername.Direction = ParameterDirection.Output;
myCommand.Parameters.Add(parametername);

SqlParameter parameterdata = new SqlParameter("@data", SqlDbType.Image, 16);
parameterdata.Direction = ParameterDirection.Output;
myCommand.Parameters.Add(parameterdata);

SqlParameter parametercontenttype = new SqlParameter("@contenttype", SqlDbType.VarChar, 50);
parametercontenttype.Direction = ParameterDirection.Output;
myCommand.Parameters.Add(parametercontenttype);

myConnection.Open();
myCommand.ExecuteNonQuery();
myConnection.Close();

PictureData myPictureData = new PictureData();

myPictureData.ID = (int)parameterID.Value;
myPictureData.name = (string)parametername.Value;
myPictureData.data= (byte[])parameterdata.Value;
myPictureData.contenttype = (string) parametercontenttype.Value;

return myPictureData;

}

so so lost lol
AnswerRe: Problems pulling an image out of SQL Pin
Christian Graus24-Nov-05 13:41
protectorChristian Graus24-Nov-05 13:41 
GeneralRe: Problems pulling an image out of SQL Pin
Judy10110124-Nov-05 14:00
Judy10110124-Nov-05 14:00 
GeneralRe: Problems pulling an image out of SQL Pin
Christian Graus24-Nov-05 14:05
protectorChristian Graus24-Nov-05 14:05 
GeneralRe: Problems pulling an image out of SQL Pin
Judy10110124-Nov-05 14:10
Judy10110124-Nov-05 14:10 
GeneralRe: Problems pulling an image out of SQL Pin
Christian Graus24-Nov-05 14:20
protectorChristian Graus24-Nov-05 14:20 
GeneralRe: Problems pulling an image out of SQL Pin
Judy10110124-Nov-05 14:22
Judy10110124-Nov-05 14:22 
GeneralRe: Problems pulling an image out of SQL Pin
Christian Graus24-Nov-05 14:24
protectorChristian Graus24-Nov-05 14:24 
GeneralRe: Problems pulling an image out of SQL Pin
Judy10110124-Nov-05 14:30
Judy10110124-Nov-05 14:30 
GeneralRe: Problems pulling an image out of SQL Pin
Christian Graus24-Nov-05 17:05
protectorChristian Graus24-Nov-05 17:05 
GeneralRe: Problems pulling an image out of SQL Pin
Judy10110124-Nov-05 14:34
Judy10110124-Nov-05 14:34 
GeneralRe: Problems pulling an image out of SQL Pin
Christian Graus24-Nov-05 17:28
protectorChristian Graus24-Nov-05 17:28 
AnswerRe: Problems pulling an image out of SQL Pin
Guillermo Rivero25-Nov-05 3:50
Guillermo Rivero25-Nov-05 3:50 
AnswerRe: Problems pulling an image out of SQL Pin
Mark DeVol29-Nov-05 11:55
Mark DeVol29-Nov-05 11:55 
QuestionFileNotFoundException with remoting Pin
Sylvain Boissé24-Nov-05 13:05
Sylvain Boissé24-Nov-05 13:05 
QuestionUser and Group Security Pin
jez12345624-Nov-05 11:33
jez12345624-Nov-05 11:33 
QuestionnumericUpDown + button + paint handler Pin
...---...24-Nov-05 9:07
...---...24-Nov-05 9:07 
AnswerRe: numericUpDown + button + paint handler Pin
Christian Graus24-Nov-05 9:27
protectorChristian Graus24-Nov-05 9:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.