FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister  MasterVB.NET
Visual Basic 2005 .NET Forum
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Passing to javascript a class with public properties that re
 
Post new topic   Reply to topic    MasterVB.NET Forum Index -> Database Programming
View previous topic :: View next topic  
Message
Author
Injenier
Newbie
Joined: 22 Jul 2006
Posts: 8

PostPosted: Sat Jul 22, 2006 4:00 am    
Post subject: Passing to javascript a class with public properties that returns SqlTypes
Reply with quote

If I change MyAjaxClass sample (using SqlString istead of string) like that
...
private SqlString m_FirstName = "Michael";

public SqlString FirstName
{
get { return m_FirstName; }
set { m_FirstName = value; }
}
...

here is the method that pass to the client an object of type MyAjaxClass


[AjaxPro.AjaxMethod]
public MyAjaxClass GetClass()
{
MyAjaxClass c = new MyAjaxClass();
return c;
}

but when javascript method execute function GetClass_callback(response){...}
the response.value is null

What can I do to use classes with properties types like SqlString,
SqlInt32 etc. ?



 

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    MasterVB.NET Forum Index -> Database Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Archieve

Powered by phpBB © 2001, 2002 phpBB Group, used in Visual Basic 2005 .NET Forum

| Visual Basic .NET Forum | Online Recipe Archiver | Shareware Freeware PAD | Lowongan Kerja | Kamus Online | Health Supply | Digital Camera Review |
Orang Paling Keren

RSS