.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

Tutorials on creating a "News & Comments" page please...

Posted By:      Posted Date: September 27, 2010    Points: 0   Category :ASP.Net

I'm not "new" to .Net, but it's been a long time since I've done any "real" programming and need some refresshers and/or tutorials. Specifically, I need to know what can & can't be done with the current Ajax/VB.Net controls. Here's what I am trying to do:

I need  a daily "news" space for my client to write a blog-like post on her website, and on the same page, a place for her readers to post comments. I also need to count how many comments are made and dsiplay them in the header (exactly as shown here at the bottom where comments can be added: http://www.asp.net/general/videos/lesson-8-working-with-the-gridview-and-formview)

Are there any plug-ins to allow me to easily create this type of a page with the comments table already set up? No reason to re-invent the wheel if this has already been done and there is an add-in for this. Any suggestions, tutorials, links, would be greatly appreciated. I am using VS 2010 with VB.Net, HTML & CSS.


View Complete Post

More Related Resource Links

creating different sub page design template in sharepoint website


I know very little about sharepoint and have outsourced the design of a master page and sub page design for a new website using sharepoint. i received a site master file with all of the necessary images and the home page works just fine. However the file i received for the sub page design template was an ASPX file with the following instructions:


Here I enclosed the inner page layout file. You upload this file by using following instructions. you can change & edit the blue menu section in the master page itself. If I change into modifiable section you need to add the menu in each and every page, otherwise it will show as empty block. Please let me know your comments.


Steps for uploading inner page layout page.


1.Select the Site Actions button and click on Site Settings->Modify All site settings

Creating asp.net page dynamically

Hi All:  I have a requirement that I need to create asp.net page dynamically for each folder inside a specific folder. I know the code to traverse each folder but I don't know how to create a new page dynamically and show the contents. Please help me on this.   Regards,  Asif HameedHi All: I have a requirement that I need to create asp.net page dynamically for each folder inside a specific folder. I know the code to traverse each folder but I don't know how to create a new page dynamically and show the contents. Please help me on this.  Regards, Asif Hameed

Help with creating graphs in a site page from figurative data in custom list

Guys Can anyone provide me with someone help please? I need to be able show a graphs/line format in a web part of a site page on my SP 2010 site. I want to use some changing figurative data that is contained within a custom list change a the line/pie chart graph on the fly that is located within a chart/line graph in a site page. Basically when the data in the custom list gets changed by my resources I want to be able to see the changes in the graph almost like a live dashboard. I would be very greatful for some help. Note: I am not a coder nore do I ever claim to be, but if I could get a step by step guide on how to achieve this then I would be very greatful. I have a good understanding of SP but I am not to the coder. I able to supply the list if necessary and if someone could provide me with the code/or if code is not necessary for this task then please can you advise how? Many Thanks Mike Gowlett PMP P2P (MCSE, MSP, Old School :-) 

Creating Login Page Problem

I doing a login page using visual c# and encounter some problem on it. my database got Username, Password, and UserType I want to create a login page redirect the user to different page based on their roles. It show that there is an error on the code (line 24). Any idea on create a login page that redirect the user to different page based on their roles?It shows this message :   this type or namespace name 'DataView' could not be found(are you missing a using directive or an assembly reference)Here the code, protected void Page_Load(object sender, EventArgs e) { string connectionString = "Data Source =.\\SQLEXPRESS;" + "AttachDbFilename=\"C:\\Program Files\\Microsoft SQL Server\\MSSQL10.SQLEXPRESS\\MSSQL\\DATA\\UserDB.mdf\";" + "Integrated Security=True;" + "Connect Timeout=30;" + "User Instance=True;"; System.Data.SqlClient.SqlConnection conn = new System.Data.SqlClient.SqlConnection(connectionString ); System.Data.SqlClient.SqlCommand cmd = conn.CreateCommand(); conn.Open(); } protected void Button1_Click(object sender, EventArgs e) { SqlDataSource sds = new SqlDataSource(); sds.SelectParameters.Add("Username", TypeCode.String, this.TextBox1.Text); sds.

Creating Page Layout Sharepoint 2010 Publishing

I am trying to create a custom Page layout (3 fixed columns with webzones 1 for content (content editor) and other 2 for adding web parts here is my aspx, please some one help me out, as tha webpart slides below another if it exceeds the width <%@ Page language="C#" Inherits="Microsoft.SharePoint.Publishing.PublishingLayoutPage,Microsoft.SharePoint.Publishing,Version=,Culture=neutral,PublicKeyToken=71e9bce111e9429c" meta:progid="SharePoint.WebPartPage.Document" meta:webpartpageexpansion="full" %> <%@ Register Tagprefix="SharePointWebControls" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Register Tagprefix="PublishingWebControls" Namespace="Microsoft.SharePoint.Publishing.WebControls" Assembly="Microsoft.SharePoint.Publishing, Version=, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Register Tagprefix="PublishingNavigation" Namespace="Microsoft.SharePoint.Publishing.Navigation" Assembly=&qu

Creating custom property on derived Page

I am attempting to accomplish the following during the creation of a Page derived from DerivedPage: <local:DerivedPage xmlns="..." xmlns:x="..." xmlns:local="..." MyProperty="My Value" Title="My Title"> ... </local:DerivedPage> You'll notice an extra property MyProperty in there. The code-behind is like this: class DerivedPage : Page { public string MyProperty { get; set; } ... } When I execute this, I get a null reference in InitializeComponent() when I create a Page derived from DerivedPage. I also tried making MyProperty a dependency property.  But I get the same results. How can I create a property for my new base-class that's set in the markup of my derived class. Thanks, ...Matt

Creating Multipage tiff from single page tiffs



I have big list of single page tiffs. How .net Graphics library can be used to create multipage tiff out of all my single page tiffs. Because I have huge number of tiffs, I want to do it more efficiently.




Bibek Dawadi

The page cannot be displayed error when creating new item in custom list


Hi i am workign with a cutom list and every time i try to add a new item and hit ok i get the error shown below. Sometimes it happens and other times it doesnt and it only happens with a select few. One way of getting around this error is to not edit it on the page on which it is on but to go to view all content then to the custom list.

I have tried observing whether there was an issue with the pages being checked in and checked out but all pages were checked in and published. I tried deleting and recreating the custom list and no luck. Your feedback would be much appreciated! Thanks in advanced

btw i am a user with full control and our site is being hosted.

The page cannot be displayed


creating custom error page


Hi ..

I have two errors in my application i want to display a custom  defferent error page for each error...

Here is my code

protected void Button1_Click(object sender, EventArgs e)
            int a = 10;
            int b = 0;
            int c = a / b;
      // FIRST ERROR

    protected void Button2_Click(object sender, EventArgs e)

            string str = "hjdfgjh";
            int vv = Convert.ToInt32(str);
        //SECOND ERROR

i have configured web.config like b

Progrmmatically Creating the Asp.net Page and save it to the root Directory


Hi all

Please tell me How i solved  probelm of dynamic creation of aspx page on fly and save it to the disk or root direcotry of the Project.

Any link or Article is highly Appericiated.


Best Regards


Creating MS Word Document programatically in sharepoint foundation as Link Button on Master Page?



Can any body help me how to create a new document programatically for OnClick of  a LinkButton on my Homepage  as per the requirement.

I had installed MS OfficeWebApps on my Development Server which its working fine but the "Create Document " is on Top Ribbon for which the link should be on the right side of the Content Page of Home.Aspx as per the req.

Pls guide me how to achieve this.


Thanks in Advance !!!!




Thanks in Advance !!! Cheers !!! Praveen

Creating a ribbon flyoutanchor similar to the page layout flyout


Hi All,

I've asked this before and got no answer. I've simplified my code which may help.

The current code displays icons to the left and text to the right (similar to Page > Share & Track > Alert Me). I want it to display like Page > Page Actions > Page Layout (with the text below the icon and in 4 columns). I'm using the CMDUI.XML as a guide to no avail.

Below is my code. Any help is appreciated.


<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">


Issue creating new master page



I'm trying to create a new master page by clicking on the 'Blank Master Page' button within Sharepoint Designer 2010. I have appropriate permissions. I am getting a dialog - 'SErver error: The file http://www.mydomain.com/_catalogs/masterpage/Untitled_1.master is checked out for editing by i:0#.w|domain\username.' (where domain\username are legitimate values) and I cannot proceed.

I have checked and that user has no such file checked out, and in fact, we can find no such file. 

Any ideas how to proceed?

Problem re-creating web part page



I've got some web part pages which are being setup programatically. I want to be able to refresh those pages, i.e. delete all webpart on them and recreate the content from scratch. When I try this, the following exception is thrown:

The transformer type "Microsoft.SharePoint.Portal.WebControls.TransformableFilterValuesToEntityInstanceTransformer" is not allowed to be used on this page.

The exception comes from the following line:

SPWebPartConnection newConnection = wpmngr.SPConnectWebParts(providerWebPart, providerConnection, consumerWebPart, consumerConnection, transformer);

So I thought "let's delete the page and then just recreate it". Doesn't work either, same exception is thrown. I have no idea why this code would work the first time, but doesn't work a second time. It seems like something get's stuck preventing the same action twice, but I have no clue what to look for.

MCTS in Web Application Development in .NET 2.0

creating word doc from dynamic asp.net page


I wish to create a microsoft .doc page or form, from the asp.net form to maintain a backup of the web form. Can someone suggest me the way to do it.... i have creaetd the web form using visual studio 2008.

steps for creating a custom master page in SharePoint 2010



Can any one please help me out to prepare a custom master page in SharePoint 2010 designer and deploy it to SharePoint site.

i have a html page , which i want to put in my custom master page.

please help


Creating dynamic input page in asp.net webform


Hi All,

We have a requirement of creating an input page which might be different for different users, changing will be in terms of number and type of fields.

How should i architect this page. Should i create page using "XML and XSLT" or "XML and database fields" or is there any more flexible way to create this type of page.

I couldn't visualise the flow in which this should be implemented.Can somebody please advise me on this.



ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend