473,774 Members | 2,218 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

C# / C Sharp Forum

4
4,732
thread by: Martin Horst | last post Jun 27 '08 by: Ignacio Machin ( .NET/ C# MVP )
Hi, I've got an application which is written in .Net 1.1. When I try to write a varbinary(max) field using the SqlCommand and SqlParameter classes I got an exception like this: "The conversion of varchar into varbinary is invalid". When I remove this field from my update statement, everything works fine. The SQL paramter got the the...
1
2,219
thread by: =?Utf-8?B?RXVnZW5pYSBNb3lh?= | last post Jun 27 '08 by: Ignacio Machin ( .NET/ C# MVP )
Necesito que mi aplicacion (ASP NET - C#) envie un net send a determinadas maquinas de la red y no encuentro como hacerlo. Gracias
4
120
thread by: Nightcrawler | last post Jun 27 '08 by: =?Utf-8?B?TWFydGluIEtvY2g=?=
I have a regular expression that catches these patterns: value1 - value2 value1 - value2 (value3) value1 - value2 value1 - value2 "value3" As you can see value3 is always optional. The regular expression I use is:
4
4,957
thread by: Christian | last post Jun 27 '08 by: Christian
Hi, i TRY to create a windows apllication that insert in a Access DB name and surname; the Insert istruction Works but the the refresh of DataGridView doesn't works... the code is : public Form1() { InitializeComponent(); } #region Variabili
1
1,429
thread by: vimal.424 | last post Jun 27 '08 by: vimal.424
Hello guys........ please tell me ............. I want to do email validation like i have a userid entered by user new user.so problem is that i have to do the validation when i'll click on save button b'coz userid should be unique.....
2
1,367
thread by: psycho | last post Jun 27 '08 by: Bjorn Brox
I need some information on guidelines on how to use XML comments in c#. Please suggest some good articles or books.
1
1,270
thread by: ad | last post Jun 27 '08 by: ad
It will show the reference page when I right click a web project and select it's property page. There are some reference types: BIN, GAC What is the difference between these two types?
7
2,778
thread by: Chris Saunders | last post Jun 27 '08 by: n!
I'm not very familiar with C#. I have a static class and would like to define some constants similarily to Math.PI. Could someone show me how to go about doing this. So far no luck searching. Regards Chris Saunders
4
252
thread by: shapper | last post Jun 27 '08 by: Marc Gravell
Hello, How do I select 10 random records from a table? Thanks, Miguel
5
1,897
thread by: Andy B | last post Jun 27 '08 by: Hans Kesting
I am trying to figure out how to make an object instance available for all methods of a class. I tried to do something like this: public class test { TheObject Instance = new TheObject(); TheObject.Dictionary<string, string= new Dictionary<string, string>(); .... } The first line (TheObject instance = new TheObject();) doesn't get
4
1,828
thread by: =?Utf-8?B?Q2hyaXN0aWFuIEhhdmVs?= | last post Jun 27 '08 by: Willy Denoyette [MVP]
Hi, I have a .NET / COM DLL. On the client the COM object is created by a application using VBScript (Windows Scripting). I try to deploy the .NET / COM DLL using ClickOnce deployment. I know that it is only possible to deploy a Windows Forms - no DLL. Well, my idea is to deploy a "dummy" Windows Forms app, that references the .NET / COM...
2
2,834
thread by: Ilya | last post Jun 27 '08 by: Ilya
Hi, all! Some weird thing happens... I'm trying to create a shortcut programmatically in C#. I need to create a shortcut with the "target" parameter using slash. Actually I'm creating a shortcut to a file using command line arguments, smth like: "C:\PATH\MyFile.exe" /param1 The problem is that when I create a shortcut the regular slash...
1
2,925
thread by: Peter Huish | last post Jun 27 '08 by: Peter Huish
I have an application that uses the system.io.ports.serial class to receive data from a serial device. The device is sending a data stream of stx then 15 readable ascii characters then a cr. My datareceived event looks like: int iBytesToRead = com.thePort.BytesToRead; string data = com.thePort.ReadExisting(); // Make sure we are...
6
4,222
thread by: Pixel.to.life | last post Jun 27 '08 by: =?ISO-8859-1?Q?Arne_Vajh=F8j?=
So I have this perfectly fine and running app, that uses managed C++ forms. Problem#1: I pass a Bitmap reference to a class, hoping to modify it in one of the class's methods, so it reflects outside too. Something like this:
0
1,073
thread by: bob | last post Jun 27 '08 by: bob
Hi, VS2008 IDE Desktop app. Anybody out there deploying this db? I am finding a strange problem with column names. I am using an SQLCeCommand to create a datareader. I have a where clause that is refusing some of the column names. Saying the column name is not valid. The columns are visible in Server explorer.
1
1,830
thread by: Tony Johansson | last post Jun 27 '08 by: Alvin Bruney [ASP.NET MVP]
Hello! I'm reading in a book about .NET and here they something that sound wrong but I'm not abolutely sure. They say that a DataSet contains methods to update data in the database is that really correct ? I have looked in the documentation for DataSet and it seems that there are no methods or propery that can be used to update the...
1
1,508
thread by: ERobishaw | last post Jun 27 '08 by: =?Utf-8?B?TWlzYmFoIEFyZWZpbg==?=
A windows service I've created runs on all boxes except Windows 2000 server. The windows service initializes (i.e., the Service:ServieBase class gets constructed), but the OnStart() method never fires. On the same server, I have another service I've created which runs just fine. Both services were installed using the Windows Installer,...
5
2,118
thread by: Andrus | last post Jun 27 '08 by: Marc Gravell
I need to use lambda expressions or other way to specify default query for dlinq entity type. Code below causes compile error shown in comment. How to fix ? Maybe to use ? Andrus. using System; using System.Linq;
2
1,929
thread by: Tony Johansson | last post Jun 27 '08 by: Marc Gravell
Hello! How does this connection pool function actually ? As I have been told is that when the connection is returned to the pool the connection to the database is still open. What you do is that you just return a still open connection to the pool. When I open a connection I get an already open connection to the database. Is this correct...
0
1,068
thread by: d-42 | last post Jun 27 '08 by: d-42
You wrote a great deal and there is so much I would have liked to elaborate on but this really de-railed the whole debate. You posted that linq DOES throw an exception if its not ordered, and that runs contrary to my experience. On Apr 21, 1:26 am, "Frans Bouma " <perseus.usenetNOS...@xs4all.nlwrote: We wouldn't be having this...
4
8,279
thread by: Spam Catcher | last post Jun 27 '08 by: Willy Denoyette [MVP]
Hello All, I need to integrate my application into Active Directory. My application has the concept of groups, users, and also individual permissions. Users can be part of a group such as administrators, but explicit permissions may also be set. Can active directory handle this too? For example: Administrators can typically...
1
6,050
thread by: Verde | last post Jun 27 '08 by: =?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=
Is there an easier way to determine if a specific assembly is loaded into the current AppDomain? I'm thinking that there has to be a way to do it without looping through all currently loaded assemblies, yet I couldn't find how to do it without looping. This is what I have: private bool AssemblyIsLoaded(string pathToAssembly)
1
958
thread by: Tony Johansson | last post Jun 27 '08 by: Tony Johansson
Hello! A DataSet is using XML to represent data that is stored locally. I just wonder how can I look at these XML data that describe the DataSet? //Tony
2
1,264
thread by: GiJeet | last post Jun 27 '08 by: GiJeet
Hi, just learning extension methods and the first parameter confuses me. I understand using the this keyword to indicate the class we wish to extend, but is the first parameter also used to catch something passed ? Or is is it just to specify the class we wish to extend? the reason I guess I'm confused is because sometimes a see a variable...
3
14,194
thread by: chemicalcold0 | last post Jun 27 '08 by: chemicalcold0
Hi there, since < has a meaning in c# for regular expressions and \< says it's an unrecognized escape sequence, I'm pretty lost parsing html tags without replacing them first with another character or string. Does anyone have a hint for me on how to get c# Regex class to find "<"? Thanks in advance,

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.