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 !




its very urgent......please help me...


Posted Date: 30 Aug 2008      Total Responses: 2

Posted By: ramya       Member Level: Gold     Points: 1


how to bind data from db to <div> tag in asp.net with c#...Please give me the code pls......



Responses

Author: deepak    30 Aug 2008Member Level: GoldRating:     Points: 1
in wat control u wan to bind the data in tat div tag..


Author: Karthikeyan S    30 Aug 2008Member Level: GoldRating:     Points: 5
Hi,

Use '<%
//your dynamic page .aspx.vb or .aspx.cs code comes here
%>'

where ever in design page you want code like div tag, page title, table data / header cells etc.

in design page:

<div>'<%= mstrKRASortExpression %>' </div>

in code behind page:

private static string mstrAvailableQuarters = "Testing tag content";

in back end code make sure that the variable which is having dynamic database value must be public and so it should not be private or else and it must be declared module level that is out side of any sub-procedure or functions.



Post Reply
You must Sign In to post a response.
Next : validator
Previous : How to select the record using HyperLink
Return to Discussion Forum
Post New Message
Category: ASP.NET

Related Messages



dotNet Slackers   BizTalk Adaptors    Web Design

masks masks masks

Contact Us    Privacy Policy    Terms Of Use