I am using a textbox to insert time into a databse table "SQL Server", The column data type in the table is datetime. When i insert it an run the page i see the date 1/1/1900 in the GridView but i don't want it to appear. What should i do to solve this problem.
Thanx in advance for ur help.
Thx for ur help but i didn't know how to solve it , i am a new developer and i have a little experience. Lets say i want to use the rowdatabound, but what is that a property of the Gridview??
I am using a GridView to display the data and one of its columns displayes the time "with the date that i don't want it to appear". where should i put the code that u sent????
Thanx for ur help
Thanx Naif i downloaded it and i am using it on the pages but i am using the insert query in the sqldatasource to write to database, all the other controls in the page appear in the controlID: except the timepicker, how can i use it to write data to database??
Thanx for ur help
In your form load event you can check the IsPostBack variable. It is set to true when the page posts back to the web server. Each individual button probably should have it's own onClick event in your code behind.
I have a textbox that was firing Text_changed event when the user press Enter.but now it is not firing any more.But the handler for this event is executed when a postback occur(for example when I click a button).
The only change I made it was putting the asp:textbox in a <DIV> instead of a <table><tr><td>.
I observed when I press enter in the textbox I hear a sound(one of the windows usual sounds).
Could any one tell me how to solve this problem and make it working as before(when the user press Enter)?
If it used to work it was by error. The enter key was probably causing a button to get pressed, since that what it does on the web. I would guess a one point that button didn't have any code in your code behind so you didn't notice it. What you are trying to do doesn't work.
I need help, I am trying to print results loaded into a Datalist and I have not been able to make any headway. The datalist is loaded from a query and has the option of displaying detailed info or summary. I would like to print out (which ever is selected) the results as they are in the datalist.
I have a textbox, that records the file names of upload files, and seperates it out with a , I would like to create an array that would read this text box, and seperate it out, so I can create a link for each file. I could really use some examples in code. My codebehind is C#