all groups > c# > june 2005 > threads for wednesday june 1
Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
SQL Connection Error.......how to come out?
Posted by Hiten at 6/1/2005 10:54:26 PM
Hi
i tried all but still its not connecting
I have WindowsXP, and SQL2000 installed on it with WindowsNT integrated
security
When i tried with ConnectionString to connect Northwind it works fine
but when i Trying it with other Database which i have created for
learning it wont connect and it g... more >>
Winform Test
Posted by A.M at 6/1/2005 10:06:33 PM
Hi,
Is there any product in the market that facilitate SmartClient UI testing?
I am looking for a product that possibly intigrates with NUnit and I can
record WinForm UI senarios and it tests the senarios automatically.
Thanks,
Alan
... more >>
How to Connect other Database in SQL server? connection error....
Posted by Hiten at 6/1/2005 9:32:39 PM
Hi
I am stucked at Connection with Database in My .Net program
When i connect with Northwind SQL db it connects easily no errors but
when i try to connect with my own created Database it gives me error
and it not opening connection at all
error is
Loging Failed with data base name...........
... more >>
Roles
Posted by Daniel Groh at 6/1/2005 9:08:04 PM
Hi folks,
Having this code:
if(User.IsInRole("ConfiguredRole")) {
ApplyRule();
}
should it works right ? but doesn't with me...when i set User. (dot) i just
have some properties and methods where the method IsInRole() is not
showing...How do i do ?
Thanks in advance
Daniel
... more >>
Working with Excel
Posted by Oscar Thornell at 6/1/2005 9:01:36 PM
Hi!
Does anybody know any articles / code exampels / bloggs etc or does in any
other way have tips on working with Excel spreedsheets trough .NET?
I can not use the Excel.dll it must all take place in managed code...
Regards
/Oscar
... more >>
Casting a C# base class object to a derived class type.
Posted by Chris Capon at 6/1/2005 8:36:02 PM
Is there any way to cast a base class object to a derived class datatype when
the derived class adds no new fields nor alters the object allocation in any
way?
The scenario would be where you want to extend a base class by adding only
methods and properties, however, only base class objects... more >>
Fast string operations
Posted by Chad Myers at 6/1/2005 7:57:50 PM
I've been perf testing an application of mine and I've noticed that there
are a lot (and I mean A LOT -- megabytes and megabytes of 'em) System.String
instances being created.
I've done some analysis and I'm led to believe (but can't yet quantitatively
establish as fact) that the two basic ... more >>
getting list of all tables in MS SQL DB using OdbcConnection
Posted by Oleg Shnayderman at 6/1/2005 7:03:08 PM
Hi All,
I am very new to C# as well as to SQL. I need to write an application which
is connecting to SQL DB and getting all the user's tables and after create a
dataset for all the tables in the database and create an XML document with
all the info.
The problem is, that I can do this i... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
c# dll
Posted by ha at 6/1/2005 7:02:05 PM
please help me to create dll from a class in c#.net and use it in other class... more >>
CUSTOMVALIDATOR works but page goes on on FALSE
Posted by Jose Fernandez at 6/1/2005 5:05:06 PM
Hola
I have this customvalidator
<asp:CustomValidator id="ComboValidator" runat="server"
ErrorMessage="CustomValidator" /> (The OnServerValidate method is set in
Events windows of the Control Property)
THIS IS THE METHOD
private void ValidarCombo(object sender, ServerValidateEventArgs... more >>
System.Uri bug??
Posted by Jason Manfield at 6/1/2005 5:03:13 PM
I have the following URL:
http://citeseer.ist.psu.edu/rd/55811103,653,1,0.25,Download/http://citeseer.ist.psu.edu/cache/papers/cs/7145/http:zSzzSzwww.stanford.eduzSzclasszSzcs343zSzpszSzpathprof.pdf/ball96efficient.pdf
Creating System.Uri with the above URL:
Uri uri = new Uri(aboveURL)
re... more >>
'ref' question
Posted by Priyesh at 6/1/2005 4:55:08 PM
public class stringtemp
{
String k ;
public stringtemp(ref String inp)
{
k = inp ;
}
public void Change()
{
k = k.Remove(0, 1) ;
}
};
String stringtochange = new String("Hello".ToCharArray()) ;
stringtemp t = new stringtemp(ref stringtochange) ;
t.Ch... more >>
Free Blog software???
Posted by Maziar Aflatoun at 6/1/2005 4:26:31 PM
Hi everyone,
Does anyone know a free ASP/ASP.NET Blog software? I need to install it in
our company.
Thank you
Maz.
... more >>
Where does obselete attribute output?
Posted by Brett at 6/1/2005 3:52:57 PM
I'm using the following code above a method signature::
[Obsolete("Will be removed in near future.")]
I don't see where this outputs anything for the builds. I have looked at
the Task List window and selected to see "All" but the above comments do not
show. Nothing about it in the output w... more >>
Get Reference to a Specific Control in the Controls Collection
Posted by Jeffrey Todd at 6/1/2005 3:08:50 PM
I need to process a specific Control in a Web Page's Controls collection.
I do know the ID of the control.
I simply need to pass a reference to it to another method.
The following code works - but I suspect it's overly complicated for what
I'm trying to do. So, what is a simpler way to ge... more >>
add 'log on as batch job' privilege to user using C#??
Posted by Les Caudle at 6/1/2005 2:40:45 PM
If I am an running as an Administrator, how can I add 'log on as batch job'
privilege to another user (after first determining that he does not have this
privilege using C# code?
--
Thanks in advance, Les Caudle... more >>
Find closest matching name
Posted by Joe at 6/1/2005 2:27:29 PM
Hello all!
I need to display a list of names similar to a spell checker where the list
is the closest match to the name entered. Not too sure where to begin with
this - any suggestions?
Thanks,
Joe
... more >>
allowing http redirects??
Posted by Jason Manfield at 6/1/2005 1:36:03 PM
I am trying to crawl the web using the following code snippet.
HttpWebRequest req = (HttpWebRequest)WebRequest.Create(url);
req.UserAgent = "Mozilla/4.0 (compatible; MSIE 6.0; Win32)";
....
By default, the req.AllowAutoRedirect is true and
MaximumAutomaticRedirections is 50.
Whe... more >>
Serialization missing data
Posted by mdb at 6/1/2005 12:31:46 PM
I have a class (very simple int type data, as shown below) that I have
serialized to disk. In my next version of the program, I have added some
variables to that class. I'm expecting that this will break the
serialization when I try to load the object from disk.
I know there is something ... more >>
About unable to uninstall security policy package
Posted by david.kao NO[at]SPAM opco.com at 6/1/2005 12:18:02 PM
Hi All: I tried to uninstall a runtime security package from a user's
machine. Based on document I have read, all I need to do is right click on
MSI file, and choose uninstall from menu. After I chose uninstall, the
package seemed to uninstall itself. But when open .NET configuration 1.1, I
... more >>
Which ms technology for searching xml documents?
Posted by Julia at 6/1/2005 11:50:19 AM
Hi,
We have an ASP.NET site,and a data base which contains different types of
XML documents
I would like to ask which technology is best to use for searching XML
documents.
My concern is that a 'simple' search on the XML document can retrieve wrong
results
if the search will ignore the fact... more >>
Determine File Encoding
Posted by Marc Jennings at 6/1/2005 11:15:35 AM
Hi there,
Can anyone point out any really obvious flaws in the methodology below
to determine the likely encoding of a file, please? I know the number
of types of encoding is small, but that is only because the
possibilities I need to work with is a small list.
> private string determineF... more >>
Debugging win32 dll
Posted by Steve Long at 6/1/2005 10:43:30 AM
Hello,
I have developed a small win32 dll in C++ and exported a function from it
using a DEF file. I'm using the DllImport attribute to import this function.
I've tested the function in a vsc++ console app, (just the code not as a
dll), and it works as expected. However, I'm having some trouble ... more >>
Diff. between singleton class and static class
Posted by DBA at 6/1/2005 10:28:03 AM
Hi All,
What is the diff. between a singleton class and a static class in C#?... more >>
Duplicate Guid
Posted by Jay Douglas at 6/1/2005 10:06:34 AM
Does anybody know the odds of generating a duplicate guid?
--
Jay Douglas
http://jaydouglas.com
... more >>
Sybase connection form Visual.net C#
Posted by Chris Fox via .NET 247 at 6/1/2005 9:40:56 AM
I'm trying to access a Sybase database using Visual .net C#
using the code below.
I've added the Sybase data provider to the references (DDTek.Sybase)
and added them to the program usage. Howver it fails to connect and
gives an Unhandled exception of type "DDTek.Sybase.SybaseException' occured... more >>
using a C# class library in both COM and .NET code?
Posted by jason at 6/1/2005 9:14:12 AM
i have a C# class library full of objects.
the immediate need was to instantiate these objects in classic ASP, so
i inherit ServicedComponent and build the project with COM Interop set
to true. and the objects work in classic ASP just fine.
however, we are slowly introducing ASP.NET code, an... more >>
OT: Is there a component for a "hiding" toolbar?
Posted by Visual Systems AB (Martin Arvidsson) at 6/1/2005 9:09:50 AM
Hi!
When developing in the Studio IDE you can hide for example the property by
clicking the pin. The property sheet autohides when the mouse leaves the
area.
Is there such component for C#? Also, in wich you can place any other
component such a treeview for example?
Regards
Martin Arv... more >>
Is this correct (any other way)...
Posted by GTi at 6/1/2005 9:04:59 AM
I have a detailed view listbox with 4 colums.
I have found out a way to add rows, but is
this the correct way of doing this?
Where do I put a uniqe value to a row.
(listViewItem.Tag = UniqeRowID)
This is NOT the index number, but my own ID.
string[] s=new string[10]; // extra spare
s[0] = "... more >>
Returning complex data relationships from a stored procedure.
Posted by Peter Rilling at 6/1/2005 8:48:56 AM
To minimize database calls, I would like to have a single stored procedure
return all the data necessary to display on my page. This information is
related from several different tables and what I would like to do is to
match the information loaded into a DataSet with the information in the
dat... more >>
retrieve single values from typed DataSet - need help
Posted by Thomas at 6/1/2005 7:51:37 AM
Hi,
I used xsd.exe to generate a *.xsd file from the *.xml-File and then I
created a typed DataSet in VisualStudio 2003
But now I have problems to read the data from the DataSet.
<?xml version=3D"1.0" encoding=3D"UTF-8"?>
<Message id=3D"100199" version=3D"1.9" something=3D"1">
<Jobs id=... more >>
help with javascript
Posted by Newbie at 6/1/2005 7:26:10 AM
i need to use javascript in the following 2 situations but dont know how and
thanks in advance:
1. i have 2 textboxes and they usually contain the same information. when
the user starts entering data in the 1st textbox, the data should also appear
in the 2nd textbox. if needed, the user ca... more >>
check excel country code
Posted by Maik at 6/1/2005 6:44:02 AM
Hi everybody,
I want to automate an Excel97 application using C#. I use the excel8.olb
file as COM interface. How can I check the country code of the installed
Excel application? I know that there is a method
"LanguageSettings.get_LanguageID()", but it works with Excel XP.
regards,
Maik... more >>
Response.Write problem
Posted by Steven Blair at 6/1/2005 6:24:42 AM
Hi,
I am using C# and IIS for a application. I receive a request message,
process it then send a response back to my client. The problem I have,
when I call Response.Write the message sent to my client is a very large
message (I am guessing IIS adds it on).
Is there some way I send the data ... more >>
How to insert google page as data (xml)
Posted by oforia at 6/1/2005 6:20:12 AM
is there a way to insert a google page into my application and parse it into
xml without using the google api kit?
... more >>
How can I convert array into string object
Posted by to_rgoyal NO[at]SPAM yahoo.com at 6/1/2005 5:04:14 AM
Hi All,
I want to convert array into string. That is, I have one character
array with number of characters like :
arr[0]='0'
arr[1]='5'
arr[2]='/'
arr[3]='1'
arr[4]='2'
arr[5]='/'
arr[6]='2'
arr[7]='0'
arr[8]='0'
arr[9]='5'
Iwant to store these values into string object. So that it b... more >>
"How to create click event handler dynamically for each submenuitem"
Posted by Nikki at 6/1/2005 3:06:13 AM
Hi,
I m developing a Windows application in which i want to create a
context menu, having variable number of submenus depending on the the
list in the file. I m able to create these submenus at runtime by
reading the file. But the problem is that there is no fixed count of
submenus and becaz of... more >>
extend System.Net.Sockets.ProtocolType
Posted by centrino at 6/1/2005 2:40:09 AM
hi,
I want to extend System.Net.Sockets.ProtocolType to IPinIP protocol, how can
i do that.
Do i have to make new class or enum stuct for this type ?
regards... more >>
Greetings
Posted by news.microsoft.com at 6/1/2005 2:27:36 AM
Hello
How do we sort out a tab delimited file into an array ?
Say a user opies the contents of the tab delimited file into memory
(clipboard)
I want my app to put it into an array and carry out some operation.
Is there any code sample I could look at ?
Thanks
... more >>
vs2003 or vs2005
Posted by Martin D. at 6/1/2005 1:20:57 AM
Hello all,
I'm a complete newbie when it comes to programming and I want to start
learning C#. I was wondering if someone could tell me which one to start
learning. VS 2003 or VS 2005 beta2. How different are they?
Thanks in advance.
... more >>
.xsd and .xsx in C#
Posted by Eranga at 6/1/2005 12:56:28 AM
Hello all,
I have the following files;
webForm1.aspx.cs
webform1.aspx
a.xsd
a.xsx
a.cs
I want to refer the class a.cs from webForm1.aspx.cs .
But I dont know how to link them together .
Can some one plese help me here
Thanks in advance.
*** Sent via Developersdex http://www.develop... more >>
HtmlInputImage.Border
Posted by CodeRazor at 6/1/2005 12:28:02 AM
I am building my html page in .net. After i click a button, i want an
outline/border to appear around my button. I have found the
HtmlInputImage.Border property and although it prints out (border="5") in the
html when i view source, it fails to show anything in the browser. What am I
failing... more >>
dataGrid without DB
Posted by turin78 NO[at]SPAM mail.ru at 6/1/2005 12:27:09 AM
Hi. I have a question from newby in C#.
I want to use a dataGrid without any DB. Is it possible?
How to dispaly in dataGrid array of strings? How to add columns?
Maybe there is a Grid component available?
P.S. I use a MS Visual Studio.Net... more >>
Restarting wp_aspnet.exe
Posted by Calvin at 6/1/2005 12:00:00 AM
Apart from using task manager to kill the process... is there a way I can
restart my application?
It's for a website hosted on another server, to which I don't have admin
rights. I could always contact technical support perhaps, but thought that's
a lot of hassle.
Thanks
Calvin
... more >>
Multithreading
Posted by Tomaz Koritnik at 6/1/2005 12:00:00 AM
Hi
I want to synchronize two threads. One thread is doing some time-expensive
calculation and when it needs aditional data for calculation, it has to
acquire data from data object. The problem is that methods in data object
must execute in main thread. Because of this, I can't use Lock() or... more >>
C# Error handling
Posted by aaj at 6/1/2005 12:00:00 AM
Hi all
I have an automated application, that runs in the middle of the night.
If certain 'non system' errors occur (things like malformed files, missing
files etc..), I send an automatic Email and write a record to the database.
This is handled in a class.
When these errors occur, once Em... more >>
Transfer time estimate
Posted by Christophe F. [MS] at 6/1/2005 12:00:00 AM
Hello,
I'm looking for sample code in C# that will estimate the transfer time for a
file between two machines (taking into account bandwidth and latency).
--
Regards,
CF
... more >>
Database commit
Posted by Peter Kirk at 6/1/2005 12:00:00 AM
Hi there
when working with database connections in C# is there a concept of "auto
commit"?
For instance, if I obtain a database connection in java I can set the
auto-commit state to true or false. Is there something similar in C#, or how
do I handle this - do I always have to start and e... more >>
memory variable
Posted by Hrvoje Voda at 6/1/2005 12:00:00 AM
public bool Logon()
{
if (db!=null)
{
Login lg = new Login (db);
lg.ShowDialog ();
UserName = lg.UserName ;
DomainName = lg.DomainName ;
return true;
}
else
return false;
}
I'm using this code to get UserName and DomainName from a dialog.
It is a dll fil... more >>
System.StackOverflowException
Posted by Darryn at 6/1/2005 12:00:00 AM
hi,
How do i aviod the StackOverflowException? or how do i increase it's limits?
Regards
... more >>
Passing subclass as parameter
Posted by ToChina at 6/1/2005 12:00:00 AM
Hi, I have the following code:
class A
{
}
class B : A
{
}
and a method of another class which is like so:
void MethodName(ref A blah)
{
blah.Whatever = 0;
}
I'm calling the method with the subclass B:
B subclass = new B();
MethodName(ref subclass);
However, I'm gett... more >>
CopyLocal = true, compiler errors
Posted by Claire at 6/1/2005 12:00:00 AM
I have a project that uses TChart assembly. I don't think that the
assembly's the problem though.
If I compile in debug mode with CopyLocal set to true, the solution builds
perfectly.
In Release mode however, with CopyLocal property set to true, every mention
of the TeeChart components gives... more >>
|