-
- Updating Adds the same record to all rows in the Database instead of just one?
by Son_seph14
- 14 Replies
- Last post
by Matt Neerincx
- Hello. I'm trying to update a single record in a database to add new data, but when I hit my update button and the event runs, it adds that record to ever record in the database overwriting the current data in the database. I'm not sure how to work around this problem. Any help would be greatly appreciated. Thank you.
-
- Error when Validating against an XML Schema.
by JoshStodola
- 14 Replies
- Last post
by JoshStodola
- Hi everyone,
I get an exception when I try to validate an XML stream against a provided schema. I am following another organizations standards with this, so I did not create the schema myself.
Exception : XmlSchemaValidationException
Message : The 'http://www.w3.org/XML/1998/namespace:lang' attribute is not declared.
I am not sure what this means, and I have been searchi
-
- [Socket][C#] UdpClient, never receive data
by codetale
- 7 Replies
- Last post
by codetale
- i just start my first Udp application, and i get some short example form internet, but they seem not working. IPAddress ip = IPAddress.Parse("224.255.255.0"); IPEndPoint iep = new IPEndPoint(ip, 4848); UdpClient udpClient = new UdpClient(AddressFamily.InterNetwork); udpClient.Connect(iep); byte[] sendBytes = Encoding.ASCII.GetBytes("Is anybody there "); udpClien
-
- [Remoting] Custom channel sink does not transmit exceptions?
by el_d
- 8 Replies
- Last post
by vkr_10
- Hello. I have a very simple remoting client, and I want to handle the case where it does not find it's server :
namespace Test { interface MyInterface { void Function(); }
class Program { static void Main(string[] args) { BinaryClientFormatterSinkProvider bcfFormatter = new BinaryClientFormatterSinkProvider(); HttpClientChannel hccChannel = new HttpClien
-
- Environment.SpecialFolder
by avinashraj
- 4 Replies
- Last post
by avinashraj
- Hello,
I find that the framework provides the following to obtain paths to several special folders - >
System. Environment .GetFolderPath( Environment . SpecialFolder .Programs)
How does one fetch the path to "C:\Documents and Settings\All Users\Start Menu"
essentially the location where shortcuts to applications meant for all users are put
What API must
-
- Code access Security- when to use and when not to
by TA123
- 3 Replies
- Last post
by Nicole Calinoiu
- Hi All,
Can somebody please explain as in what types of application do we use Code access security and How CAS is generally used e.g do we add RequestRefuse for registry in every internet application.
I want this classification for 4 types of applications broadly:
1. stand alone application
2. enterprise application
3. B2C application
4. B2B application
I am new to architectur
-
- Event handling in .NET Framework
by Aazad
- 7 Replies
- Last post
by TedToal
- Hi,
I am new to .NET and from JAVA background. I know pretty well about event handling in JAVA. But when going through the EventHandling in .NET i got confused between delegates and events. Do we really need a delegate for EventHandling As delegate is just like a function pointer in C. Can some one explain me about a delegate and how it is related to event handling in .NET It would be grea
-
- Passing parameter to stored procedure
by yonelay
- 6 Replies
- Last post
by yonelay
- Hi All,
I am using Visual 2005 and very new to C# Windows Application. I created a stored procedure and connected the database through bindingsource, which created dataset and Adapter.
I have two combo boxes. ComboboxB is a dependent of ComboboxA. Now, how can I pass the value from ComboboxA to stored procedure value, e.g., "@StateKey" so that I can have the drop down list based on
-
- Update Query not updating or issuing exceptions
by Sammy1971
- 8 Replies
- Last post
by Sohail Iqbal
- Hey guys I have this Access Query I am trying to run in C# windows app the Query from access UPDATE tblStaff SET tblStaff.Record_Password = [ NP], tblStaff.LastUpdatedBy = [ LB] WHERE (((tblStaff.CorpID)=[ CD]) AND ((tblStaff.Record_Password)=[ CP])); C# code OleDbConnection objConn = new OleDbConnection(); objConn = Config.ConnBuilder(); OleDbCommand oCmd = new OleDbCommand(Query,objConn);
-
- how to zip an Xml Document
by Jehan Badshah
- 13 Replies
- Last post
by Mark Dawson
- Dear All,
I found a library (name Chilkat ) through which i can easily zip(compress) xml file, but it has only 30 days evolution period, could any one please show me way how to compress xml.
thanks
-
- Working with string values passing from database
by pblecha
- 0 Replies
- Last post
by pblecha
- I am passing values into a dataset from an Access database, then running a conditional loop to update selected fields on passthrough. As I loop through the dataset, I am querying a separate dataset to find the fields to be updated. Here is the code for that selection criterion:
Code Block
For Each row As DataRow In accessDataSet.Tables("MainInfo").Rows
Try
-
- Uploading DIME attachments from client to server
by ming_68
- 11 Replies
- Last post
by DaveInCT
- Hi, Just learning about web services so I'm kind of a newbie. All of the expamples using DIME I have seen so far (both online and in a book) have been examples of downloading attachments from server to client. Can anyone point me to a good code example of using DIME to send attachments from client to server Thanks in advance for your help. -Mark
-
- Issues with C# and HTTPS/SSL Connection
by Joe-B.
- 6 Replies
- Last post
by ujjwalprakash
- Hi, I am trying to read an HTML page from a secure (HTTPS/SSL) website. I have the traditional class that works perfectly with un-secure website. Whenever I try to connect to the secure website,the procedure call at: StreamReader sr = new StreamReader(HttpWResponse.GetResponseStream(), Encoding.ASCII); and returns the following exception message: base {System.InvalidOperationException} = {"T
-
- TAPI object?
by sheida
- 0 Replies
- Last post
by sheida
- I 'm gonna make a semi-answering machine in c#.is there any ATPI class or object in .net
-
- How to insert & retrieve data to a database in client-server environment
by Tapan
- 1 Replies
- Last post
by VMazur
- When i connect my database locally it connects as well as i can retrieve & update data to it.
But
My objective is to connect,insert,retrieve as well as update via client-server environment .
i.e Suppose in Client 57 i have a database and i want to retrieve, connect as well as update it via client 52.
So please suggest me with code the connection string...& others...
-
- How to save icon
by Aimeast
- 3 Replies
- Last post
by nobugz
- I have a handle Icon myIcon ,only save a .ico file in 4 deep color if I use myIcon.Save(Stream) .but I hope a function can save it with full color.I don't how to do it. Thinks. I'm sorry if I have grammar or spell error.
-
- Typed datarow, raising property changed event for new property
by dan blanchard
- 0 Replies
- Last post
by dan blanchard
- Hi, In WPF, I am binding to a new property in typed data row, such as: public int ImageCount { get { return this.GetImageRows().Length; } } (Images is a child datatable) When I add another child row, this increases this property, but the change is not getting raised back to the bound object. Is there a way I could call an event manually so the bound object will know it c
-
- need help parsing a paragraph bounded by
by tanieboy
- 5 Replies
- Last post
by tanieboy
- i need a regular expression that matches a paragraph bounded by ^XA and ^XZ!
sample string to parse:
^XA etc, etc.. ' <--- start of the paragraph
^FO etc, etc... ' line 2
^FO etc, etc... ' line 3 and so on
^FWB ' Field separator
^FO etc, etc.
^FWN - field terminator
^FO etc, etc ' more fields and then finally...
^XZ ' <-- end of
-
- Printing different pages using different Page Settings
by DavidHarrison
- 3 Replies
- Last post
by JohnWein
- I want to print different pages in a word processing application using different PageSettings. I have implemented a QueryPageSettingsEventHandler - code is below. I am able to store and retrieve the correct PageSettings for each page number, but the printer does not respect them and every page is printed using the printers default settings.
What is wrong
printDoc.QueryPageSettings += ne
-
- delete query issue...
by BNassen
- 5 Replies
- Last post
by l1101100
- hi everybody,
my question:
I'm writing several things to a sql database. 1 field consists dates (when a file was uploaded). My question is: how, and more important, WHERE do I have to implement my DELETE query
so when that date has expired, 7 days later in this case, I want to delete that record automatically...
I think it is NOT locigal to implement that delete-function in my
-
- Using soap with tcp
by Paula M
- 10 Replies
- Last post
by Paula
- Hi,
I have a windows service that is currently using tcp format headers and I want to change it to use soap. I've read that soap formatters can be used with tcp but I have not been able to find an example.
Here is the code I have in the on start of my service:
BinaryServerFormatterSinkProvider serverProv = new BinaryServerFormatterSinkProvider();
serverProv.TypeFilterLevel = System
-
- RegEx performance
by limpidfox
- 12 Replies
- Last post
by limpidfox
- Hmmm.
I have a process that scans directories for matching file names and use RegEx to create the search pattern.
Initially, I used the quick and easy static method (C#): if (RegEx.isMatch(filename,@"\.([jJ][pP][eE]*[gG])$"))
{
//do something
}
The performance was horrible. Much better to create the expression and re-use it (about 10 times faster!)
R
-
- Dot net framework 2.0 faulting error faulting module NTDLL.DLL
by sinkou
- 8 Replies
- Last post
by sinkou
- I am currently developing windows form based application C#.Net(2.0). Main objective of the application is to to play movie file (wmv or mp4 or avi or mov).I am using media player control and quick time control to play the respective movie file by switching the player. My application runs for 24 hours on clients terminal. Configuration of client's terminal is as follows: Operating System : Windows
-
- does C# allow different types of objects in one linked list or any other data structure?
by lily2zhang
- 2 Replies
- Last post
by lily2zhang
- I'm thinking to use a linked list or some other data structure to store a group of sequential incidents. There are several types of them in that they can contain different sets of variables or informations. I plan to use structs to represent them. But not sure what data structure to use to put them in sequence so that I can access them forward and backwards.
I would appreciate it very much
-
- how to Un Register the DLL from GAC -- Error
by Senthil.P
- 6 Replies
- Last post
by Martin Xie - MSFT
- All,
I tried to unistall the Assembly from GAC .. I got the following Error.
C:\WORKSPACE\200928\ALGO\Workspace\FileUpdater\bin\Debug>cd\
C:\>cd C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\Bin\
C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\Bin>gacutil /U Test
Microsoft (R) .NET Global Assembly Cache Utility. Version 1.1.4322.573 Copyright