Development Articles
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsOtherDevelopment Articles

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old March 17th, 2004, 09:40 AM
DevAdmin DevAdmin is offline
Utility Bot
ASP Free Novice (500 - 999 posts)
 
Join Date: Feb 2004
Posts: 875 DevAdmin Negative: is most likely a SPAMMER and a traitor to the cause. 
Time spent in forums: < 1 sec
Reputation Power: 0
Article Discussion: ASP.NET Guestbook

We are going to see the steps involved in designing a guestbook using ASP.NET and SQLServer as the backend. Guestbooks are an important tool to know about your site’s visitors and their opinions. I would like to give you an idea of a basic guestbook web application in this article.


Read the full article here: ASP.NET Guestbook

Reply With Quote
  #2  
Old December 6th, 2005, 08:27 AM
davesplace80 davesplace80 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Dec 2005
Posts: 2 davesplace80 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 12 m 55 sec
Reputation Power: 0
Visual Web Studio Express

Would some mind helping me with this one? I am trying to setup this Guest book in Visual Web Studio Express and I am running into problems with the code. I guess VWSE doesn't like the SqlDataAdapter1.Fill (DataSet11) in the following code. What would be the express equivalent ?

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Line1: SqlDataAdapter1.Fill (DataSet11)
End Sub


I am having the same problem with the following code:

Private Sub llPost_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles llPost.Click
Line1: Dim insertData As DataRow = DataSet11.Tables("feedback").NewRow 'create a new row
'populate the datarow with data from the form
Line2: insertData("name") = txtName.Text
Line3: insertData("email") = txtEmail.Text
Line4: insertData("comments") = txtComments.Text
Line5: insertData("rating") = CInt(ddnRating.SelectedItem.Value)
Line6: DataSet11.Tables("feedback").Rows.Add(insertData) 'add the populated row to the dataset
Try
Line7: SqlDataAdapter1.Update(DataSet11.Tables("feedback")) 'update the database
'always close the connection
Line8: SqlConnection1.Close()
Line9: Response.Redirect("viewcomments.aspx", True)
Line10: Catch ex As SqlClient.SqlException
'do something here
Line11: Catch ex As Exception
'do something here
Line12: End Try
End Sub

Thanks in advance
Dave

Reply With Quote
Reply

Viewing: ASP Free ForumsOtherDevelopment Articles > Article Discussion: ASP.NET Guestbook


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT