-
- How to fetch the Inner Text of XML based on attributes using C# in web apps
by Niranjan_007
- 1 Replies
- Last post
by Martin Honnen
- Hi i have a large XML Document and i have to fetch the contents based on the attributes. For eg., i have to fetch one section based on the attribute first and the other sections next but these sections are not in the same order.For eg.,
<a att="x">InnerText1</a>
<b att="y">
<c>InnerText2<c/>
<d>InnerText3</d>
</b
-
- Retrieving hyperlink from excel with OleDb possible?
by Roshan Lal
- 2 Replies
- Last post
by Roshan Lal
- Hi everyone,
I have to transfer some data from one excel workbook to another existing workbook.
The server does not have Excel installed. So I am using oledb for this. The problem
I having is this:
1. In my dataset I only get the display lable of hyperlink, not the hyperlink value itself.
2. When I insert additional rows into the target workbook, the new rows don't have the
f
-
- Simultaneous calls to services results in The request was aborted: The request was canceled
by Daniel Hawkins
- 14 Replies
- Last post
by Charles Gray
- Hi Everyone
I am making simultaneous calls to seperate web services on the same server. The services have WSE 3 enabled using certificate based security.
After a minute or so of running one them returns with the error "The request was aborted: The request was canceled", I am completley stumped, if I just make one of the calls then everything is ok. Here is the stack trace from the
-
- parameterized query performance/speed issue
by Tilfried Weissenberger
- 10 Replies
- Last post
by Tilfried Weissenberger
- We have a rather complex SQL which is being built-up by the user which we run against the Database. That query, when run in Management-Studio, runs throught in below 1sek. Using SqlCommand.ExecuteNonQuery (it fills a temp-table) takes 1-2 MINUTES, though!!!
We have tried many things and it boils down to SqlCommand using sp_ExecuteSql and this causes major performance-issues even within Mgmt
-
- xsd.exe error: can only generate one of the classes or datasets
by siwi
- 2 Replies
- Last post
by siwi
- Hi All, I'm trying to generate class using the xsd.exe tool for the following schema. I get an error saying: can only generate one of the classes or datasets. If i generate the class using /d option the code is generated as dataset classes. But i don't want to use datasets. Can anyone please explain why the xsd can't generate the class Are they any workarounds by tweaking the schemas thanks in ad
-
- Very strange SQL INSERT command error
by Langtudien
- 2 Replies
- Last post
by Langtudien
- "INSERT INTO tblEquip(buydate,Country,feature,pc,Provider,Serial,Status,Warranty,Year,Typeid ) VALUES ('12/12/2008','Viet Nam','Supper Power ',0,'IBM','ABCDEF','Out of warranty','12/12/2008',1965,5);"
I use Visual 2005 IDE and code in C# , with an MS Access 2003 Databse.
Above SQL command is gotten from Debug.
It works well when i paste into a query in MS Access 2003.
B
-
- corrupt connection pooling clear and table adapter
by Giedrius Banaitis
- 5 Replies
- Last post
by VasanthTT
- Hi,
let's say we have plenty of table adapters in application and connection pool corrupts pretty often.
How nice and elegant with minimal rewriting make those table adapters work without exceptions using this (or if you get the point of the problem and know better one) solution (idea in pseudo code):
try { fill datatable using adapter with plenty of usrfull data } catch { looks like ou
-
- Base class members are not exposed in Excel
by YoJ
- 1 Replies
- Last post
by Daniel Roth
- Hi,
I am trying to reference a web service from Excel using Office 2003 Web Service Toolkit and I have the following objects defined:
[ Serializable ()] public class BaseClass { private int id; public int ID { get { return id; } set { id = value ; } } }
[ Serializable ()] public class InheritedClass : BaseClass { private int attribute; public int Attrib
-
- Calling Javascript from C#.NET
by EgorKDie
- 14 Replies
- Last post
by Tobias Larsson Hult
- Hi, I have an HTML page with contains both Javascript and a .NET control on it. the html is: <html> <head> </head> <body> <SCRIPT LANGUAGE="JavaScript" src="javascript/projectJS.js"> </SCRIPT> <OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/c
-
- Updating tables in access
by sl5
- 7 Replies
- Last post
by Paul P Clement IV
- Hi there,
I havent worked with VB much so i have a question
I have a table (table1), with 5 coloumns in access. &
I have a .txt file which is generated as a comma seperated values file, which is to be updated into this table.
so i havea txt file
heading1,heading2,heading3,heading4
col1,col2,col3,col4
i want to update this file in an access table, using the date/time(or u c
-
- Inserting Nulls into database
by Hockey Nut
- 4 Replies
- Last post
by Hockey Nut
- I've been fighting/looking into this all day. I'm using ASP.NET 2 & SQL Server.
I have a stored prodedure which inserts a new row. I'm collecting some data in textboxes on a page. Not all the contents of this row are filled in straight away, so I have some nulls to insert into the new database row. However I'm having problems doing this on my code side. It wont accept the system.dbnull,
-
- Calling Methods On A COM Interface
by &#61;Steve D&#
- 3 Replies
- Last post
by =Steve D=
- I'm writing a VB 2005 application that needs to call methods on the COM IDropTargetHelper interface. I think I've got it set up correctly (although I might not), but I can't create an object that I can use to call the methods. What am I doing wrong This is what I have:
Code Block
Imports System.Runtime.InteropServices
Public Class CCOM
Public Const GUID_
-
- DataRowCollection.Add in .NET 2
by Iram
- 1 Replies
- Last post
by VMazur
- Hi, my name is Iram. I'm upgrading my winform application which was developed in .NET 1.1 to .NET 2. There is a code section that works well in .NET 1.1, but in .NET 2 raises an Exception of:{"Object reference not set to an instance of an object."} System.Exception {System.NullReferenceException} The code is: DataRowCollection rc; DataRow newSearchRow; rc = searchQuestions.Rows; newSearc
-
- .Net 1.1 Fails on Win2003 x64
by esnajder
- 3 Replies
- Last post
by Caddre
- I have a Windows 2003 x64 Std edition that I want to install Framework 1.1 on, for the SQL Server Health and History Tool (the box is running SQL 2005 x64 Dev Ed). I have downloaded the redist, but when I attempt to install, I get:
This setup is not supported on 64-bit versions of Windows XP.
The version I am installing on is Windows Server 2003 Standard x64 Edition Build 3790 (SP2)
-
- How to unregister a COM wrapped .NET assembly?
by WinFXGuy
- 13 Replies
- Last post
by PhilWilson
- Hi All,
I created a COM exposed .NET 2.0 dll and registered with my Windows 2000 operating system using 'regasm' and 'gacutil' Then I tried to call this component from my classic ASP page. It worked fine. But, I need to change the functionality of my assembly. I unregistered it again using 'regasm' and 'gacutil' utilities and copied my new .NET DLL and registered again. B
-
- PHP INSTALLATION
by ELIJAH E.
- 1 Replies
- Last post
by Jorg Jooss - MSFT
- Hello,
I am installing php 5.1.6 manually on my laptop and have reached the stage where I need to access IIS for the remaining configuration. I've got my system updated to the extent that I can't access IIS from
CONTROL PANEL + ADMINISTRATIVE TOOLS
(I had a similar problem with setting user rights but got over it somehow through MS .NET Framework 2.0 icon in administrative tools)
Pls
-
- Retrieve html
by lukaszt
- 2 Replies
- Last post
by Richard Ponton
- Hello.
I have prepared Regex:
Code Block <div\sclass="wiw"><div>( <Link>.* )<
The input string is:
></div><div class="wiw"><div>Please check the checkbox 2000</div></div><div class="info">Lol
Search result looks like:
<div class="wiw"><
-
- [C#]From xml to html
by Raoul_BennetH
- 4 Replies
- Last post
by Raoul_BennetH
- Hi all I have some xml files, derived by a dataset doing: myDataSet.WriteXml(myXmlFile); I need to convert those files to html files. Reading around, it seems which i need of: XslCompiledTransform. Im trying as follow: XmlTextReader reader = new XmlTextReader("myFile.xml"); XslCompiledTransform xslt = new XslCompiledTransform(); xslt.Load(reader); xslt.Transform("myOriginal.xml&qu
-
- .Net 1.1 - HttpWorkerRequest.IsSecure -> How to get this true?
by BertramE
- 3 Replies
- Last post
by BertramE
- Hello,
the simple question i have is, how i get a secure HttpWorkerrequest.
Explanation:
I have a class derived from SimpleWorkerRequest.
internal class SSLRequest : SimpleWorkerRequest
The constructor looks like this:
public SSLRequest(SSLHost host, SSLConnection conn) : base (String.Empty, String.Empty, null )
the SSLRequest Object is passed to th
-
- Storing multiple items in XML
by shah123
- 4 Replies
- Last post
by Martin Xie - MSFT
- I got the XML File working but how i would store more then one schedule tasks in XML file as in below code i can add 1 task at one time. What will be the looping condition Following is some of my code:
Code Snippet
private void addBtn_Click(object sender, EventArgs e) { XmlTextWriter sch = null; sch = new XmlTextWriter(filename, null); sch.Formatting = Formatting.Inden
-
- Serialization,Memory Streams,and TCP
by Chapley Watson
- 2 Replies
- Last post
by Steve Maine -- MSFT
- I am serializing the below code. For some reason RTF occasionally Blows up my code. So I figured this would be an easy work around Suggestions would be nice.
Code Block
<Serializable()> _ Public Class IMMsg Implements System.Runtime.Serialization.ISerializable Public SenderID As Integer = 0 Public SenderName As String = "" Public SendToID As Inte
-
- Problem with List<>
by irl-barse
- 7 Replies
- Last post
by Ashish Basran
- Hi,
I have a list of type ParseInfo...it's a class of properites. The List is called PitzuParseInfo.
So it's List<ParseInfo> PitzuParseInfo;
After every iteration of a loop I add the instance of this class 'm_parseInfo' to the list....
PitzuParseInfo.Add(m_parseInfo).
My problem is after every iteraction of the loop ALL my entries in the List are equal to the last iteration..
-
- How to Pause or sleep the background worker thread
by mks033
- 14 Replies
- Last post
by Peter Ritchie
- Posted - 05/03/2006 : 07:03:30 AM
I m using the background worker thread to done the task. i m using this because my application required the update of the GUI based on the status of work so background worker thread will be helpful to me. Now the issue is that i have one button of pause/resume to pause/resume the working of this background worker thread. i haven't found an
-
- embed other projects at compile
by Mr Johansen
- 1 Replies
- Last post
by Sergey Kanzhelev
- Sorry if this has been asked before but here it goes..
In my solution i have divided different parts of my application into multiple projects.
I have for example a 'CryptoHash' class project that encrypt and decrypt strings. It is a general component and is used by several other projects; one is a console application and other is a windows service project.
Now i notice that the pe
-
- dataset in visual studio 2005,
by idel
- 3 Replies
- Last post
by BonnieB
- Hi
I wonder why when I create a dataset in visual studio 2005, I don't see any dataset.designer.cs ...
Is this file hidden Is there a special option in visual studio 2005 regarding this
Any help would be great! Thanks in advance,
Idel