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
  #1 (permalink)  
Old October 26th, 2010, 11:45 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 how do i write JSON-encoded in asp.net vb?

i need to write a JSON-encoded script in mt web(asp.net vb).
how do i do it?
  #2 (permalink)  
Old October 26th, 2010, 12:03 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

They are classes for doing that automatic in .net 4.0. Do a google search for them.
__________________
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.
================================================== =========
  #3 (permalink)  
Old October 26th, 2010, 12:24 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 use asp.net 3.5 and ineed this script
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); 
  #4 (permalink)  
Old October 26th, 2010, 02:46 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

how do i write this script in my default.aspx.vb page?
  #5 (permalink)  
Old October 26th, 2010, 02:57 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

What do you mean by write this script in my default page???
__________________
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.
================================================== =========
  #6 (permalink)  
Old October 26th, 2010, 03:19 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 mean that i need to run the code in my back page(default.aspx.vb)
  #7 (permalink)  
Old October 26th, 2010, 03:29 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

Wait, maybe you can clarify a lot what you need if you start posting complete data on what you have and what you want to happen...

From your post, I don't know if you want to print that json code directly to you page, you want to decode it on controls in your page, or do other things (like extracting that code from somewhere)
__________________
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.
================================================== =========
  #8 (permalink)  
Old October 26th, 2010, 05:51 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

sorry,
i need to paste this code into my web,and its must be in json encoded.
i try to write it in vb but this not support vb.
how do i put a json code like the example intro my vb.net web?
  #9 (permalink)  
Old October 26th, 2010, 06:04 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

What do you mean by paste this code????

You have to be a lot more clear so somebody can help you. You want to make a Json object on your site?
__________________
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.
================================================== =========
  #10 (permalink)  
Old October 26th, 2010, 06:23 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 look
this is my vb script
PHP Code:
                attachment.caption "bla bla bla"
                
attachment.name "blaa blaa blaa"
                
attachment.href "http://apps.facebook.com/hottttttt/"
                
attachment.description "blalala"
                
attachment.properties = New attachment_property() With _
                 
.category = New attachment_category() With _
                  
.href "http://apps.facebook.com/hottttttt/"_
                  
.text "blaaaa" _
                 
}, _
                 
.ratings "5 stars" _
                
}
                
attachment.media = New List(Of attachment_media)()
                
With New attachment_media_image
                    
.type attachment_media_type.image
                    
.src "http://photos-g.ak.fbcdn.net/photos-ak-snc1/v27562/114/161882717169966/app_1_161882717169966_5963.gif"
                    
.href "http://apps.facebook.com/hottttttt/"
                
End With 
now i found an article that it need to in json encoded like this
http://developers.facebook.com/docs/guides/attachments

i need to replace my vb code with json code
 


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.