Sanjukta's Q&A profile
.NET Development In javacript function, how can I get value from xml files?
In javacript function, how can I get value from xml files That is: I want to load a xml file in javascript function, after I load a file(xml), I should get the value of one node in xml files. If one expert can give me one samples.that will be great. I appreciate your help. See this article: http://www.ddj.com/184406389 Here's the code that connects from the web page's JavaScript to get the XML file: function loadXMLDoc(url) { if (window.XMLHttpRequest) { req = new XMLHttpRequest(); req.onreadystatechange = processReqChange; req.open("GET", url, true); req.send(null); } else if (window.ActiveXObject) { isIE = true; req = new ActiveXObject("Microsoft.XMLHTTP"); if (req) { req.o ...Show All
SQL Server Use report parameters for Oracle 8i data source
Hello, The codes below does not work out using Oracle data provider:(Oracle v. is 8i) Select Decode(OSGID, 'AIR' ,'Room Air Monitoring', 'RRT' ,' Room Rountine Sample', 'SRT' ,' Room Supplement Sample', 'OAP' ,'Personal Other Area Samples', 'SFP','Person SFL Samples' ) Description, Count(QAONR) as TotalSample From VW_RA_LIMS_REPORT Where OSGID in ('RRT','AIR','SRT','OAP','SFP') And STATUSVALUE in (8500,8100) And RESULTUNIT='cfu/plt' And (BATCH =@StartDate ) Group By OSGID The code works if: BATCH='01/01/2006' I try code in Oracle SQL plus, when change @StartDate to &StartDate, it works. How to resolve this problem Thanks, Zixing Hello Adms, Thanks for you ...Show All
Visual C++ converting encrypted data into hexidecimal
How can I convert each byte of encrypted data into two hexidecimal characters, so that a byte of the value of 'z' becomes the string of two characters: '7A' , My encrypted data is of variable length. Also once converted I need to conver the hexidecimal back to the encrypted data So any suggestions please. My encrypted data looks like the following " [U | £ ](%IY X/2 A9 f Qv dyyyy itit" andn is obtained by doing the following PBYTE pBufPtr if(!Encrypt(hKey, 0, TRUE, 0,(BYTE *)pBufPtr, &dwCount, dwBufferLen)) I need to convert it into hexidecimal and display it to user so the user can read it out and at the other end we'll take the hexidecimal and convert it back into the encrypted data. So need he ...Show All
Visual Studio 2008 (Pre-release) Can we add an operation to a service description once the serviceHost has opened?
Initially my service has say two methods. I want to add a third method by calling one of the two methods. If any new client subscribes to the service it should be able to call all the three methods. The method which should be invoked when the dynamically added operation is called is implemented in the service class. Is this feasible hi, If you are adding an operation say 'operationA' at runtime (i.e dynamically) it means that, that particular operation becomes visible only after running of the service. But we know that the WSDL of a service is generated statically. So there is no question of re-subscribing to a service. Even if you do so, still what you will get back is the WSDL which ofcourse wont hav ...Show All
SQL Server Import Data to SQL server from Excel spreadsheet
Hi all, Firstly, i'm new to integration services and have only done a little with DTS jobs. I'm trying to create an integration services project which will import data from an two worksheets in an Excel spreadsheet to two different tables in a database. I'm looking at only one table at present to make things a little more understandable. One stipulation i have is that i need to be able to specify a variable value and insert that as an additional column in the database. I have and Excel source and a SQL destination both of which have been set up with there specific connection managers. I also have a variable which i add in using the derived column task. When i try to debug this i am getting a few problems. I think these may be to do with th ...Show All
Visual C# using Microsoft.VisualBasic.Collection
Hi, I was trying to use Microsoft.VisualBasic.Collection by adding reference to Microsoft.VisualBasic.dll in my project. I am facing problem with its Add method. In Object Browser, I got this information about this method: public void Add ( object Item , string Key , object Before , object After ) It says last thee arguments are optional . But whenever I try Add method with 1 / 2 /3 arguments then it gives me error at compile time that "No overload for method 'Add' takes '1' (or '2' or '3') arguments" e.g. using Microsoft.VisualBasic; Collection a = new Collection (); int i =10; a.Add(i ); It is giving me error. How can I add objects to my collection I tried with 2 o ...Show All
Smart Device Development Is there any API for Sound and Vibration?
Hi, Can any body tell me Is there any API for Sound and Vibraion Can you plzzz give me any sample or example Thanks in advance For vibration SDF has this: http://www.peterfoot.net/VibrationAndPocketPCDevices.aspx As for the sound, you can use PlaySound API: http://samples.gotdotnet.com/quickstart/CompactFramework/doc/playsounds.aspx ...Show All
Windows Forms tutorial with datagridview
Hi, I have seach but can't find a tutorial, which shall do the following: I have a datagridview, which have 5 colomns - the first 4 I gets from a database. The 5. have I created as a unbound text. In each row I will use the 5. column to make a calculation on column 1 and 4 where I shall say: column4 = column1 * column4 In a textbox below the datagridview, I then will have that adds all the data in column5 Example: Column1.......Column2.....Column3......Column4......Column5 QTY...........Some text...Some text....Rate.........QTY*Rate 5.............aaa.........aaaa.........100..........500,00 2.............bbb.........bbbb.........150..........300,00 Textbox which contains the totally of Column5 = 800,00 Can anybod ...Show All
Windows Forms Get BaseLine for InnerTextBox in a user control
Hi, There are any way to get location of baseline (SnapLine for Text - pink one -) of a inner TextBox in a user control Please, any suggestion will be thankful. Regards ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Where to upload demos?
Ok so I have an XNA demo game I want to upload but I don't want my web site to get slammed. Is there a good site to upload the demo to or something like a blog/dowload site that I can start I would like something XNA or MSFT based if possible. Thanks. I wouldn't be worried about being slammed in the XNA community, most of us are beginners here and even the experience joe blogs are very helpfull and almost never negative. Good to you puting your demo game out, I also would suggest if you intend to develop the game further, put it Codeplex , great place and you dont have to release the source if you dont want to, until your ready. One you've put it somewhere put a sticky in this forum, I think Dav ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Subscription availability??
Hi, This may be a silly question; but will the subscription service be available outside the USA I'm in Australia and everything seems to take a very, very long time to be supported here... Thanks, T The subscription is available on the marketplace right now Where I'm not able to see it. I assumed it was not yet available. Though I'm in a very weird position : I'm a Canadian currently working in Shanghai so maybe that's what causes the problem. My Live account is tied to Canada but my IP obviously comes from China. Louis ...Show All
.NET Development How to empty a table in a database
Hi, I use VB 2005 Express edition. I want to empty a table in a MS Access data base and set the primary key to 1 for the next entry. How can I do that Thanks! Here is the code and the details of the error... Dim AccessConn As New System.Data.OleDb.OleDbConnection( "Provider=Microsoft.Jet.OLEDB.4.0;" & "Data Source=C:\LACADRAS.mdb" ) AccessConn.Open() Dim AccessCommand As New System.Data.OleDb.OleDbCommand( "DELETE * FROM [RESEAU]" , AccessConn) AccessCommand.ExecuteNonQuery() Dim jro As JRO.JetEngine jro = New JRO.JetEngine() jro.CompactDatabase( "Provider=Microsoft.Jet.OLEDB.4.0;Data" & "Source=C:\ ...Show All
Smart Device Development How to add an Icon to a form task bar(status bar) beside the menu?
Hi Friends Can any one tell me how to add an Icon to the task bar of the form which has to be displayed when form is opened and on the task bar beside my form menu. Thanks in Advance. Hi, I got it. If I disturbed or wasted ur time with my silly question I am really very very sorry. ...Show All
SQL Server SQL Server 2005 on Vista RTM problems
Hi there, I'm trying to install SQL Server 2005 Developer Edition on my Vista Ultimate laptop, but it won't fully install. The database engine seems to be running, but I really need Management Studio (client tools) and Books Online. But this feature just won't install. I've even enabled the administrator account and tried it there. It also keeps reporting that IIS isn't installed, no matter what I do. http://localhost/ does show a nice IIS page though. This is my error log : === Verbose logging started: 20-11-2006 9:04:13 Build type: SHIP UNICODE 4.00.6000.00 Calling process: C:\Program Files\Microsoft SQL Server\90\Setup Bootstrap\setup.exe === MSI (c) (C8:8C) [09:04:13:937]: Resetting cached policy values MSI (c) (C8:8C) [09: ...Show All
Visual Studio Programatically Executing a recipe while changing an input argument
Hi, I found several related topics but none with an answer to this problem. I have a recipe adding an item to a project. The item's name is an input parameter getting its value from a wizard, easy enough. Now I want to reuse this recipe from code, looping over an XML file, and for multiple names found execute the existing recipe while overriding the name argument. Using reuse by xi:includes, I can create a new recipe that mirrors the original but without the wizard. An action from another recipe needs to execute this new recipe. Now I know it is not possible to execute a recipe from within an action (unless it is in another package), so I find the recipe and try to execute its actions using the IActionExecutionService. Not t ...Show All
