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

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

News Page

Posted By:      Posted Date: October 15, 2010    Points: 0   Category :ASP.Net

I want to be able to show 4 news sections on my master page ie 2 on the left, 2 on the right. I don't want to have to create a database table to hold this in but I can't think of any other way except for XML (which I'm not too good at) as I'm relatively new to web design.

How can I do this. It must be editable by an administrator. 

View Complete Post

More Related Resource Links

---How can I find a CSS FILE that is related to News page?

Hi everybody, I am trying to customize SP Portal (MOSS 2007) I customized the very first page (Home) using Default.master and Core.CSS. But when I am going to "News page", sites and the other ones the top navigation looks original. What CSS files are responsible for the other pages(News, Doc. Ctr, Reports, search, sites)? How to find out that CSS files? Is there any file schema that exists that I can look at? Thank you.

---How can I find a CSS FILE that is related to News page?

Hi everybody, I am trying to customize SP Portal (MOSS 2007) I customized the very first page (Home) using Default.master and Core.CSS. But when I am going to "News page", sites and the other ones the top navigation looks original. What CSS files are responsible for the other pages(News, Doc. Ctr, Reports, search, sites)? How to find out that CSS files? Is there any file schema that exists that I can look at? Thank you.

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


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.


Creating a front page news function with C#


Hi I was wondering how to create a front page news function with C# as the language.

Basically I want to be able to use a one of my forums in the category "Site Discussion" called "News" as a way to connect with the front page (homepage) of the site to display a few of the newest news articles each with a title, image, and a short blurb of what the post is about. Also I want them to have a link that connects to the news post in the forums.

***NOTE*** I am using YAF (Yet Another Forum) for my forums.

An example of this from another site is http://allisfighter.com/

As you can see in the above site in the "Today's Top Stories" section it shows 4 news posts (1 main, and 3 other top stories) and if you click on them it links to the news post (which is also accessible via the forums in the news section).

This is basically what I want to incorporate into my site, but using the YAF forums, note an admin console is also needed to do this, I have a serperate admin console that I will set-up for it basically that's when you write it and from there it displays on the front page and in the forums.

Alternatively I would be fine using a News Archive that does basically everything above, but ra

create page with NEWS SITE TEMPLATE


Hi friends,

I am new in sharepoint 2010. this is my first time to create a News Site Template in sharepoint 2010.

but i am not able to find out NEWs site template. In sharepoint 2007. i have created a page with news site template under publishing tab.

but here i am not able to see this. please let me know where i can find out this

Changing the graphics on the home page of a SharePoint site

When you create a site in Microsoft Windows SharePoint Services by using the default Team Site template, the home page includes two default graphics. A Windows SharePoint Services graphic appears in the body of the page, and a picture of a house in a circle appears near the site title. You can change these graphics to customize your site. Changing the smaller graphic requires a Windows SharePoint Services compatible Web page editor

Using jQuery to directly call ASP.NET AJAX page methods

Here I am looking to explain how to call page methods using jQuery. Using jQuery to directly call ASP.NET AJAX page methods

Reduce ASP.NET Page size and complexity using JQuery

This is my first post on asp.net blog. ASP.NET Ajax and JQuery are two different ajax framework. In this post I will show, how we can enhance gridview using ASP.NET Ajax and JQuery. I also compare the implementation of these frameworks. In next posts i will explain more about JQuery and ASP.NET Ajax and also tell you "How to combine the power of both framework". My Future post will related to ASP.NET and related frameworks.


I have 2 web pages. First page has a textbox and a button control.

when I enter test and click on the button , system goes to the second page. And in the second page I want to access the Textbox in the first page. When I try to do this I get the following error.

"Object reference not set to an instance of an object. Following is my code :

Dim txt As New TextBox

' Find the server name on the previous page
txt = CType(Page.PreviousPage.FindControl("TextBox2"), TextBox)
If Not IsNothing(txt) Then
Response.Write("[Name Not available]")
End If

I know I could do this with session, but I want to use the Page.PreviousPage.FindControl. Any help is greatly appreciated

Unique content within master page based on conditions met


 Hi all-

I would like to present users with unique content based on certain conditions being met as they land on the home page (default.aspx).  The condition logic will be in the VB code behind Page Load event. The content will go in a content placeholder as specificed from the master page. 

However, the content change wouldn't be something small (ie making a panel or label visible or not) but rather it will be different HTML,  Divs and databound gridview content.  The HTML content will be stored in the database.

Can someone point me in the right direction for best practices on how to accomplish this?


Launch CMD File From ASPX Page


My organization uses a CMD file to install updated files for a major enterprise application. Currently, we send out an email to users with a link to the file and instructions to run it, BUT inevitably users don't update their machines until their in field and try to start the app.


We're now liking the idea of using an ASPX page to prompt the users to run the updates and to capture the fact that the updates have been run. I realize that we can't capture the success or failure of the update. But we'd like to capture the user accessed the page.


Is it possible to embed into the markup for the page a link to the file on the local intranet that the users can click on to run the file?

The user accessing the page would capture that they did just that. We'd deal with wether or not the update was actually installed or if it failed later with them directly.

Handling 404 page not found with Error page



      How do i handle 404 page not found?

Setting the default start page in godaddy hosting?


 How do you set the start page with godaddy hosting? I can see no way of doing this! You do not seem to have access to the IIS settings that allow you to change it!

Need help redirecting users to personalized page


 Hi, first timer here so be gentle.


I've been able to create a cool little website, it's up and running with users logging in and out, I created roles so my administrative team can see sensitive data that's not available to regular and anonymous users.

Now they would like me to create a page specific to each user.  For instance when user A logs in they are redirected to a page that has information that pertains to user A only (like a list of their benefits/ their remaining vacation time). This page needs to be accessible only to user A. 

I've watched a ton of the videos but have yet to see one that covers this topic, any help would be great!!!





Building Re-Usable ASP.NET User Control and Page Libraries with VS 2008


I am having problems with a user control. I want my solution to have a separate project for holding my user controls.

The main project can get a reference to this user control project and can import this user control dll into my main project. 

Thanks in advance,

Dheeraj Mittal


Retrieving a variable from a previous page



I'm looking to have a search page where a user will select an item from a listview, then then taken to another page that wil display data based on their original selection.

A user will type in a string and be presented with a list of usernames that are like that string, when they select a user name who's profile they would like to view I would like the page that they're taken to, to be that users profile.

How would I transfer the variable from the search page to the profile page, and when I work on the profile page, how can I access that variable?


Dynamic page customization in WebForms



I am developing an ASP.NET Webforms application for job advertisements. The application is hosted on my own server and enables registrated users to publish job advertisements with the possibility to submit job applications directly from web. The application essentially consists of two parts: job advertisements and job applications sub-apps. 

The job advertisement application uses RESTful approach, implemented as ASP.NET routing and makes no use of different state variables (like viewstate). I provide custom layout of job advertisement webpage for every client using XML serialization of my internal JobOffer class and using XML ASP.NET control with custom XSLT transformation sheet plus CSS to render the custom design. It is all fine and works perfectly.

The second (job applications) part provides users with a custom webform, which is partically dependent upon the original advertisement (regarding the minimal education level, eligible citizenship or work permissions, licences etc.) and can be tweacked using custom CSS. There is, however, no possibility for custom layout of the elements on this page, which provides a multi-tabbed navigation for different parts of job application. Hence the question 1 (see below).

The application is not ready yet, but I intend to keep it hosted on my own server and provide just some ki

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