Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 3.5 > ASP.NET 3.5 Basics
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
ASP.NET 3.5 Basics If you are new to ASP or ASP.NET programming with version 3.5, this is the forum to begin asking questions. Please also see the Visual Web Developer 2008 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 3.5 Basics section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Display Modes
  #11 (permalink)  
Old October 26th, 2010, 10:50 PM
Friend of Wrox
Points: 7,395, Level: 36
Points: 7,395, Level: 36 Points: 7,395, Level: 36 Points: 7,395, Level: 36
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Capital Federal, , Argentina.
Posts: 2,190
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi
Default

I think you didn't understand Json.
It's a way to put data so you can download it to a class (object). Since the structure is know by everyone involved, it can be handle by a lot of languages.
.Net didn't add a serializer until version 4, but you can add and make the JSon structure by yourself. It's in fact a text file with common structure.
So the thing you have to do is build a string according to the rules they are posting on the guide. For example:
Name: "your name", etc...

According to all the post you are making, the object you need to serialize is attachment... Since you don't have an auto method to do it, you will have to build the string yourself.
__________________
HTH

Gonzalo


================================================== =========
Read this if you want to know how to get a correct reply for your question.
(Took that from Doug signature and he Took that from Peter profile)
================================================== =========
My programs achieved a new certification :
WORKS ON MY MACHINE
================================================== =========
I know that CVS was evil, and now i got the
proof.
================================================== =========
The Following User Says Thank You to gbianchi For This Useful Post:
nir987 (October 27th, 2010)
  #12 (permalink)  
Old October 27th, 2010, 08:34 AM
Authorized User
Points: 221, Level: 4
Points: 221, Level: 4 Points: 221, Level: 4 Points: 221, Level: 4
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Apr 2010
Posts: 55
Thanks: 9
Thanked 0 Times in 0 Posts
Default

can you give me a download link for it?
and show how do i write it(just the start?) pleaseeeee
its will help me alot!!!!
  #13 (permalink)  
Old October 27th, 2010, 09:24 AM
Friend of Wrox
Points: 7,395, Level: 36
Points: 7,395, Level: 36 Points: 7,395, Level: 36 Points: 7,395, Level: 36
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Capital Federal, , Argentina.
Posts: 2,190
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi
Default

Sorry, a download for what?

And show you how to writte what part? , you already have the object code, you don't know how to build a string?
__________________
HTH

Gonzalo


================================================== =========
Read this if you want to know how to get a correct reply for your question.
(Took that from Doug signature and he Took that from Peter profile)
================================================== =========
My programs achieved a new certification :
WORKS ON MY MACHINE
================================================== =========
I know that CVS was evil, and now i got the
proof.
================================================== =========
  #14 (permalink)  
Old October 27th, 2010, 01:16 PM
Authorized User
Points: 221, Level: 4
Points: 221, Level: 4 Points: 221, Level: 4 Points: 221, Level: 4
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Apr 2010
Posts: 55
Thanks: 9
Thanked 0 Times in 0 Posts
Default

i need to wirte this
PHP Code:
var message 'Check out this cute pic.'
var 
attachment = { 
    
"name""i'm bursting with joy"
    
"href"" http://bit.ly/187gO1"
    
"caption""{*actor*} rated the lolcat 5 stars"
    
"description""a funny looking cat"
    
"properties": { 
        
"category": { "text""humor""href""http://bit.ly/KYbaN"}, 
        
"ratings""5 stars" 
    
}, 
    
"media": [{ 
        
"type""image"
        
"src""http://icanhascheezburger.files.wordpress.com/2009/03/funny-pictures-your-cat-is-bursting-with-joy1.jpg"
        
"href""http://bit.ly/187gO1"}] 
}; 
var 
action_links = [{"text":"Recaption this""href":"http://bit.ly/19DTbF"}];
FB.Connect.streamPublish(messageattachmentaction_links); 
and i need to download from google the class
  #15 (permalink)  
Old October 27th, 2010, 02:21 PM
Imar's Avatar
Wrox Author
Points: 71,164, Level: 100
Points: 71,164, Level: 100 Points: 71,164, Level: 100 Points: 71,164, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 16,960
Thanks: 79
Thanked 1,559 Times in 1,536 Posts
Default

Hi there,

I have suggested a number of fixes and simplifications to your code to make it easier to translate this to VB in this thread: i need help( convert c to vb.net). I see none of this in the code you have now.

I think you're missing a number of important fundamentals which will make this very difficult for you to program. Also, the fact you're not responding to folloow up questions by providing more scope as to why you need this code, what the attachment_media classes are, where they come from, why you don't use the SDK to talk to Facebook and so on, make it very difficult for us to help you.

In other words: understand and know what you want, communicate that clearly over this forum, read and experiment and read some more and you can make this work. Otherwise, I have a bad feeling about your success here.

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
  #16 (permalink)  
Old October 27th, 2010, 02:28 PM
Authorized User
Points: 221, Level: 4
Points: 221, Level: 4 Points: 221, Level: 4 Points: 221, Level: 4
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Apr 2010
Posts: 55
Thanks: 9
Thanked 0 Times in 0 Posts
Default

the vb code are not supprot,so its must be in json.
i need to replace mt vb code with the json code.
can i do it in visual studio 2008? and how i do it?
thanks for trying to help!
  #17 (permalink)  
Old October 27th, 2010, 03:19 PM
Imar's Avatar
Wrox Author
Points: 71,164, Level: 100
Points: 71,164, Level: 100 Points: 71,164, Level: 100 Points: 71,164, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 16,960
Thanks: 79
Thanked 1,559 Times in 1,536 Posts
Default

VB and JSON are quite different. VB is programming language, JSON a data exchange format. So, your statement:

Quote:
the vb code are not supprot,so its must be in json.
i need to replace mt vb code with the json code.
makes no sense at all.

Furthermore, you're not answering my questions so I don't understand why you think we can help you.

I guess you need to Google for this, or be perfecly clear. Without lots of relevant info, I can't help you anymore.

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
  #18 (permalink)  
Old October 27th, 2010, 03:28 PM
Authorized User
Points: 221, Level: 4
Points: 221, Level: 4 Points: 221, Level: 4 Points: 221, Level: 4
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Apr 2010
Posts: 55
Thanks: 9
Thanked 0 Times in 0 Posts
Default

ok simple questions
how do i write json code in visual studio 2008?
  #19 (permalink)  
Old October 27th, 2010, 03:52 PM
Imar's Avatar
Wrox Author
Points: 71,164, Level: 100
Points: 71,164, Level: 100 Points: 71,164, Level: 100 Points: 71,164, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 16,960
Thanks: 79
Thanked 1,559 Times in 1,536 Posts
Default

Have you searched Google for this?

http://lmgtfy.com/?q=JSON+.NET

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
  #20 (permalink)  
Old October 27th, 2010, 07:14 PM
Authorized User
Points: 221, Level: 4
Points: 221, Level: 4 Points: 221, Level: 4 Points: 221, Level: 4
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Apr 2010
Posts: 55
Thanks: 9
Thanked 0 Times in 0 Posts
Default

yes i search.
but can i just paste the code? or i need to write it with other way?
thanks for all the help!
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can you write an ActiveX DLL with VB.NET? james gold Pro VB.NET 2002/2003 4 November 18th, 2006 01:19 PM
Quickest way to write data to Access DB in VB.NET aslyon ADO.NET 4 September 22nd, 2004 09:00 AM
Can you write an ActiveX DLL with VB.NET? james gold VB.NET 1 September 8th, 2003 10:49 AM
Can you write an ActiveX DLL with VB.NET? james gold VB Components 0 September 8th, 2003 10:44 AM
Can you write an ActiveX DLL with VB.NET? james gold VB.NET 2002/2003 Basics 0 September 5th, 2003 06:25 AM



All times are GMT -4. The time now is 03:43 PM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.