fburns's Q&A profile
.NET Development subset of XML data
I have a XML file that has about 50 elements (columns) and about 500 records. Right now I need to get about 25 of those elements(columns)so what I am doing is to load the entire xml file into a dataset and then create a new table with just the items that I need and do a table.merge. It works but I am new to the XML world and there must be a cleaner way of doing this. Any help is apprecieated. Thanks Using DataSet is ok but I'd rather use XmlDocument and delete unneeded nodes there or perform XSLT transformation. Tools you should consider for this depends on your requirements (memory, performance) and ...Show All
.NET Development Getting a picture by web service
Hi all, I'm building a web service that gets a pupile details from a database by giving his ID number. I have no problem with the personal details. Now I'm dealing with the pupile picture. 1. How can I deal with the pictures in the database. 2. How to get them by the web service. 3. What is the format can I get the picture, can I get it as XML stream, and get it back. Please help me. and if you know a link for a web service tutorial that get a pictures. Best regards... Hello Wasim, You should pass the image data as a byte array. Take a look at the following link for a quick sample. Cheers, -Todd Foust ...Show All
Windows Forms Need an EXE to open custom IE windows
Hello. I need code to write a simple Windows Forms program that will, upon execution, just open the Internet Explorer browser with custom settings (e.g. certain IE size, no buttons, certain interanet webpage...etc). Thank you. J. S. Alfi Internet Applications Hi MarcDeVegas, To use Internet Explorer Kiosk mode in an autorun file, just use winopen in an autorun.inf as follows: [autorun] open=winopen iexplore.exe -k $EXEDIR$\index.h ...Show All
Windows Forms MDI + external exe
Hi can anybody give me the code so that i can load external exe's as MDI childs into my application. Also cn anybody give me code so that i can load exe's from .dlls as MDI childs into my application Thx Assuming your exe or dll is .NET.... ' MyAssembly exe or dll contains the form to be instantiated System.Reflection.Assembly asm = System.Reflection.Assembly.LoadFrom( "MyAssembly.exe" ) ' This create an instance of an Object Class, but it's castable to the proper System.Windows.Form or custom Form Class. objClass = asmExternal.CreateInstance("Form Name") objClass.Parent = MainForm ...Show All
Visual Basic ERROR: Unrecoverable build error when building Setup project in VS.Net 2005
Hello, Somebody, please help me out, I got "Unrecoverable build error" when building setup project. I try the solution in http://support.microsoft.com/kb/329214/EN-US/ but did not work out. I am totally stuck. Please, your any information, solution will be very much appreciated. Thanks! Yi-an This worked for me: Mergemod.dll is not registered correctly To resolve this problem, register Mergemod.dll again. Typically, Mergemod.dll is located in the following folder: C:\Program Files\Common Files\Microsoft Shared\MSI Tools\Mergemod.dll To register the Mergemod.dll, type the following c ...Show All
Visual C# The type <sometype> exists in both <frameworkdirectory> and <vsappdirectory>
Error 1 The type 'System.Data.SqlClient.SqlDataReader' exists in both 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Data.dll' and 'c:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PublicAssemblies\System.Data.SqlClient.dll' C:\StingrayII\Domains\Framework\Provider\CustomMembershipProvider.cs 234 39 SXA.PTL.Framework.Provider I am getting the above error in my project, and I'm not sure why, or what is causing it. This is just one example of this particular error. We've gotten similar errors on other *.dll's on the system from other projects. Can anyone tell me "why" I am getting this error Here is the line tha ...Show All
Visual C# Unrecognized configuration section 'connectionStrings'
Hello ,can someone help me in the following : I have some pages that have been created with VWD express but when I try to test these pages with Dreamweaver or when I upload these pages on to a Host provider I get the following error message: Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. Parser Error Message: Unrecognized configuration section 'connectionStrings' Source Error: Line 10: <configuration> Line 11: <appSe ...Show All
SQL Server Sending Data from SQL 2005 to and from C# code
Hi Background: I am a post-graduate student developing a model of the way HIV/AIDS spreads in communities. The data sets I am using are large (eg census data - 50m records) and the manipulation is complex (eg deciding which individuals will begin a sexual partnership, and with whom). Problem : I need to process a table of data in code written in C# that will insert the results which are also a table of data into a table in the database. In the example set up below, a table with rows comprising an Integer and a Real is the input. The output is a table where each row also comprises an Integer and a Real. Each row of input, say (Inti, ...Show All
SQL Server Crash recovery: Attaching database without prior proper detach
Hello, I have two harddrives on my system. The Primary one runs SQL2005 software, the secondary has all the DATA. The primary drive has died. I bought a new drive and installed SQL sofware. Now I want to attach databases from the secondary drive. Note: I did not detach them when primary drive crashed. What would be the safest way to connect them to the new server I don't have backups. Thank you! P.S. Sorry for the duplicate post which I made to the SSIS thread Hello, Just use sp_attach_db and pass in the data and log file(s). Refer to BOL for a full guide. Cheers Rob ...Show All
Visual Studio Team System Sql Server Management Studio is missing in Sept CTP
According to VSTS Beta3 installation Guide, I installed Sql Server for Sept CTP from en_SQL2005_STD_Servers_Sept2005.iso file. After installing sql successfully i don't see Sql Server Management studio installed. Am i missing something here Thanks, Anu There are 2 ISO files. A _SERVERS_ and a _TOOLS_. You'll need to get both ISO files. I seem to remember someone have a problem getting the Management Studio to install on a computer that also had the Express edition already on it. ...Show All
SQL Server Query producing Dups
I swear I had this fixed but when I looked again this morning, I noticed that this query is producing dup records in the results. Something is not right with my query here: SELECT DISTINCT m.customer, c.name, c.customer, (SELECT Top 1 fd.Fee1 FROM FeeScheduleDetails fd where c.feeSchedule = fd.code) AS FeeSchedule, m.Branch, CASE WHEN ph.batchtype = 'PUR' OR ph.batchtype = 'PAR' OR ph.batchtype = 'PCR' OR ph.batchtype = 'DUR' OR ph.batchtype = 'DAR' Then (-ph.totalpaid + ph.ForwardeeFee) WHEN ph.batchtype = 'PU' OR ph.batchtype = 'PC' OR ph.batchtype = 'PA' OR ph.batchtype = 'DC' OR ph.batchtype = ...Show All
Visual Studio 2008 (Pre-release) How do I access child ui elements of a ListBoxItem
Is it possible to get the child UIElements from a ListBoxItem created via a DataTemplate The Context property in this case is set to the bounded data object. Hi guys, This is really good feedback. We would like to fully understand the scenarios that can not be done without walking the visual tree. If you have a scenario that required you to do so, please explain it in this thread. This will help us plan better for the next version of Avalon. Thanks! Bea ...Show All
SQL Server Data source with a type of SSIS
I know that you can do this, because I have read about it in MSDN, but I'm not suer about the syntax. I am creating a report that needs an SSIS type data source. I have deleted the comments in the relevant config files both on my local machine (development) and the reporting services server, and can see SSIS as data type. Now for the tricky bit! I go to create a new data source. Give it a name, choose SSIS as a data type, and now for the connection string. I "think" I know what I would do if it were a file system SSIS package, but it is stored in the MSDB. What connection string do I use to connect to this data source There a ...Show All
Architecture Guidance Needed on User Interface Process Application Block (UIPAB) - Starting a Open Navigation Task
Does anyone know of a good existing walkthrough-style tutorial on the UIPAB I've read through the whole reference to the UIP Application Block a couple of times but I'm confused by something stated in the UIPAB reference: Under the heading " Starting and Resuming Tasks " the reference tell you that to start a task you must call: UIPManager.StartOpenNavigationTask(name As String, firstViewName As String ) where name is the name of the navigationGraph element in app.config. But elsewhere in the reference it states: "If you are u ...Show All
Visual Basic get ip address using vb.net in aspx page
I tried the asp.net forum, the link is broken. I need a little help collecting the host ip using vb in an aspx page. I tried adding Imports System.Net at the top of the page. The error returned was DNS not declared. Here is what I had; <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title></title> <meta name="GENERATOR" content="Microsoft Visual Studio .Net 7.1"> <meta name="vs_targetSchema" contenet="http://schemas.microsoft.com/intellisence/ie5"> </head> <body> <% Dim MyHostName as String = DNS.GetHostName() Dim MyHostEntry as IPHostEntr ...Show All
