Finally, i get the reason~ :laugh: I havnt set the primary key in my table,lol anyway, thank u all who have cared my msg~:rose:
steven_wong
Posts
-
Problems on SubmitChanges() in Linq? -
Problems on SubmitChanges() in Linq?here is the code: TestDataContext test= new TestDataContext(); var result= from person in test.Stuffs //Stuffs is a table where person.name==strUser; //strUser is a string passed in select person; foreach (var Item in result) { Item.value=777; } test.SubmitChanges();
-
Problems on SubmitChanges() in Linq?Hello everyone: Now i am programing to update data with linq. i use dbcontext.submitchanges() to submit the changes to database.However, i find my table is not changed at all after that. Definately, there is no exception in the process of update, is there anyone know why? anything will be appreciated, thanX in advance~
-
how to implement CStdioFile::WriteLine() with native C++ and STL?Thank u for your reply~ ;P std::fstream really helps me.
-
how to implement CStdioFile::WriteLine() with native C++ and STL?hello, everyone: I want to operate files without MFC. Exactly speaking, i want to read and write files only with windows standard library. now i dont know how to implement the function of CStdioFile::WriteLine() of MFC with STL,is there anyone could help me?anything will be appreciated,thanks in advance~
-
why i could only read one charactor? [modified]thank u for ur replying, Rajesh ;) i c that,however, now i need to read the default value of a registry key, which means i could only use RegQueryValue. and i have checked if RegQueryValue returns ERROR_SUCCESS in my own codes.the codes i paste here is just for simple.anyway, thank u for ur reminding
-
why i could only read one charactor? [modified]temp,i am sorry ;P
-
why i could only read one charactor? [modified]hello, everyone: i am now in trouble with the code below: char temp[256]; LONG cbData=80; RegOpenKeyEx(...&hKey); RegQueryValue(hKey,NULL,(LPTSTR)temp,&cbData); strcat(temp,"\\abc"); with the last line above , i could only retrieve the first charactor in temp,and the result is just *\abc. I am confused....is there anyone could help me?Thanks in advance~
modified on Monday, June 2, 2008 12:32 AM
-
how to find out associated filetypes?hello everyone: now i want to check out all the recognized file types in my computer. someone in CP said we could check the registry in HKEY_CLASSES_ROOT,however, i find there r many filetypes strange there (eg. .api, .cc, .htt and so on). i just want to read the filetypes we usually used such as .doc for microsoft word, .txt for notepad etc. so what could i do now? anything is appreciated,thanks in advance!
-
Exporting to Excel Plz helpdataset is ok, i am just using dataset, u could use: strExcelFile= objExport.TransformDataTableToExcel(ds.datatable(i),True) objExport.SendExcelToClient(strExcelFile) Also u have to have some polishment of ExcelExport.vb so as to run it in vs2003. If u have any more question, u could sent email to me. wish u could succeed!;P Regards, Steven
-
find the checked treenode in treeview???Hello, everyone: i am using treeview control of ie web controls in vs2003. I have written a javascript code to CHECk - UNCHECK all the Child nodes if parent node is UNCHECKED or checked in the client side. However, when i click a button to retrieve the checked treenodes, all nodes' checked property is false. Why?? and how could i retrieve the checked node? any idea is appreciated, thanX in advance! Regards, Steven
-
how to fix datagrid column width/height when AutoGeneratedColumns is ture?Thank u for ur reply, looking forward to ur new article.:laugh:
-
how to fix datagrid column width/height when AutoGeneratedColumns is ture?Thank u, Mike and miniThomas, for the attention. I have tried both of the approach, however, the datagrid is still not changed.:(( I am wondering if it is beacause the width of the datagrid could not be longer than certain value, for some of the columns are really quite long. looking forward to ur further answer.:) Regards, Steven
-
Exporting to Excel Plz helpI see,it is XslCompiledTransform, in vs2003 we use XslTransform instead of it. In the FAQ of that article there is some detailed info about it(its name is "Net 1.1 version").;P Regards Steven
-
how to fix datagrid column width/height when AutoGeneratedColumns is ture?hello, everyone: I am creating a DataGrid form a DataSet with autogeneratecolumns: dg.DataSource = ds; dg.DataBind(); But I want to change the style of the columns. Particularly speaking, i want to have all the columns have fixed width/height so that the datagrid may look better. It is because some of the content may have many words. I have tried many methods,however, the datagrid never changed.:(( Any ideas? ThanX in advance!
-
Exporting to Excel Plz helpI met this problem several weeks before. i recommend u to use xsl, this article [^] does help me a lot! wish u could succeed!;P Regards, Steven
-
how to set row/column's height/width in datagrid??First of all,thank u all for the replies!:rose: However, i am using databinding like this: I am creating a DataGrid form a DataSet with autogeneratecolumns: dg.DataSource = ds; dg.DataBind(); all the columns are autogenerated, thus, we could not convert a specific column into template column. am i right? looking forward to ur reply;P
-
how to set row/column's height/width in datagrid??Hello,everyone: Now i have a datagrid, in which each cell may contain many words. it looks quite ugly because the datagrid automatically make the words vertical displayed. Therefore, i wonder if we could solve it through making all the cells have the same fixed heigh/width??and how could we fix the height/width? i have tried to set it in the property builder, however, it does not work:( Looking forward to ur reply, thanks in advance!
-
ASP.NET Cookiesmaybe the subsection "Cookie State" of this article(http://www.codeproject.com/aspnet/aspdotnetstatmgmnt.asp[^]) could help u!:) -- modified at 21:33 Friday 25th August, 2006
-
export dataset to excel??Hello: I am now creating an excel file using xslt.However, when there is a blank or a special char in one of my headers, i've got an invalid xpath expression which throw an exception. what can i do ? thx :rose: