 |
| 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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|
|

October 26th, 2010, 10:45 AM
|
|
Authorized User
|
|
Join Date: Apr 2010
Posts: 55
Thanks: 9
Thanked 0 Times in 0 Posts
|
|
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? 
|
|

October 26th, 2010, 11:03 AM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
|
|
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.
================================================== =========
|
|

October 26th, 2010, 11:24 AM
|
|
Authorized User
|
|
Join Date: Apr 2010
Posts: 55
Thanks: 9
Thanked 0 Times in 0 Posts
|
|
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(message, attachment, action_links);
|
|

October 26th, 2010, 01:46 PM
|
|
Authorized User
|
|
Join Date: Apr 2010
Posts: 55
Thanks: 9
Thanked 0 Times in 0 Posts
|
|
how do i write this script in my default.aspx. vb page?
|
|

October 26th, 2010, 01:57 PM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
|
|
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.
================================================== =========
|
|

October 26th, 2010, 02:19 PM
|
|
Authorized User
|
|
Join Date: Apr 2010
Posts: 55
Thanks: 9
Thanked 0 Times in 0 Posts
|
|
i mean that i need to run the code in my back page(default.aspx. vb)
|
|

October 26th, 2010, 02:29 PM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
|
|
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.
================================================== =========
|
|

October 26th, 2010, 04:51 PM
|
|
Authorized User
|
|
Join Date: Apr 2010
Posts: 55
Thanks: 9
Thanked 0 Times in 0 Posts
|
|
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?
|
|

October 26th, 2010, 05:04 PM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
|
|
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.
================================================== =========
|
|

October 26th, 2010, 05:23 PM
|
|
Authorized User
|
|
Join Date: Apr 2010
Posts: 55
Thanks: 9
Thanked 0 Times in 0 Posts
|
|
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
|
|
 |