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

C#

 
GeneralRe: New to C# - API Usage Pin
J. Dunlap18-Jun-03 8:12
J. Dunlap18-Jun-03 8:12 
GeneralCHANGING SYSTEM VOLUME Pin
ripsi17-Jun-03 14:03
ripsi17-Jun-03 14:03 
GeneralInsert, Update, Delete in C# to MS Access DB Pin
Khang Nguyen17-Jun-03 11:33
Khang Nguyen17-Jun-03 11:33 
GeneralRe: Insert, Update, Delete in C# to MS Access DB Pin
Dimitris Iliopoulos17-Jun-03 13:23
Dimitris Iliopoulos17-Jun-03 13:23 
GeneralRe: Insert, Update, Delete in C# to MS Access DB Pin
Khang Nguyen17-Jun-03 13:27
Khang Nguyen17-Jun-03 13:27 
Generalhi everybody Pin
jphuphilly17-Jun-03 11:27
jphuphilly17-Jun-03 11:27 
GeneralRe: hi everybody Pin
Dimitris Iliopoulos17-Jun-03 13:29
Dimitris Iliopoulos17-Jun-03 13:29 
GeneralRe: hi everybody Pin
jphuphilly18-Jun-03 3:12
jphuphilly18-Jun-03 3:12 
Thanks for the help but i'm alittle lost. I want to recreate this this section of code for a windows application.

<code>protected System.Web.UI.HtmlControls.HtmlInputFile Upload;

private void Button1_Click(object sender, System.EventArgs e)
{
//It verifies if the archive exists
if (Upload.PostedFile != null)
{
//To create a PostedFile
HttpPostedFile File = Upload.PostedFile;

//Create byte Array with file len
byte[] Data = new Byte[File.ContentLength];
//force the control to load data in array
File.InputStream.Read(Data,0,File.ContentLength);

int i = 0;

//Dysplay array data in textbox
for (i=0;i<Data.Length;i++)
{
TextBox1.Text += Data[i].ToString();
}

//Create procedure parameter
object[] obj = new object[1];

obj[0] = Data;

//Execute the procedure with Microsoft.ApplicationBlocks.Data
//Simple procedure
/*CREATE PROCEDURE sp_img(@img image) AS

insert into tb_img values(@img)*/

//record data
SqlHelper.ExecuteNonQuery(connectionString,"sp_img",obj);

}

}</code>

Da Intern
GeneralHelp... Pin
karthikv17-Jun-03 9:59
karthikv17-Jun-03 9:59 
GeneralRe: Help... Pin
karthikv18-Jun-03 1:51
karthikv18-Jun-03 1:51 
GeneralRe: Help... Pin
Member 43741223-Jun-03 5:14
Member 43741223-Jun-03 5:14 
GeneralHELP Pin
NiNa0317-Jun-03 7:36
NiNa0317-Jun-03 7:36 
GeneralRe: HELP Pin
Daniel Turini17-Jun-03 7:58
Daniel Turini17-Jun-03 7:58 
GeneralFourCC's Pin
nfactorial17-Jun-03 7:26
nfactorial17-Jun-03 7:26 
GeneralRe: FourCC's Pin
leppie17-Jun-03 7:45
leppie17-Jun-03 7:45 
GeneralRe: FourCC's Pin
nfactorial17-Jun-03 23:01
nfactorial17-Jun-03 23:01 
GeneralFlickering Pin
Rohde17-Jun-03 6:39
Rohde17-Jun-03 6:39 
GeneralRe: Flickering Pin
John Fisher17-Jun-03 7:31
John Fisher17-Jun-03 7:31 
GeneralWin32 API pointer question Pin
albean17-Jun-03 5:44
albean17-Jun-03 5:44 
GeneralRe: Win32 API pointer question Pin
John Fisher17-Jun-03 7:35
John Fisher17-Jun-03 7:35 
GeneralRe: Win32 API pointer question Pin
J. Dunlap17-Jun-03 8:19
J. Dunlap17-Jun-03 8:19 
GeneralRe: Win32 API pointer question Pin
albean17-Jun-03 15:31
albean17-Jun-03 15:31 
GeneralRe: Win32 API pointer question Pin
J. Dunlap17-Jun-03 15:35
J. Dunlap17-Jun-03 15:35 
GeneralMessage Handler Pin
JorcanFyn17-Jun-03 5:35
JorcanFyn17-Jun-03 5:35 
GeneralRe: Message Handler Pin
albean17-Jun-03 5:55
albean17-Jun-03 5:55 

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.