Click here to Skip to main content
15,901,666 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionHttpModules - scope Pin
Member 39190493-Jun-10 9:42
Member 39190493-Jun-10 9:42 
QuestionHow to implement event chaining with Page.Render Pin
Member 39190493-Jun-10 9:33
Member 39190493-Jun-10 9:33 
AnswerRe: How to implement event chaining with Page.Render Pin
T M Gray3-Jun-10 9:59
T M Gray3-Jun-10 9:59 
GeneralRe: How to implement event chaining with Page.Render Pin
Member 39190493-Jun-10 11:18
Member 39190493-Jun-10 11:18 
QuestionHow to develop forum application in .net Pin
naresh kumar a3-Jun-10 9:31
naresh kumar a3-Jun-10 9:31 
AnswerRe: How to develop forum application in .net Pin
T M Gray3-Jun-10 9:55
T M Gray3-Jun-10 9:55 
GeneralRe: How to develop forum application in .net Pin
naresh kumar a5-Jun-10 22:00
naresh kumar a5-Jun-10 22:00 
Questionwebservice json Pin
AndyInUK3-Jun-10 7:18
AndyInUK3-Jun-10 7:18 
Hi I have created a method within a webservice to return object in JSON.

public class Car : System.Web.Services.WebService
    {
        [WebMethod]
        [ScriptMethod(ResponseFormat = ResponseFormat.Json)]
        public string GetCarSpecs(string CarID)
        {           
            Guid photoid;
            Guid thisCarID;
            thisCarID= new Guid(CarID);
            Car car = new Car(thisCarID);
           string output = "{id:" + thisCarID.ToString() + " " + "name:" + car.name + " " + "details:" + car.details+ " " + "photoid:" + (Guid)car.photoid+ " " + "}";
            return new JavaScriptSerializer().Serialize(output);
              
        }

    }


But I am very much in doubt i have got this wrong as I am hardcoding the JSON format which shouldn't be the case.

What am I doing wrong here and how can i fix it ?

Any help would be appreciated.

Thank You
Andyyy
AnswerRe: webservice json Pin
PSK_4-Jun-10 2:41
PSK_4-Jun-10 2:41 
GeneralRe: webservice json Pin
AndyInUK4-Jun-10 3:47
AndyInUK4-Jun-10 3:47 
GeneralRe: webservice json Pin
PSK_4-Jun-10 3:58
PSK_4-Jun-10 3:58 
GeneralRe: webservice json Pin
AndyInUK4-Jun-10 4:59
AndyInUK4-Jun-10 4:59 
QuestionStoring information in page Pin
vjvjvjvj3-Jun-10 7:15
vjvjvjvj3-Jun-10 7:15 
Answer[Cross-post]: Storing information in page Pin
Sandeep Mewara3-Jun-10 7:20
mveSandeep Mewara3-Jun-10 7:20 
QuestionConfiguration Error Pin
treuveni3-Jun-10 3:23
treuveni3-Jun-10 3:23 
AnswerRe: Configuration Error Pin
Brij3-Jun-10 3:45
mentorBrij3-Jun-10 3:45 
GeneralRe: Configuration Error Pin
treuveni3-Jun-10 4:04
treuveni3-Jun-10 4:04 
GeneralRe: Configuration Error Pin
Sandeep Mewara3-Jun-10 7:14
mveSandeep Mewara3-Jun-10 7:14 
GeneralRe: Configuration Error Pin
treuveni4-Jun-10 3:27
treuveni4-Jun-10 3:27 
Questiongridview rows stored in database Pin
jadhavShubhangi3-Jun-10 1:21
jadhavShubhangi3-Jun-10 1:21 
AnswerRe: gridview rows stored in database Pin
Not Active3-Jun-10 1:50
mentorNot Active3-Jun-10 1:50 
GeneralRe: gridview rows stored in database Pin
jadhavShubhangi3-Jun-10 2:05
jadhavShubhangi3-Jun-10 2:05 
GeneralRe: gridview rows stored in database Pin
JHizzle3-Jun-10 2:15
JHizzle3-Jun-10 2:15 
GeneralRe: gridview rows stored in database Pin
suresh_spsuthar3-Jun-10 2:29
suresh_spsuthar3-Jun-10 2:29 
AnswerRe: gridview rows stored in database Pin
Sandeep Mewara3-Jun-10 7:17
mveSandeep Mewara3-Jun-10 7:17 

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.