all groups > c# > january 2007 > threads for monday january 29
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 31
check record and then run second query to display in data grid
Posted by mamun at 1/29/2007 10:25:34 PM
Hi All,
I am doing it for the first time in C# (using Visual Studio 2005),
First I need to check if data exists in a table for a variable. If so
then run the second query and display the resultsets in Gridview.
For ex., in the form I am entering contract id and running the query
for tha... more >>
how to use active directory in .net
Posted by psycho at 1/29/2007 8:42:40 PM
i am developing a windows application using .net and need to query
active directoy for :
1. the listing of all the users.
2. provide rights to the user depending on the roles.
so suggest me any internet resources and books that deal specifically
with active directory and .net
... more >>
Writing into a text file
Posted by Bob at 1/29/2007 7:28:42 PM
Hi,
I have an existing ASCII file.
I need to search for a value in the file and then replace the value by
another one.
Is this possible or do i have to re-write the whole file ?
Thanks.
... more >>
Advice on what language to learn VB or C# (and 1.1 vs 3.0)
Posted by Adrian B at 1/29/2007 5:38:00 PM
Hi - sorry if this is not the best place to post, but need advice and would
appreciate some thoughts.
I inherited a boxed set MCAD self-study course which I am about to launch
into. The course is based on VB.NET. I have never programmed in VB or C#, but
have worked with some Java derivative... more >>
best way to debug a dll in c# free edition
Posted by Peted at 1/29/2007 5:22:48 PM
Hello,
im producing an aplication in 2 parts.
1. is the main exe runtime of the application that is a mdi form with
controls
2. the second part is a dll that essential is made up of form classes
the main exe is designed to load the dll from a directory, and creat
new instances of t... more >>
regular expression
Posted by JJ at 1/29/2007 5:21:58 PM
I need the data passed in from the textbox to be either ^([0-9]{1,5}\s)+ or
empty string.
How do i incorporate empty string requirement into the regular expression?
Thanks
... more >>
How to audit application actions.
Posted by Frank Rizzo at 1/29/2007 5:16:32 PM
I have a c# 2.0 winform app that runs under a user account with very
limited rights. The application crashes on some actions (the Send Error
to Microsoft screen) with unauthorized exception.
This is despite the fact that I have try catch blocks around pretty much
absolutely everything. ... more >>
Can a Web Servive send it's status to a client?
Posted by Ethan Strauss at 1/29/2007 4:13:32 PM
Hi,
I have a web service which is doing a lot of processing and taking 4-5
minutes to do so. The processing is split into several discrete steps and I
would like for the service to be able to tell the client when it is done
with each step.
I have tried to do this in a couple of ways and ... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Where is the Team Explorer downloade?
Posted by Ronald S. Cook at 1/29/2007 3:49:26 PM
Does anyone know where I can download Team Explorer?
Thanks,
Ron
... more >>
Any non commercial statisticss library?
Posted by Jens Jensen at 1/29/2007 3:26:58 PM
Hello,
I'm looking for a .Net statistics library that have at least regression
analysis.
Any comment will be highly appreciated.
Thanks
JJ
... more >>
Tracking login...
Posted by Joe at 1/29/2007 2:50:00 PM
I am trying to write my first WebApp and I have the basics
working. However I am having trouble with one concept.
Tracking the user throughout the application.
So, I have the code working underneath, but am making
calls to modify objects that require a login. So, once
the person passes thei... more >>
Can't build my app, VS says files are in use by another process
Posted by sklett at 1/29/2007 2:32:56 PM
I've rebooted and I'm still getting the errors:
Error 13 Could not write to output file
'C:\PMDRepository\Tools\PMDManfStudio\Services\obj\Debug\Services.dll' --
'The process cannot access the file because it is being used by another
process. ' Services
Anyone here experienced this before... more >>
Smart Slicing Routine!!
Posted by Vai2000 at 1/29/2007 2:02:48 PM
Hi All, I need some smart way to accomplish this task in C# (.net 1.0)
Appreciate your inputs!!
==================================
Input ArrayList:
2,3,4,20
1,2,2
2
2,2,2
1,2,3,4
1,1
null
expected oututs:
Bundle Count=1 and the bundle will contain 2,3,4,20
Bundle Count=3 Bundle#1 wi... more >>
Customer Membership Provider Issues
Posted by Zeb at 1/29/2007 1:32:21 PM
Hi all.
If anyone could offer any help with this, it would really be
appreciated.
I've written a custom membership provider which works with tables in
my ms sql database. This works great locally, but as soon as I run the
site on the live (shared) server, I get the following error messag... more >>
Sorting Directories
Posted by Cable at 1/29/2007 1:22:40 PM
Hi,
I've got a simple:
DirectoryInfo[] dis = d.GetDirectories();
foreach (DirectoryInfo di in dis)
The trouble is I can't find a way to sort or order the directoryinfo[]
array, I've found a way of doing it for files, but for some reason you
can't do the same to directoryinfo.
coul... more >>
STRANGE PROBLEM
Posted by at 1/29/2007 1:04:27 PM
Im getting that error (It is strange. I Run my programme step by step
pressing f11. im looping SqlCommand in a while loop. The First step runs but
when a enter 2nd step in my loop it returns error ? )
any idea ?
System.Data.SqlClient.SqlException: Procedure or function sp_adduser has
too ... more >>
Passivating a workflow
Posted by Urs at 1/29/2007 12:56:21 PM
Hi
What happens to workflow references to objects outside the workflow class
instance, when passivating a workflow, having SqkWorkflowPersistenceService
enabled?
Example: Let's say my workflow holds a reference to a class instance in the
host. A workflow is waiting for a few days. In the... more >>
General Opinion on a how to?
Posted by Daniel at 1/29/2007 12:48:41 PM
Hi guys
I have a requirment to calculate a prize pool for a competiton similar to a
poker tournament. But i am stuck on best ways or even if i have the right
ideas, so:
Players pay to play, total paid is prize pool and is distributed to top 3 or
so winners.
Variables are number of pla... more >>
Dynamic string format specifier
Posted by Ronnie Smith at 1/29/2007 12:09:00 PM
Hello,
I would like to be able to accept a format string in the form of say {0:D2}
as an input from a dialog box, and then dynamically format the output string
based on this new format specifier.
So if I have something like this in my code:
String.Format("The number will look like this {0... more >>
Slicing Routine!
Posted by Vai2000 at 1/29/2007 11:12:02 AM
Hi All, I am looking for a smart solution to accomplish this task (.net 1.0)
Appreciate your input
I have a group of numbers in an arrayList
2,3,5,2,1,2,2
I need to output them into groups of
2,3,5
2
1
2
2
basically whenever I encounter 1 or 2 I bundle them up..
The numbers are in... more >>
Searching a Specific OU...
Posted by Joe at 1/29/2007 11:08:01 AM
I have some code that works great, however it returns all
Groups within AD, but I only need it to return Groups that
are in a Specific OU.
I tried setting a filter on the search to that OU's DN, but then
it only returned that DN.
What's the best way using what I currently have?
Here's ... more >>
Enum type from one of its members
Posted by Paul E Collins at 1/29/2007 10:27:11 AM
How can I get the type of an enum given one of its members?
object memb = MyEnum.SomeValue;
Type parent = SOMETHING(memb);
Afterwards, the 'parent' variable should hold typeof(MyEnum).
Eq.
... more >>
Best way to fire event
Posted by sjoshi at 1/29/2007 9:20:52 AM
I have a derived class OraBackup which has a method that calls stored
procedure on Oracledb to get status of backup job.
Now the base class publishes an event like this:
public delegate void PercentEventHandler(object sender,
JobCompletedEventArgs e);
public event PercentEventHandler Perc... more >>
C# certification exam?
Posted by chandu at 1/29/2007 9:18:07 AM
Hello,
i am preparing for the C# certification(MCTS) 70-536 exam.i bought two
prescribed books and using internet resource.
can any one have C# dump or any material regarding please send to my id
chandu2424@gmail.com
thanku in advance.
chandu
... more >>
If not CAB, then what?
Posted by Ronald S. Cook at 1/29/2007 9:13:32 AM
I want to design/develop a Win app with an Outlook-like feel. That is, lots
of different modules. If I don't go with Composite UI Application Block
(CAB) design, how else could I do it? In other words, what could allow for
"master/parent" functions without having to duplicate them to every ... more >>
WinAPI constant search for C#
Posted by Sin Jeong-hun at 1/29/2007 8:37:05 AM
Often, I need to call Windows APIs in C#. Signatures and macro
constants can be easily found at MSDN but the constants values are not
shown. I have to search the .h file for those constants values. Is
there any online site that I can search real values for WinAPI
constatns such as PBM_SETSTA... more >>
Custom login control question
Posted by Hayden Kirk at 1/29/2007 8:36:39 AM
Hi Guys,
I was just wondering if someone can point me in the right direction to find
information on how to store extra attributes in the sql database instead of
the app.config?
As of now, you create custom attributes and it gets quite messey if you add
alot of them, so I wish to make a s... more >>
Program execution question - need guidance
Posted by Chris Dunaway at 1/29/2007 8:14:39 AM
I have written a Windows Forms application in C# that is designed to
be run from a network share. The person who normally uses it will
access the program from her workstation. I have granted trust on her
workstation to the application and she can execute and use the
application just fine o... more >>
Events and threads ... whose thread am I on anyway?
Posted by DaTurk at 1/29/2007 7:41:16 AM
Here's a quick question, say I have a class with a main routine, we'll
just call it main.
Main is on the "main" thread.
Now lets have main creat an instance of another class, which creates a
thread, and has it do some
calculation, and on completion calls an event which main has += on.
... more >>
TextBox Question
Posted by Jeff Williams at 1/29/2007 7:06:53 AM
Is there a way I can place a Mask on a TextBox input so that say only
numbers from 0 to 9 can be entered.
Regards
Jeff... more >>
formview and dropdownlist
Posted by andy at 1/29/2007 4:27:51 AM
I have a set of maintenance forms which represent a parent child
relationship.
In the parent form you can set a value 1 to 5.
Say the user chooses 3.
In the child form the user should only get to choos from 1, 2 or 3 in
a dropdownlist.
This is within a formview.
If I declaratively add items... more >>
Dynamic cast with generics
Posted by Néstor Sánchez at 1/29/2007 3:03:03 AM
Hi,
i'm trying to solve the next problem ...
public class BaseType {...}
public class DerivedType : BaseType { ... }
public abstract class BaseClass
{
public abstract Type getGenericType();
}
public class DerivedClass<TheType> : BaseClass where TheType : BaseType
{
public ove... more >>
compile csharp file
Posted by kalaivanan at 1/29/2007 2:45:49 AM
hi,
how should i compile csharp programs in the cmd command prompt without
being installing visual studio .net. I have installed framework 1.1
and sdk. also i have executed the vsvars32 btach file. still iam not
able to compile the csharp file. the error generated is:
csc is not recognized... more >>
Get handle from System.IO.SerialPort
Posted by Kristoffer Persson at 1/29/2007 2:21:01 AM
Does anyone know if it's possible to get the Win32 handle to the serial port
used under the hood in System.IO.SerialPort?
The reason I want it is so I'd be able to make changes the DCB struct. I
want to set the fRtsControl to RTS_CONTROL_TOGGLE so the RTS signal will be
reset automatically ... more >>
|