Use fileupload control available in vs.net 05 and set the properties of that control to save files... also save file paths in db so that when u want to show the photos just show them using the file path saved in db and for your comments i think the approach to save in db first and then display it on the form is a better idea
lavanya_satheesh wrote:
If u ask me there is no need to write in javascript. u just use the code behind.
Who's a clever boy then - that's quite a trick....how are you doing AJAX?
lavanya_satheesh wrote:
if u still want to use javascript i think there is some way in the code behind file itself.
Kinda - Page.RegisterStartupScript allows you to code the js as text in the codebehind, then squirts it at the page
lavanya_satheesh wrote:
u can also include javascript just like u did for normal asp pages. using the <%%> and script tags.
Except that <%%> will cause it to runat server. To add some client side js, just add : code goes here "Now I guess I'll sit back and watch people misinterpret what I just said......" Christian Graus At The Soapbox
You simply create the DayRender event handler, and do a checking on the rendered date to make it selectable or not.
void Calendar1\_DayRender(object sender, DayRenderEventArgs e)
{
e.Day.IsSelectable = (e.Day.Date >= DateTime.Now);
}
With the GridView control, you can use EmptyDataText or EmptyDataTemplate to display your message or whatever you want when the datasource is empty. GridView Members[^]
Last modified: Thursday, June 29, 2006 10:12:40 PM --
If you send the postback to another page, the code for that page doesn't handle the click event. You have to send the postback back to the same page for the click event to be handled. --- b { font-weight: normal; }
Musfsdfsdf wrote:
I am devoloping FLIGHT RESERVATION SYSTEM using C#, ASP.Net 2.0 problem that i am facing is that how can i store reservation id, passenger information (that user enter in my webpage) in a SQL database. I am using SQL DATABASE which is in ASP.Net 2.0. How can i insert values in that database. I can insert values using SQL SERVER 2000 by using code. But i don't know how i can do it using SQL DATABASE in ASP.Net 2.0 Please help me....
You need to use ADO.NET[^] Michael CP Blog [^] Development Blog [^]
to convert you program to DLL :- from the main menu select Project -> Properties on the properties dialog change the (output type)combobox to (Class Library) then press ok(). Tamimi - Code
+ You can use the TemplateField with the html input radio element which is not marked runat="server". + You can implement your own RadioButtonField which basically inherits from the DataControlField class, the custom field simply hide the details of the html radio element. You may find the sample code out there, try to have a good search.
What do you mean by "doesn't work"? You cannot get reference to the dropdownlist or the selected item returns empty? If you cannot get reference to teh dropdownlist then you might want to double check where you place the dropdownlist control in the source page. If it is placed inside another naming container, you will need to access the container before you want to access the dropdownlist. Cross-Page Posting in ASP.NET Web Pages [^]