Click here to Skip to main content
15,913,199 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionprob in calling webservice from client side in javascript Pin
itzmevishu18-Jul-07 19:01
itzmevishu18-Jul-07 19:01 
Questiondeployment in asp.net Pin
Sonia Gupta18-Jul-07 18:25
Sonia Gupta18-Jul-07 18:25 
AnswerRe: deployment in asp.net Pin
Sylvester george18-Jul-07 18:39
Sylvester george18-Jul-07 18:39 
GeneralRe: deployment in asp.net Pin
Sonia Gupta18-Jul-07 19:14
Sonia Gupta18-Jul-07 19:14 
GeneralRe: deployment in asp.net Pin
Sylvester george18-Jul-07 19:19
Sylvester george18-Jul-07 19:19 
AnswerRe: deployment in asp.net Pin
N a v a n e e t h18-Jul-07 19:12
N a v a n e e t h18-Jul-07 19:12 
Questioncreate image gallery. Pin
Milind Panchal18-Jul-07 18:22
Milind Panchal18-Jul-07 18:22 
QuestionValue of type Byte cannot be converted to 1-dimensional array of Byte Pin
ASPnoob18-Jul-07 16:22
ASPnoob18-Jul-07 16:22 
Hi, I'm getting the exception "Value of type Byte cannot be converted to 1-dimensional array of Byte", when running my code. The following is my code snippet. Please help determine what the cause of the exception is, thank you in advance for your help.
<br />
Private Sub CreateImage(ByVal id As String)<br />
	' Connectoin string is taken from web.config file.<br />
	Dim _con As New SqlConnection(System.Configuration.ConfigurationSettings.AppSettings("DB"))<br />
<br />
	Try<br />
		_con.Open()<br />
		Dim _cmd As SqlCommand = _con.CreateCommand()<br />
		_cmd.CommandText = "select logo from" + " pub_info where pub_id='" + id + "'"<br />
		Dim _buf As Byte() = CByte(_cmd.ExecuteScalar())<br />
<br />
		' This is optional<br />
		Response.ContentType = "image/gif"<br />
<br />
		'stream it back in the HTTP response<br />
<br />
<br />
		Response.BinaryWrite(_buf)<br />
	Catch<br />
	Finally<br />
<br />
		_con.Close()<br />
	End Try<br />
End Sub<br />

AnswerRe: Value of type Byte cannot be converted to 1-dimensional array of Byte Pin
Sathesh Sakthivel18-Jul-07 16:31
Sathesh Sakthivel18-Jul-07 16:31 
GeneralRe: Value of type Byte cannot be converted to 1-dimensional array of Byte [modified] Pin
ASPnoob18-Jul-07 16:51
ASPnoob18-Jul-07 16:51 
QuestionIntelligence in VS 2005 Pin
Amit Kumar G18-Jul-07 15:06
Amit Kumar G18-Jul-07 15:06 
AnswerRe: Intelligence in VS 2005 Pin
Sylvester george18-Jul-07 18:15
Sylvester george18-Jul-07 18:15 
AnswerRe: Intelligence in VS 2005 Pin
Mubashir Javaid18-Jul-07 18:36
Mubashir Javaid18-Jul-07 18:36 
QuestionSingle Sign On for two sites of different domains. Pin
sandeep kumar pundhir18-Jul-07 11:46
sandeep kumar pundhir18-Jul-07 11:46 
AnswerRe: Single Sign On for two sites of different domains. Pin
RepliCrux18-Jul-07 12:45
RepliCrux18-Jul-07 12:45 
GeneralRe: Single Sign On for two sites of different domains. Pin
N a v a n e e t h18-Jul-07 19:31
N a v a n e e t h18-Jul-07 19:31 
GeneralRe: Single Sign On for two sites of different domains. Pin
RepliCrux18-Jul-07 19:43
RepliCrux18-Jul-07 19:43 
GeneralRe: Single Sign On for two sites of different domains. Pin
N a v a n e e t h18-Jul-07 20:46
N a v a n e e t h18-Jul-07 20:46 
AnswerRe: Single Sign On for two sites of different domains. Pin
ballameharmurali18-Jul-07 18:23
ballameharmurali18-Jul-07 18:23 
QuestionControls Collection Pin
Hyland Computer Systems18-Jul-07 9:46
Hyland Computer Systems18-Jul-07 9:46 
AnswerRe: Controls Collection Pin
leckey18-Jul-07 9:49
leckey18-Jul-07 9:49 
AnswerRe: Controls Collection Pin
-Dr_X-18-Jul-07 9:53
-Dr_X-18-Jul-07 9:53 
GeneralRe: Controls Collection Pin
Hyland Computer Systems18-Jul-07 14:55
Hyland Computer Systems18-Jul-07 14:55 
QuestionVista and IIS : error 503 [modified] Pin
BadJerry18-Jul-07 8:14
BadJerry18-Jul-07 8:14 
AnswerRe: Vista and IIS : error 503 Pin
leckey18-Jul-07 9:53
leckey18-Jul-07 9:53 

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.