Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET
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 18-Jun-12 4:59am
v2
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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 CodingSmile | :)
  Permalink  
v3
Comments
pablo ramos1 at 18-Jun-12 10:26am
   
Thank you Nilesh.
Is there any other way ?
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 7

Please refer following link "Discus Comment System"
http://wordpress.org/plugins/disqus-comment-system/screenshots/
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

Using JavaScript, you can achieve the same goal.
 
Please refer following link Comments[^]
  Permalink  
v2
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 4

Hi,
 
This is a sample of what you want to do.
It will definitely help you.
 
Forums Application Using MVC4 and Entity Framework[^]
  Permalink  
v2
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 5

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.
 
   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!
  Permalink  
v2

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

  Print Answers RSS
0 Maciej Los 337
1 DamithSL 305
2 ridoy 264
3 OriginalGriff 208
4 George Jonsson 140
0 OriginalGriff 7,968
1 DamithSL 6,179
2 Sergey Alexandrovich Kryukov 5,524
3 Maciej Los 5,438
4 Kornfeld Eliyahu Peter 4,539


Advertise | Privacy | Mobile
Web02 | 2.8.141223.1 | Last Updated 27 Mar 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100