There are various way to do it. Its depends what is your current DataSource Type.
Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you. View My Latest Article
SmartNaviagtion is obsolete http://msdn.microsoft.com/en-us/library/system.web.ui.page.smartnavigation.aspx[^] You should use Page.MaintainScrollPositionOnPostBack hope this helps.
Are you connecting to the server from your local machine ? Is this in ASP.NET ? Seems to me like you wrote code expecting it to run locally, but it runs on the server.
Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
minniemooo wrote:
I have a webform.
R you talking about ASP.NET, the do it using AJAX Timer control If it is windows Application The best option to Do this use ... BackGroundWorker
Best Regards ----------------- Abhijit Jana View My Latest Article :- SpyNet : Your Network Spy "Success is Journey it's not a destination"
Have a look at System.Net.Mail namespace.
Vasudevan Deepak Kumar Personal Homepage
Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
You need to use server controls to do this, so they can postback, or you need to write AJAX code to do it for you.
Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
It has properties to tell it which column to use for the value and which to display. Set those and set the datasource to be your data from the DB. Call DataBind if this is ASP.NET
Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
Before, adapter.Fill(ds, "Project_ID"); , open your connection , conn.Open(); While you forgot this the dataset is null so as it says object reference not set to an instance of an object. Regards.
.:: Something is Wrong ::.
This cannot be real....Read the error, it tells you exactly what's wrong. You misspelled the property. There is an extra "t". What you wrote
ProjectidList.DatatValueField = "Project_ID";
What you should have written:
ProjectidList.DataValueField = "Project_ID";
I will use Google before asking dumb questions
This[^] article might help you with this. Alternatively, take a look at the SharpZipLib project.
Deja View - the feeling that you've seen this post before.
Hi, if TextBox is empty or contains something that Convert does not recognize you would get that exception.
Luc Pattyn [Forum Guidelines] [My Articles]
this weeks tips: - make Visual display line numbers: Tools/Options/TextEditor/... - show exceptions with ToString() to see all information - before you ask a question here, search CodeProject, then Google
Vikram A Punathambekar wrote:
You can get files from a directory using the DirectoryInfo and FileInfo classes.
These are serverside. I think he is expecting something on the web browser. He might most probably need an ActiveX solution to achieve the same.
Vasudevan Deepak Kumar Personal Homepage Tech Gossips