My ‘Contact Us’ Idea

December 3, 2008 | By | Add a Comment

I thought of this solution when I was developing a website, and I was testing the contact us page. It was supposed to send an email with the details the user filled. But the emails were always late. So I created a table in the database of the application and saved the sent data there. There are 3 main advantages to this approach. First its much more reliable than email. Second, you get the sent information instantly. And third, you can design a page for the administrators to list and summarize the sent information as they please.

So here is the database table:

Field Name Data Type Allow Null Description
FeedbackID Int No An auto incrementing primary key
UserID uniqueidentifier No Provider key used by ASP.NET’s security
SendingDate smalldatetime Yes
Subject nvarchar(100) Yes
Details nvarchar(500) Yes

 


 
No code is needed for the contact us page or the administrator’s page, because they can be done with a Form View and a Grid control respectively.



Related Posts:

Filed in: ASP.NET | Tags:

Leave a Reply

Trackback URL | RSS Feed for This Entry