Click here to Skip to main content
15,914,323 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Table Controls clear Pin
saanj12-Jun-09 2:53
saanj12-Jun-09 2:53 
QuestionASP.Net Server control Pin
Amit Patel198512-Jun-09 1:55
Amit Patel198512-Jun-09 1:55 
AnswerRe: ASP.Net Server control Pin
saanj12-Jun-09 2:19
saanj12-Jun-09 2:19 
AnswerRe: ASP.Net Server control Pin
Abhijit Jana12-Jun-09 3:20
professionalAbhijit Jana12-Jun-09 3:20 
QuestionGenerating word document and saving to a particular location in c#.net Pin
YazhiniP12-Jun-09 1:04
YazhiniP12-Jun-09 1:04 
AnswerRe: Generating word document and saving to a particular location in c#.net Pin
Christian Graus12-Jun-09 1:15
protectorChristian Graus12-Jun-09 1:15 
AnswerRe: Generating word document and saving to a particular location in c#.net Pin
YazhiniP12-Jun-09 1:47
YazhiniP12-Jun-09 1:47 
Questionerror is \\The parameterized query '(@img_type nvarchar(4000),@img_stream nvarchar(4000))INSERT INTO' expects the parameter '@img_type', which was not supplied. Pin
jigneshp2512-Jun-09 1:03
jigneshp2512-Jun-09 1:03 
Dim img As FileUpload = CType(imgUpload, FileUpload)
Dim imgByte As Byte() = Nothing
Dim imgtype As String = Nothing
If img.HasFile AndAlso Not img.PostedFile Is Nothing Then
'To create a PostedFile
Dim File As HttpPostedFile = imgUpload.PostedFile
'Create byte Array with file len
imgByte = New Byte(File.ContentLength - 1) {}
imgtype = New String(File.ContentType)
'force the control to load data in array
File.InputStream.Read(imgByte, 0, File.ContentLength)

End If
' Insert the employee name and image into db

c.Open()

Dim sql As String = "INSERT INTO tblImg (img_type, img_stream)VALUES (@img_type,@img_stream) "
Dim cmd As SqlCommand = New SqlCommand(sql, c)
cmd.Parameters.AddWithValue("@img_type", imgtype)
cmd.Parameters.AddWithValue("img_stream", imgByte)

Dim id As Integer = Convert.ToInt32(cmd.ExecuteScalar())
lblResult.Text = String.Format("Employee ID is {0}", id)
AnswerRe: error is \\The parameterized query '(@img_type nvarchar(4000),@img_stream nvarchar(4000))INSERT INTO' expects the parameter '@img_type', which was not supplied. Pin
Christian Graus12-Jun-09 1:16
protectorChristian Graus12-Jun-09 1:16 
AnswerRe: error is \\The parameterized query '(@img_type nvarchar(4000),@img_stream nvarchar(4000))INSERT INTO' expects the parameter '@img_type', which was not supplied. Pin
Abhijit Jana12-Jun-09 1:20
professionalAbhijit Jana12-Jun-09 1:20 
QuestionObject reference not set to an instance of an object. (Use the New keyword to create object instance) Pin
KhandelwalA12-Jun-09 0:56
KhandelwalA12-Jun-09 0:56 
AnswerRe: Object reference not set to an instance of an object. (Use the New keyword to create object instance) Pin
Christian Graus12-Jun-09 1:17
protectorChristian Graus12-Jun-09 1:17 
AnswerRe: Object reference not set to an instance of an object. (Use the New keyword to create object instance) Pin
saanj12-Jun-09 1:25
saanj12-Jun-09 1:25 
AnswerRe: Object reference not set to an instance of an object. (Use the New keyword to create object instance) Pin
Abhijit Jana12-Jun-09 1:40
professionalAbhijit Jana12-Jun-09 1:40 
QuestionHow to Add the BindingManager to the tool box in asp.net if we can Pin
govindi unal11-Jun-09 23:26
govindi unal11-Jun-09 23:26 
QuestionMost Visited Pin
Ramkumar_S11-Jun-09 23:24
Ramkumar_S11-Jun-09 23:24 
AnswerRe: Most Visited Pin
Christian Graus11-Jun-09 23:45
protectorChristian Graus11-Jun-09 23:45 
AnswerRe: Most Visited Pin
saanj12-Jun-09 0:20
saanj12-Jun-09 0:20 
AnswerRe: Most Visited Pin
Colin Angus Mackay12-Jun-09 0:39
Colin Angus Mackay12-Jun-09 0:39 
Questionproblem in alert Pin
janani1311-Jun-09 21:39
janani1311-Jun-09 21:39 
AnswerRe: problem in alert Pin
Aman Bhullar11-Jun-09 21:40
Aman Bhullar11-Jun-09 21:40 
AnswerRe: problem in alert Pin
Blue_Boy11-Jun-09 21:54
Blue_Boy11-Jun-09 21:54 
GeneralRe: problem in alert Pin
janani1311-Jun-09 22:01
janani1311-Jun-09 22:01 
GeneralRe: problem in alert Pin
Blue_Boy11-Jun-09 22:14
Blue_Boy11-Jun-09 22:14 
GeneralRe: problem in alert Pin
janani1311-Jun-09 23:05
janani1311-Jun-09 23:05 

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.