danial1007's Q&A profile
.NET Development Writing/adding elements to a xml file
Hello! I want to add another book (book4) to the xml file below. What I did: XmlDocument document = new XmlDocument(); document.Load("info.xml"); XPathNavigator navigator = document.CreateNavigator(); But how do I navigate to the required node and add another book Hopefully someone can help. Thank you. info.xml: < xml version="1.0" > <Info> <Author> <FirstName>John</FirstName> <LastName>Boy</LastName> <EmailAddress></EmailAddress> <Gender>Man</Gender> <Birthday></Birthday> <Address /> <ZipCode /> <City /> <Country /> <Telephon /> </Author> <Books ...Show All
Windows Forms Changing DataGridViewButtonColumn's Button Text Per Row
I have an unbound DataGridViewButtonColumn and I want to change the text on each button(each row) during the load of the grid or on specific event. How can i do that thanks Shaul DataGridViewButtonColumn btnCol = new DataGridViewButtonColumn (); btnCol.Name = "btn" ; this .dataGridView1.Columns.Add(btnCol); for ( int j = 0; j < this .dataGridView1.Rows.Count; j++) { this .dataGridView1[ "btn" , j].Value = "btn" + j.ToString(); } ...Show All
.NET Development SerializationException on Sending Data Back to Serviced Component Via Remoting
I've developed a distributed app in C#. The various components of the application are as follows: A SQL Server database. Data Access Layer - Hosted in COM+ as Library application. Business Logic Layer - Hosted in COM+ as Server application. User Interface (Windows-based). Types - Exposes various typed DataSet objects used by DAL, BLL, and UI. ServerHost - A Console app that exposes the BLL objects via remoting. The application is hosted on a machine running Windows XP SP2. The DAL and BLL are both hosted in COM+ on the same server that hosts the SQL Server database. Both of these projects and the UI project reference the Types library that, among other things, has strongly typed DataSet objects that are used by the ...Show All
.NET Development Refrencing the COM not working
Below I have included the relevent source code; when ever I try to refrence the .tlb in VB.net 2003 HE or VC# Express 2005 it gives me the following error: A refrence could not be added. Converting the type library to a .net assembly failed. type library EButton was exported from a CLR and can not be re-imported as a CLR assembly using System; using System.Collections.Generic; using System.Text; using System.Windows.Forms; using System.Runtime.InteropServices; namespace EButtons { [ InterfaceType ( ComInterfaceType .InterfaceIsIDispatch)] [ Guid ( "DBE0E8C4-1C61-41f3-B6A4-4E2F353D3D08" )] public interface _EButton { } [ Guid ( "C6659361-1625-4746-931C ...Show All
Internet Explorer Development hiding the parameters in the address bar
i want to hide the parameters i send to the server in the address bar ( by the get method) how can i do it my web is written on asp pages waiting to your help, mikalush If you need to 'get' instead of 'post', can you hide the address bar by using the location='no' If you need the user to see the address, I'm not sure how to hide the parms. ...Show All
SQL Server SQL Server performance problems
Hi, I am running SQL Server 2005 SP1 on Windows Server 2003 SP1 on an Intel Xeon 3GHz CPU, with 2GB of RAM, and a 100GB hard disk. The database engine, analysis services, and reporting services are all on the same server. I now have a number of databases and cubes on the server, and am starting to run into performance problems. When a spreadsheet tries to query the database engine the same time that an Analysis Services cube is being processed or an SSIS package is updating some database tables, the query will often timeout. I realise that the best solution is probably to place Analysis Services on its own server, although the extra cost means that this is not a possibile solution. Are there any recommendations for improving the p ...Show All
Windows Forms datagridview with checkBox
i want following like datagridview, with status checkbox 'id' 'name' 'father_name' 'address' 'addmitted' 'status' 1 bob jhon US yes checked 2 kitty drown aus no unchecked for that i wrote following code strin ...Show All
SQL Server Loading excel file(.xls) into sqlserver (ASP.net web application)(ASP.net framework 1.0)
I am using framework 1.0 to do the above tasks. Since there is no fileupload function in .net 1.0, i will be using the html control tools (file field) to do the upload option. i have totally no idea of how to start coding it...can anyone guide me through the steps thanks Although your solution has 3 layers, I don't think it truly fits the definition of a 3-tier design (take a look at the defn at http://en.wikipedia.org/wiki/Three-tier_%28computing%29 ) because your layers are tightly coupled to implementation details of the other layers (e.g. your web app processing has detailed knowledge of how the presentation layer stores information in the Excel spreadsheet). A workable litmus test on wheth ...Show All
Software Development for Windows Vista Vista Final Release Date
Have to plan IT budget for hardware & software. Can anyone tell me what is the deadline of the Vista Project if there is one So anyone aware of an official date, for when final VISTA builds will be available for MSDN download for use developers I am not holding my breath, suspect it will be sometime in Q1 2007. ...Show All
Visual C# string issues
I have a string string scmd = "Select * From LookUpCode Where Type = '" & Customer.Status & "'"; but the compiler is looking at Customer like it is not apart of the string and saying I am missing a directive or assembly ref, but i am just trying to pass it to a SqlCommand....I dont know why I am getting this error....ay help I use Parameter Objects for the Sql String, if that's what your trying to do Dim ds As New dsObject Dim cmdSelect As OleDbCommand = daClass.conn.CreateCommand cmdSelect.CommandType = CommandType.Text cmdSelect.CommandText = "SELECT DISTINCT ObjectType FROM [Object] WHERE ProjectName = ORDER BY ObjectType" Dim parmProjectName As New OleDbParameter(" ...Show All
Software Development for Windows Vista What happened to the HelpDeskSupport sample app in .NET RC1 and WinWF CTP5?
Dear all, The HelpDeskSupport sample was in the SDK up until Beta 2.2, but it seems to have vanished. It looks like it exists on the web, but the links to the source code from the documentation are broken. I used it to obtain classes for "simple" communication between asp.net and a state machine workflow. This seemed to work ok, so I didn't look into it to any degree, but under RC1, using manual scheduling, it crashes because the communication interface uses a class global static to keep track of the DataPipeList and this does not persist across re-starts. The idea of a class that abstracts to data pipes with defined message formats is a good one, although the implementation of it here is a bit clumsy. Is there a samp ...Show All
SQL Server ifilters and sql express
Hi there, does anyone know if sql server 2005 express support ifilters I've installed the adobe pdf ifilter but i still can't perform full text search in pdf document. Cheers, Sylvain Hi Sylvain, SQL Express should support iFilters. It's been suggested that your issue may be related to some new security lock down we've done in SQL 2005. You would need to change a couple settings for FTS to get this to work, but changing these settings opens your machine to a bit more risk. Exec Sp_fulltext_service 'verify_signature', 0 Exec Sp_fulltext_service 'load_os_resources', 1 Then re-crawl your index It's also been mentioned that iFilters are 32-bit only. If this doesn't resolve your i ...Show All
Windows Forms hi i need help with visual basic 2005
i have created a project and setup up small database within the program and created a dataset and know i want to retrieve data from the database/dataset and display this in a rich text box could some please help thanks steven Hi, Here is the code to retrieve data from database dim con as SqlConenction dim com as SqlCommand dim da as SqlDataAdapter dim ds as DataSet con = new SqlConnection("your connection string here"); con.Open() com = new SQLCommand("select * from YoutableName", con) da = new SqlDataAdapter(com) ds = new DataSet da.Fill(ds) To Display the data in a rich text box. I don't understand if you want to display a unique column or all c ...Show All
Visual C++ Regarding the exe registration in XP machine builded in VS 2005
HI, I have ported the visual studio 6.0 code to VS 2005. The project gets builded sucessfully. The application runs sucessfully in my system. I have put the builded dlls and exe in windows 2000 pc and windows xp machine. I am able to register the exe in 2000 pc without any problem except it requires mfc80.dll. Whereas i am not able to register the exe in XP machine it throws the error "The system cannot execute this program". I have used the command "test.exe -RegServer". Pls let me know if anyone know the solution. Thanks, Ganesh Hello Sounds like something is missing from one machine that is need to install it. Have you checked that you have all your ...Show All
Windows Forms Passing Info to a Dialog Box
Hi folks, I'm writing a C++ WinForms app and just want to know how I pass a value (say a String) to a dialog box. Hi Zero_, 1. make your value public so that the dialog box can access. 2. write an auxiliary function(or constructor) that get the value from the caller, something like that. Form2 fm = new Form2(your_value); fm.ShowDialog(); ...Show All
