Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

ASP.NET Forum


You are currently viewing our ASP.NET Forum as a guest. Please register to participate.
Login



Reply
Old 10-13-2006, 09:03 AM Asp.net blog help
kalkm's Avatar
Experienced Talker

Posts: 31
Trades: 0
Hi everyone,

I am trying to create a blog for our company website. I didn’t want to use a program like blogger to manage it, so I have created all the necessary pages to create new post and view posts. I am using asp.net and writing to a SQL database. So far so good!

I now want to allow users to subscribe to the RSS feed that I want to create. This is where the problem comes in. I have read so many articles about this that I have become quite confused. I’m not sure how to create the xml, or where to create the xml.

Here is the code that is used to view the blog posts.


Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

Try
Show_Blog_Posts()
Catch
lbl_message.Text = Err.Description
End Try

Page_Load_End:

End Sub



Private Sub Show_Blog_Posts()

Dim conn As New SqlConnection(ConfigurationSettings.AppSettings("c onnString"))
Dim cmd As New SqlCommand("sp_Return_Blog_Post", conn)
cmd.CommandType = CommandType.StoredProcedure

conn.Open()

'create datareader and display data
Dim dr As SqlDataReader
dr = cmd.ExecuteReader()

'Populate the datalist from the datareader
dl_history.DataSource = dr
dl_history.DataBind()

'close datareader and the connection
dr.Close()
conn.Close()


Show_Member_History_End:

End Sub




I would appreciate any help you could offer.

Regards,

Mark
kalkm is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Reply     « Reply to Asp.net blog help
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.36482 seconds with 12 queries