Forms Data Controls :: Develop A Comment Section For News Blog?

Jun 5, 2010

I have developed a news blog . I would like to add a Comment section with spam prevention capabilities into my news.My Comment table is as followsComment - CommentID,Name,DateStamp,Comments and NewsItemID as a foreign keyI'm having problem in identifying a logic . I have some questions to ask1) I'm thinking to use Formview to create a comment section?..Is it okey?2) I'm thinking to capture the NewsItemID from querystring and trying to fill up the NewsItemID(foreign key) into comment table?..Can you please show me in coding, How can I do that in coding?...if it is not a good logic,,then advise me how to do this?.3) Getting the comment from formview to db is okey, but how can I show the user comments as soon as he clicked the submit button of the formview ?..It seems quite difficult for me to do handle two events when user click the submit button 1) sending the comment into db ,2) shows the users comment in webpageHow can I do that?..Can you please provide some coding show me how can i achieve my task?

View 4 Replies


Similar Messages:

After Posting Comment Automatically Redirect To Blog?

May 10, 2010

I have embedded a Google Blog to my website using iFrame and its working well, now i allow people to post comments anonymously and its working fine, now the problem comes when someone post a comment, after the comment has been posted, this will navigate away from my website and it will only take the user to the blog. How do i prevent that, after the posting it still stay in my site.

View 16 Replies

Develop News Update Application In.net?

Jan 7, 2011

i want to know how the news and update functionality add in my website using asp.net application by which we can update.news on daily basis,

View 2 Replies

VS 2010 Create Scrolling News Section

Mar 26, 2011

adding a scrolling news section to a web site? I'm thinking about allowing a user to enter news into a database and use Javascript to make the news scroll once its displayed on the page. Is this how it is typically done?

View 1 Replies

Forms Data Controls :: Create A Comment Box And Chat For Website?

Jan 12, 2011

want to develop a comment box and chat for my new project.

would love to use some jquery ajax where-ever possble.

want to store commentbox data nto database and retrieve to display them.

no idea about chat whether it should be file or database.

View 3 Replies

Displaying The News Details On Page Based Upon Click News Link?

Apr 3, 2010

I am working on How to display the News Updates on page inside Marquee as hyperlink and on click on the link i have to display the details of the selected News .

which approach i can display the particular section of the page ?

I have to disply the News from Database?

View 2 Replies

Forms Data Controls :: Getting News-like Posts Via Database?

Jun 22, 2010

I have a website where people can send an email to a group of people and then choose to have that letter posted on our website.

The problem has now become that I get so many of them, I can't keep up with doing it manually. What I'd like to do is have it go to a database and then have it automatically update the site. So, one page will have "teasers" with the Author's name, etc and a few lines of the letter and then it links to another page that has the entire letter.

Can anyone tell me if:

a) that's possible

b) how to implement it

Doing it manually has gotten out of control!

View 2 Replies

Forms Data Controls :: How To Display News In Webpage

Feb 25, 2010

I Have a Dropdown which list the names of countries.

when i select a country, the top news related to that country must be displayed in grid.

may i know the RSS feed of every country for this application?

Any API to list all URL for RSS feed?

View 5 Replies

Develop A Page Where Individual Section Will Load With Busy Icon When Page Loads Without Using Web Parts?

Feb 11, 2011

i have seen many site where individual web parts load with busy icon when page loads. without using web parts how can develop a page where individual section will load with busy icon when page loads.

View 1 Replies

Forms Data Controls :: How To Display News With Paragraph Style

Jun 5, 2010

I have developed a news blog in asp.net 4. When I display news using literal control, the news displays without paragraph. However when i use textbox in administrative site to input the news into db--The Textbox takes the paragraph style and displays it. However i don;t want to use Textbox to display my news. Is there any solution to display the news with the paragraph style and so on? The containing component is Datalist and this is my below code.

<ItemTemplate>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td><asp:Literal ID="HeadlineLiteral" runat="server" Text='<%# Eval("Headline") %>'></asp:Literal></td></tr>
<tr><td><asp:Literal ID="DateStampLiteral" runat="server" Text='<%# Eval("DateStamp") %>'></asp:Literal></td></tr>
<tr><td><asp:Image ID="PhotoImage1" runat="server" ImageUrl='<%# Eval("Photo") %>' align="left" /><asp:Literal ID="NewsLiteral" runat="server" Text='<%# Eval("News") %>'></asp:Literal></td></tr>
</table>
<br />
</ItemTemplate>

View 5 Replies

Forms Data Controls :: Formatting Text Within Large Comment Field Stored In SQL Database?

Jun 15, 2010

I'm using ASP .NET C# 3.5. I have a multiline textbox on my web form that allows for the input of up to 5,000 characters from the end-user. This text is a basic description of a training course. I need to display it out in a clearly formatted way. For example, I need there to be bullets and bold text.

What I did was I chose certain (not often used) characters and then used the .Replace method when displaying the text in an <asp:Label>. If the text in the database contains the character '~' then I replace that with a line break <br />. If it contains '`' I replace that with <b> and if it contains '^' I replace that with </b>.

Is there a better way of doing this? It is working properly, and I'm displaying the text properly, but I know the end-user is going to hate typing text like this for formatting. I do want this all to stay database driven as well

View 4 Replies

Forms Data Controls :: The Value For Column 'ImageExtension' In Table 'News' Is DBNull?

Dec 20, 2010

[Code]....

On the bold line I'm getting the following exeption:

The value for column 'ImageExtension' in table 'News' is DBNull.

View 2 Replies

Custom Server Controls :: Unable To Create A Forgot Password Section Within Login Section

Mar 10, 2011

I am trying to create a forgot password section within my login section and it doesnt seem to work.

In my forgotpassword.aspx page my code looks like this:

[code]....

According to our records, you have requested that your password be reset. Your new password is: <%Password%>

If you have any questions or trouble logging on contact a site administrator.

No connection could be made because the target machine actively refused it ::1:25

Description: An unhandled exception occurred during the execution of the current web request. review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it ::1:25

View 2 Replies

Forms Data Controls :: SQL Command For Blog Posts With Maximum Comments

Jul 23, 2010

I have a BlogPost table by which i post blog on my website, this is the structure of BlogPost Table:

BlogPostID int Unchecked
LanguageID int Unchecked
BlogPostTitle nvarchar(200) Unchecked
BlogPostBody nvarchar(MAX) Unchecked
BlogPostAllowComments bit Unchecked
CreatedByID int Unchecked
CreatedOn datetime Unchecked
[code]...

View 20 Replies

.net - Make A "Add News Page" When User Write His News?

Nov 8, 2010

i want to make a add news page that when my user write his news(in up.aspx) then his news shown in news.aspx.
what am i going to do ? what is the best way for writing this page ?

View 1 Replies

Forms Data Controls :: Insert Row At Bottom Of Each Section?

Feb 8, 2011

I am just getting back into asp.net programming and have gotten stuck on something I suspect is probably not too hard to fix but I can't seem to figure it out. I have a gridview which works fine and have added in subheaders to divide up the content as it's sorted by currency. But I need to insert a row at the bottom of each section that gives a balance determined from a seperate query. Initially I used the same logic as the header so when a currency changed it would insert a total row which works fine except it doesn't do a total row for the last section. I tried using if (e.Row.RowIndex = transactionData.Rows.Count) to determine the last row but those are the same throughout so it puts a total row under every row. Is the problem that I'm trying to do this inside RowDataBound? All I think I need to do is be able to tell when the current gridview row is the last one and then insert a row at the bottom. The code I already have puts in the other total rows.

View 9 Replies

Forms Data Controls :: Gridview Server - Column Data In The Details Section Does Not Line Up

Jan 5, 2010

I had problems with using the gridview. For example I can bind or a a row of data to the gidview but the column data in the details section does not line up appropriately as far as justification with the grid view headers. I have tried different alignment combinations but that does not work.

View 1 Replies

Forms Data Controls :: How To Develop A Elibrary Solution

Jan 4, 2011

I want to develop a elibrary solution so that the admin can post library materials online to a root folder in the application and the path name save in the database (sqlserver 2005).When clients register and login they can view the category of materials base on the posted file listed using datalist control and click on download and the file is downloaded or view the material if its view able such as pdf or word format.

Below is the column table i created for the application which can also be corrected if wrong.

Id Filename FilePath Category DatePosted

View 2 Replies

Forms Data Controls :: Checkboxlist Not Declared In Script Section?

Oct 28, 2010

I have this peace of code that collects data from checkbox list and concatenates it into a string. It worked fine on lots of pages then i added it to a page that uses a formview update template, and now the name of the checkbox (CategoryList) list comes up as not declared in the script header. Do i need to change the protected sub line to show items in the form view?

Dim selectedDepartmentIDs As New List(Of String)

View 2 Replies

Forms Data Controls :: Change One Section Code From DataGrid To GridView?

Aug 2, 2010

I'm trying to change one section in code from DataGrid format to GridView format. The reasoning is that the sample application that was displayed was using a DataGrid even though it should have been using a Gridview for 2.0 and above. Most of it shows up without an error except one line in 3 lines which are pretty much the same. I bolded them and just want to know how do I re-write them for the Gridview?

Protected Sub NewsGrid_RowCommand(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewCommandEventArgs) Handles NewsGrid.RowCommand
Dim connection As SqlConnection = CreateConnection()
If e.CommandName = "Delete" Then
Dim com As New SqlCommand("DELETE FROM ElectPageEditor WHERE NewsID = @NewsID", connection)
com.Parameters.AddWithValue("@NewsID", e.Item.Cells(0).Text)
Try
connection.Open()
com.ExecuteNonQuery()
Catch generatedExceptionName As SqlException
Finally
connection.Close()
End Try
ElseIf e.CommandName = "Edit" Then
Dim command As New SqlCommand("SELECT NewsText FROM ElectPageEditor WHERE NewsID = @NewsID", connection)
command.Parameters.AddWithValue("@NewsID", e.Row.Cells(0).Text)
Try
connection.Open()
Dim record As SqlDataReader = command.ExecuteReader(CommandBehavior.CloseConnection)
If record.Read() Then
NewsEditor.Content = record.GetString(0)
EditedNews.Value = e.Item.Cells(0).Text
lse
NewsEditor.Content = ""
EditedNews.Value = ""
End If
' Will close the connection as well
record.Close()
Catch generatedExceptionName As SqlException
Finally
connection.Close()
End Try
End If
' Add code to delete row from data source.
ReadAllRecords()
End Sub

View 4 Replies

Forms Data Controls :: Gridview Header Section Jump To Top Of Page?

Jun 2, 2010

I have gridview with div tag, i have put div tag becouse when user scroll in grid i dont want move grid header section. Its remaining ther and only move data section. Its working fine.

But my datagrid has facility to master details hiearchy of data, When user click one of button its expand details record of that particular parent item.

When user click expand button my gridview header section jump to top of page. How can i stop it

<div id="dvItems" style="height:300px; width:955px;">

View 3 Replies

Forms Data Controls :: Add Associated Control Id For Gridview Fotter Template Under Section 508?

Mar 15, 2011

I have gridview template field with 5 columns like First Name, Middle Name, P.No and Last Name. The grid has a list of people with a blank row at the bottom of the grid (in the footer) that allows the user to add a newperson to the list. I have added textbox under fotter template. i need to add associated control id for footer template text box.I have been asked to make the grid section 508 compliant. The requirement is that the column headers must have labels that referencethe text boxes in the footer row. On a normal web form it would look like this:

<label for="txtFirstName">First Name</label>
<asp:textbox id="txtFirstName" runat="server" />

This allows a text reader to figure out that the words "First Name" are associated with the text box "txtFirstName" and helps a blind personunderstand how to fill out the form.Now, back to my problem. I need to figure out a way to get the header of a Grid view template column to work the same way. The biggest problem is that I have no idea what the ClientID of the textbox will be.

View 1 Replies

Forms Data Controls :: Develop A Custom Data-bound Control Which Will Contain, Few Text-boxes, Drop-down Lists And Labels?

Mar 24, 2010

I need to develop a custom data-bound control which will contain, few text-boxes, drop-down lists, labels, and other standard web-server controls. And, I want to be able to load this control from a web page on button click. When the user enters any data to any of its child controls, i should be able to save, and also retrieve when the data-bound control is loaded again. Also, the data in the child control should retain their value on postback. What approach should i follow?

View 7 Replies

Write A Page Where User's Can Write A Blog Post And Publish It To The Blog?

Apr 2, 2010

I want to write a page where user's can write a blog post and publish it to the blog. I've downloaded blog engine .NET and looked at the code and I like the way they do it, but it's completely an overkill of what I need. What I need is only a title, author, date, and the blog post it self. I don't even want users to post comments or anything like that. My approach is to save all those blog post information into an xml and then when a page loads it loops around those xml files to show the blog post.

View 1 Replies

Forms Data Controls :: Develop A Fully Functional Shopping Cart

Jun 14, 2010

I have some experience in developing a shopping cart in Dreamweaver. Now I wanna develop a fully functional shopping cart with Paypal payment integration in Visual Developer Express Edition 2010. My question is - Is there any nice tutorial to develop fully functional Shopping cart with Paypal Integration in ASP.NET?...

I have seen some tutorial some of them are without Payment System and Some of them are content management systems. I wanna develop my own. what is best Tutorial to develop fully functional shopping cart with Payment System in Visual Developer Express Edition 2010.

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved