Go Back   DeveloperBarn Forums > Programming & Scripting > .Net Development

Sponsored Links

Discuss "Generic Form Handler" in the .Net Development forum.

.Net Development - Learn about the Microsoft.Net framework and how to create powerful web-based (ASP.net) and client-based (Windows Forms) applications utilizing various languages such as C#, VB.Net, J# and others.


Reply « Previous Thread | Next Thread »  
 
LinkBack Thread Tools Display Modes
  #1  
Old July 28th, 2008, 10:32 AM
richyrich's Avatar
Moderator


 
Join Date: Mar 2008
Location: Somewhere only we know...
Posts: 395
Thanks: 26
Thanked 32 Times in 32 Posts
Blog Entries: 1
Rep Power: 1
richyrich will become famous soon enough

Awards Showcase
Classic ASP JavaScript 
Total Awards: 2

Default Generic Form Handler

Could you guys give me some ideas on this?

What we want is a form handler on our site that can take inputs from an html form on another site and validate and process them on our server.

So, if there was a generic form, of our design (ie, certain fieldnames), on www.somedomain.com I want the target of that form to be a page on our site that can validate the inputs from the form and either process the details (ie insert into db) or fire back an error (eg you need to enter your surname)

What I don't really want to do is have other sites hosting the processing page as this will open up security issues.

Could this be done with .NET bearing in mind event validation and viewstate? or would classic ASP be more appropriate? I know it's a poor solution, but what about using an IFRAME to hold a full .aspx page hosted on our server?

Any ideas how you'd approach this?

btw, I posted in .NET as I'd ideally like a way to handle this in .NET...
Reply With Quote
Sponsored Links
  #2  
Old July 28th, 2008, 12:57 PM
jmurrayhead's Avatar
The Barnfather

 
Join Date: Mar 2008
Location: Reston, VA, USA
Posts: 820
Thanks: 20
Thanked 74 Times in 71 Posts
Blog Entries: 5
Rep Power: 3
jmurrayhead has a spectacular aura aboutjmurrayhead has a spectacular aura aboutjmurrayhead has a spectacular aura about

Awards Showcase
Microsoft .Net Microsoft SQL Server Microsoft Windows Classic ASP 
Total Awards: 4

Default

I don't have any working samples as I've never attempted such a thing, but I do believe it is possible via the XmlHttpRequest object. I'd Google for "cross domain posting" or something along those lines and you should see some promising results.
__________________
jmurrayhead
If you agree with me... click the icon!
If my post solved your problem, click the button in the lower right-hand corner of the post.

Join our Folding team: DeveloperBarn Folding
Reply With Quote
  #3  
Old July 28th, 2008, 01:30 PM
richyrich's Avatar
Moderator


 
Join Date: Mar 2008
Location: Somewhere only we know...
Posts: 395
Thanks: 26
Thanked 32 Times in 32 Posts
Blog Entries: 1
Rep Power: 1
richyrich will become famous soon enough

Awards Showcase
Classic ASP JavaScript 
Total Awards: 2

Default

Quote:
Originally Posted by jmurrayhead View Post
I don't have any working samples as I've never attempted such a thing, but I do believe it is possible via the XmlHttpRequest object. I'd Google for "cross domain posting" or something along those lines and you should see some promising results.
Thanks J.

Would a simple HTML form suffice as the input method? I'm thinking that the form could be running on any type of server and may not support ASP/ASP.NET, but the processing side would be handled on our server.
Reply With Quote
  #4  
Old July 28th, 2008, 01:34 PM
jmurrayhead's Avatar
The Barnfather

 
Join Date: Mar 2008
Location: Reston, VA, USA
Posts: 820
Thanks: 20
Thanked 74 Times in 71 Posts
Blog Entries: 5
Rep Power: 3
jmurrayhead has a spectacular aura aboutjmurrayhead has a spectacular aura aboutjmurrayhead has a spectacular aura about

Awards Showcase
Microsoft .Net Microsoft SQL Server Microsoft Windows Classic ASP 
Total Awards: 4

Default

Quote:
Originally Posted by richyrich View Post
Thanks J.

Would a simple HTML form suffice as the input method? I'm thinking that the form could be running on any type of server and may not support ASP/ASP.NET, but the processing side would be handled on our server.
Yes, the XmlHttpRequest object would be looking for POST variables, so the type of form that sent them would be irrelevant. Like I said, I've never done this, so I can't be sure on anything...it's just a possibility.
Reply With Quote
Reply

  DeveloperBarn Forums > Programming & Scripting > .Net Development

Bookmarks

Tags
form, generic

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
filters on a form javier_83 Microsoft Access 4 July 28th, 2008 01:03 PM
Generic Paging Class Shem .Net Development 4 July 18th, 2008 11:29 AM
Time Entry Form sbenj69 Microsoft Access 2 July 14th, 2008 02:11 PM
[JavaScript] addLoadListener - adding onload event in generic way Shadow Wizard Code Samples 0 July 13th, 2008 01:20 PM


All times are GMT -4. The time now is 04:09 PM.



Content Relevant URLs by vBSEO 3.2.0