allthetimeintheworld
Programmer
Hi,
I have created a webservice with a web method that inserts data into a database...
[WebMethod]
public ????? addRequest(string title, string initial, string surname)
{
.... do a bit of SQL ...
return ????? ;
}
I'm accessing this service via a form in a web page using an HTTP POST.
What I want is, once the data has been added, to go to a static web page that says something along the lines of:
"Nice one fella! Your request has been added. Click here to go back to home page."
...or...
"Unlucky! Something went wrong. Click here to have another bash."
So how do I do this? I've been looking at serialising the HTML in the page, returning a link to a page etc but can't find the way.
Is using a webservice the wrong approcach here? If so, what is the correct one?
Thanks for your help!
Sam
I have created a webservice with a web method that inserts data into a database...
[WebMethod]
public ????? addRequest(string title, string initial, string surname)
{
.... do a bit of SQL ...
return ????? ;
}
I'm accessing this service via a form in a web page using an HTTP POST.
What I want is, once the data has been added, to go to a static web page that says something along the lines of:
"Nice one fella! Your request has been added. Click here to go back to home page."
...or...
"Unlucky! Something went wrong. Click here to have another bash."
So how do I do this? I've been looking at serialising the HTML in the page, returning a link to a page etc but can't find the way.
Is using a webservice the wrong approcach here? If so, what is the correct one?
Thanks for your help!
Sam