Click here to Skip to main content
15,885,757 members
Please Sign up or sign in to vote.
4.08/5 (6 votes)
See more:
Hello every one, and I hope that you are fine.

I am developing a blog in asp.net, C# language.

I have problems and one of them is that who can I add comments to a post like in this article: ASP.NET: Cannot use a leading .. to exit above the top directory[^]

If you have an idea, help me...

Thank you.
Posted
v2

Hi,

You can add Comment using jQuery.
To do this refer following link Using jQuery to directly call ASP.NET AJAX page methods[^]

Best Luck
Happy Coding:)
 
Share this answer
 
v3
Comments
pablo ramos1 18-Jun-12 10:26am    
Thank you Nilesh.
Is there any other way ?
Using JavaScript, you can achieve the same goal.

Please refer following link Comments[^]
 
Share this answer
 
v2
Hi,

This is a sample of what you want to do.
It will definitely help you.

Forums Application Using MVC4 and Entity Framework[^]
 
Share this answer
 
v2
Hi,

When you want to add a comment for certain existing data, then use logical solution to solve it easily.

If you are using some external third party controls the Grid view itself will have such option, but here if you solve using logical concept, it’s quite easy.

When the Main contents are available, then store that main content in a Table [“tblMainContent”] and name it with unique ID.

When user clicks for add comments using Javascript or Jquery show a HTML popup window where user can enter the comments.
Store the Contents in a Sub-Table [“tblComments”] where the foreign key will be the ID of [“tblMainContent”].

When you display the data on the screen use a simple grid view to display the main contents and based on the Comments for main contents add the dynamic Text block in the Grid row for appropriate main contents.

If you are good in CSS then in Sub-Table [“tblComments”] maintain other Column which will maintain the level of the comments, so based on the Comment level you can set color, Style of Font and border al for the sub comments and if you fetch the data from comments table by descending order, you can display recent comments at top and old at bottom.

Note: If you use Grid View control, you have many advantage has design, optimized loading of your contents, pagination and many more.
Which can appear in grid view as shown sample.

ASM
   Main Content 1 
        Sub Comments 1
        Sub Comments 2
        Sub Comments 3  

Main Content 2        
        Sub Comments 1
        Sub Comments 2
        Sub Comments 3

Thanks!
 
Share this answer
 
v2
Please refer following link "Discus Comment System"
http://wordpress.org/plugins/disqus-comment-system/screenshots/
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900