C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




News section in asp.net


Posted Date: 21 Jun 2008    Resource Type: Articles    Category: Web Applications
Author: pradeepMember Level: Silver    
Rating: Points: 10



Hi I am writing this code for news section in asp.net.sometimes in news section , news will be displayed.
for this we have to make-








in cs file

on page load

bind the datalist
{
select * from datatable;

}




Responses

Author: Bunty    22 Jun 2008Member Level: Diamond   Points : 1
Hi,
This code will work.
If possible just elaborate your concept what you want to say.
I didn't get what you say.
Keep posting.


Author: pradeep    23 Jun 2008Member Level: Silver   Points : 2
Hey by mistake i could not post aspx file.
first create test.aspx file




<%#DataBinder.Eval(Container.DataItem,"news_Title")%>




in cs file
test.cs
you have to bind datalist

public void Getnews()
{
.
...// bindNews from database
..

dtnews.datasouce= ds;
dtnews.dataBind();
}

Now i hope its clear.. it would workin in I6,7,MOZILA.


Feedbacks      
Popular Tags   What are tags ?   Search Tags  
(No tags found.)

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: Sending Email in ASP.NET 2.0
Previous Resource: Rating and labelling your ASP.NET website
Return to Discussion Resource Index
Post New Resource
Category: Web Applications


Post resources and earn money!
 
Related Resources



dotNet Slackers   BizTalk Adaptors    Web Design


Contact Us    Privacy Policy    Terms Of Use