Click here to Skip to main content
15,917,618 members
Home / Discussions / C#
   

C#

 
GeneralXML,XSD and Dataset's with c# Pin
Rhys__66620-May-04 6:18
Rhys__66620-May-04 6:18 
GeneralRe: XML,XSD and Dataset's with c# Pin
partyganger20-May-04 6:25
partyganger20-May-04 6:25 
GeneralSTCK to a DateTime Pin
seevse20-May-04 5:40
seevse20-May-04 5:40 
GeneralRe: STCK to a DateTime Pin
Heath Stewart20-May-04 5:55
protectorHeath Stewart20-May-04 5:55 
GeneralControl to Add thumbnailed icons to Pin
lethologica20-May-04 5:33
lethologica20-May-04 5:33 
GeneralRe: Control to Add thumbnailed icons to Pin
Heath Stewart20-May-04 5:42
protectorHeath Stewart20-May-04 5:42 
GeneralRe: Control to Add thumbnailed icons to Pin
lethologica20-May-04 10:35
lethologica20-May-04 10:35 
GeneralThis question falls between C# and Asp.net Pin
MeterMan20-May-04 5:21
MeterMan20-May-04 5:21 
Something I have noticed and not sure if it is a bug in the developer or what. But here is the scenerio.

1) Make webform
2) Place a Datagrid control on it
3) Add and oledbdataadapter and the dataset
4) Since The database will be pointing to the local harddrive by default I have to change the connection string. Like so:
string datapath = Server.MapPath("/bin/csharp.mdb");
			this.oleDbConnection1.ConnectionString = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source="+ datapath;


This works fine but here is the catch.
If i change anything at all on the datagrid like for instance an event like delete
or change a property then all the sudden I no longer have an oleDbConnection at all.
It completely wipes out the code that I typed and doing a search for jet turns up nothing.

Same applies if I add an insert cause by default the datagrid control doesn't have a templated insert. I add one manually
this.DataGrid1.ItemCommand += new System.Web.UI.WebControls.DataGridCommandEventHandler(this.insertme);

If i change anything on the datagrid via its properties after making that code addition the line of code will be wiped out. And yes I save the code before modification.

Any ideas? Gets annoying after a while. I typed the strings about 4 times after it wiped them clean and i go heck with this and made a text file where i could cut and paste.


Win32newb
"Programming is like sex, make one mistake and you have to support it for a long time"
GeneralRe: This question falls between C# and Asp.net Pin
Heath Stewart20-May-04 5:32
protectorHeath Stewart20-May-04 5:32 
Questionhow do i pass a parameter to Pin
robmays20-May-04 5:17
robmays20-May-04 5:17 
AnswerRe: how do i pass a parameter to Pin
Heath Stewart20-May-04 5:35
protectorHeath Stewart20-May-04 5:35 
GeneralRe: how do i pass a parameter to Pin
robmays20-May-04 7:38
robmays20-May-04 7:38 
GeneralSwitching Between Applications Pin
Harihara Subramanian20-May-04 5:10
Harihara Subramanian20-May-04 5:10 
GeneralRe: Switching Between Applications Pin
Heath Stewart20-May-04 5:28
protectorHeath Stewart20-May-04 5:28 
GeneralRe: Switching Between Applications Pin
Harihara Subramanian20-May-04 5:46
Harihara Subramanian20-May-04 5:46 
GeneralRe: Switching Between Applications Pin
Heath Stewart20-May-04 5:52
protectorHeath Stewart20-May-04 5:52 
GeneralRe: Switching Between Applications Pin
Harihara Subramanian21-May-04 2:21
Harihara Subramanian21-May-04 2:21 
GeneralRe: Switching Between Applications Pin
Heath Stewart21-May-04 3:48
protectorHeath Stewart21-May-04 3:48 
GeneralRe: Switching Between Applications Pin
Harihara Subramanian21-May-04 5:38
Harihara Subramanian21-May-04 5:38 
GeneralRe: Switching Between Applications Pin
Heath Stewart21-May-04 6:08
protectorHeath Stewart21-May-04 6:08 
General.NET App Performance and Scalability Guide Pin
Dave Kreskowiak20-May-04 4:31
mveDave Kreskowiak20-May-04 4:31 
GeneralDir Search On Server Pin
IrishSonic20-May-04 4:14
IrishSonic20-May-04 4:14 
GeneralRe: Dir Search On Server Pin
Heath Stewart20-May-04 4:16
protectorHeath Stewart20-May-04 4:16 
GeneralRe: Dir Search On Server Pin
IrishSonic20-May-04 4:29
IrishSonic20-May-04 4:29 
GeneralRe: Dir Search On Server Pin
IrishSonic20-May-04 4:37
IrishSonic20-May-04 4:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.