Click here to Skip to main content
15,891,204 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Through procedure i got two datetime field...like from_date and to_date.
can i access Those two fields in the html page on label field..
Posted
Comments
PSK_ 4-Jun-10 10:00am    
What you have done till now?

1 solution

Assuming that you have the values available in the code and that you have created 2 labels on the page like so:

<asp:Label ID="Label1" runat="server"/>
<asp:Label ID="Label2" runat="server"/>


in code (perhaps in an OnLoad method):

C#
string start = db.Date1;
string end = db.Date2;

Label1.Text = start;
Label2.Text = end;


where db.Date1 and db.Date2 represent the values extracted from the database (however you have made that happen).

Note that the above is very simplistic: you'll need to alter to suit your requirement.
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900