Click here to Skip to main content
15,918,889 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionASP.NET Webservice clients Pin
Piya B6-Aug-09 3:57
Piya B6-Aug-09 3:57 
AnswerRe: ASP.NET Webservice clients Pin
Abhijit Jana6-Aug-09 4:39
professionalAbhijit Jana6-Aug-09 4:39 
QuestionSelecting from a dropdown menu without the whole page refreshing itself. Pin
LucBite6-Aug-09 3:47
LucBite6-Aug-09 3:47 
AnswerRe: Selecting from a dropdown menu without the whole page refreshing itself. Pin
Vimalsoft(Pty) Ltd6-Aug-09 4:10
professionalVimalsoft(Pty) Ltd6-Aug-09 4:10 
QuestionNeed help with calling this method. Pin
kaining896-Aug-09 2:20
kaining896-Aug-09 2:20 
AnswerRe: Need help with calling this method. Pin
Abhijit Jana6-Aug-09 2:36
professionalAbhijit Jana6-Aug-09 2:36 
GeneralRe: Need help with calling this method. Pin
kaining896-Aug-09 3:17
kaining896-Aug-09 3:17 
GeneralRe: Need help with calling this method. Pin
Vimalsoft(Pty) Ltd6-Aug-09 3:40
professionalVimalsoft(Pty) Ltd6-Aug-09 3:40 
You have declare your Function like this
Public Function byteArrayToImage(ByVal byteArrayIn As Byte()) As Image
Dim ms As New MemoryStream(byteArrayIn)
Dim returnImage As Image = Image.FromStream(ms)

Return returnImage
End Function



now if you have declare this in same page , then you can access it like this

Protected Sub GridView1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles GridView1.SelectedIndexChanged

obj.byteArrayToImage(byteArrayIn)


End Sub


but if you have this in a Different class , then you have to create an object of a Class like this


MyClass obj = new MyClass

obj.byteArrayToImage(byteArrayIn)



Hope this Helps

Vuyiswa Maseko,

Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."

C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.somee.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/

GeneralRe: Need help with calling this method. Pin
kaining896-Aug-09 3:58
kaining896-Aug-09 3:58 
GeneralRe: Need help with calling this method. Pin
Vimalsoft(Pty) Ltd6-Aug-09 4:04
professionalVimalsoft(Pty) Ltd6-Aug-09 4:04 
QuestionSet default input language of a text box Pin
benams6-Aug-09 1:56
benams6-Aug-09 1:56 
AnswerRe: Set default input language of a text box Pin
Abhishek Sur6-Aug-09 9:50
professionalAbhishek Sur6-Aug-09 9:50 
QuestionApplication Begin request is not getting called Pin
suzzain6-Aug-09 1:42
suzzain6-Aug-09 1:42 
Questionyield return Pin
vishwjeet6-Aug-09 1:32
vishwjeet6-Aug-09 1:32 
AnswerRe: yield return Pin
Abhishek Sur6-Aug-09 10:24
professionalAbhishek Sur6-Aug-09 10:24 
Questionhow to get cursor position of the textbox Pin
ansriharsha6-Aug-09 1:25
ansriharsha6-Aug-09 1:25 
AnswerRe: how to get cursor position of the textbox Pin
Abhishek Sur6-Aug-09 10:46
professionalAbhishek Sur6-Aug-09 10:46 
AnswerRe: how to get cursor position of the textbox Pin
ansriharsha23-Aug-09 21:15
ansriharsha23-Aug-09 21:15 
GeneralRe: how to get cursor position of the textbox Pin
Abhishek Sur23-Aug-09 21:54
professionalAbhishek Sur23-Aug-09 21:54 
QuestionDesign a master page Pin
SUDHAKAR PALLAM6-Aug-09 1:01
SUDHAKAR PALLAM6-Aug-09 1:01 
QuestionAjax Refresh Without Timer Pin
platso_5885-Aug-09 23:33
platso_5885-Aug-09 23:33 
AnswerRe: Ajax Refresh Without Timer Pin
Christian Graus5-Aug-09 23:41
protectorChristian Graus5-Aug-09 23:41 
Questionlinkbutton ibn repeater control and based on linkbutton click different modal[poupextender have to show..., Pin
Member 38798815-Aug-09 23:21
Member 38798815-Aug-09 23:21 
AnswerRe: linkbutton ibn repeater control and based on linkbutton click different modal[poupextender have to show..., Pin
Abhishek Sur6-Aug-09 11:54
professionalAbhishek Sur6-Aug-09 11:54 
Questionaspx js Pin
epcode15015-Aug-09 22:44
epcode15015-Aug-09 22:44 

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.