all groups > c# > march 2008 > threads for tuesday march 25
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
determining the log-on
Posted by Ned White at 3/25/2008 11:48:26 PM
Hi,
There is a LoginView control on my aspx page and the users will use this
control to login and i will check the some cookies when the user logged on.
But i can not find any events for LoginView control if user successfully
logged on or not ..
Is it poosibe to determine the successfully... more >>
Specifying the Linq to SQL dbml connection at runtime
Posted by TJ at 3/25/2008 10:41:25 PM
For an ASP.NET C# application is it possible to set the Connection
property of a Linq to SQL dbml class at runtime, such as in the
global.asax class.
I know I can always specify a connection string when forming a query,
i.e DALDataContext dc = new DALDataContext(connectionstring); but when
I ... more >>
Best way to load a TreeView?
Posted by David Veeneman at 3/25/2008 7:09:36 PM
What's the best way to load a TreeView control from a database?
Here is my scenario: I have a TreeView that represents a Table of Contents.
The TOC has an arbitrary number of branches, and each branch has an
arbitrary depth. I am reading the TOC from a SQL Server database.
I describe below... more >>
Form
Posted by Tony Johansson at 3/25/2008 6:13:04 PM
Hello!
Here is an easy question I just wonder if it's possible to say that a Form
is a control like TextBox for example.
//Tony
... more >>
How can i connect LDAP and query AD to authorize Domain User Name and Password?
Posted by Hughs Man at 3/25/2008 5:24:50 PM
I want to develop a C# Web Base Logon to connect a Novell LDAP Server with
SSL and then authorize the AD Domain User Name and Password
I have written the following source code to make a connection to Novell LDAP
Server, but i do not know how to authorize AD User Name and Password. And
c... more >>
FileUpload size limits
Posted by Parrot at 3/25/2008 4:25:00 PM
I get the message "Not enough space for the file on this disk" whenever I try
to upload a jpg file using the FileUpload member in my web based C# program.
I increased the requestMaximum file size set to 8192K in the httpruntime
parameter in my web.config file and the file I am trying to uploa... more >>
Framework 3.5 and Windows 2000
Posted by J-L at 3/25/2008 3:09:51 PM
Hi,
Is Windows 2000 compatible with .net Framework 3.5 please ?
Jean-Luc !
... more >>
unboxing problem
Posted by tshad at 3/25/2008 2:42:13 PM
I am trying to test if my object is a TextBox and I tried:
if (messageOut is TextBox)
But I get an error message:
The type or namespace name 'TextBox' could not be found (are you missing a
using directive or an assembly reference?)
What would I be missing?
Thanks,
Tom
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Service terminating silently
Posted by Jon Skeet [C# MVP] at 3/25/2008 2:37:35 PM
Thought I'd throw this out and see if anyone's seen anything similar.
I have a Windows service written in C#, which occasionally stops
silently. The process goes away, Windows notices and shows it as
unstarted in the service control manager.
This always happens (as far as we've seen) after... more >>
RSA and Public Private key
Posted by Dave at 3/25/2008 2:19:01 PM
I have a project where I need to generate a file and then send it with a
supplied public key. I've done the file generation, now I'm trying to do the
encryption. It looks like I can use RSA, specifically
RSACryptoServiceProvider. The problem is that the public key is supposed to
use Version:... more >>
Ending a program while in Form_Load
Posted by Dom at 3/25/2008 2:09:52 PM
How do I end a program while in Form_Load? I tried both this.Close(),
and Application.Exit(), but neither will just end the program there
and then. Instead, both allow Form_Load to continue.... more >>
getting Page.User
Posted by Ned White at 3/25/2008 1:15:31 PM
Hi All,
In C# web projects , i can get some current user info with
"this.Page.User.Identity" in aspx pages and can use them like that;
this.Page.User.Identity.IsAuthenticated
this.Page.User.Identity.Name
etc.
But in a separate .cs class file how can i get this current user info ?
which ... more >>
calling WCF service methods from JavaScript in another domain?
Posted by jake at 3/25/2008 12:54:33 PM
Can someone please give me an example on how to call a wcf method that
resides on a different domain from JavaScript (not from C#/asp.net)?
All the examples that I have seen show how to call from the same
domain.
I don't care what the binding is. I'll use what works.
I need concrete examples o... more >>
Convert a int[] to a double[]
Posted by AMP at 3/25/2008 12:34:12 PM
Hello,
I am passing a int[] to a function that only takes a double[]
private double[] GraphData;
public Form3(int[] OurData)
{
GraphData = OurData;
foreach (int x in GraphData)
{
System.Convert.ToDouble(x);
... more >>
c#3.0 and delegate question
Posted by CSharper at 3/25/2008 12:10:52 PM
I have a callback method where I am going to update GUI with a status.
In C#2.0 I can do the following
if (this.InvokeRequired)
{
//Do invoke
}
else
{
//display message
}
In 3.0 I can not find the InvokeRequired. Is there something changed
in it?
Thanks.... more >>
Array of Classes with user-defined constructor with parameters
Posted by amir at 3/25/2008 11:58:04 AM
Is there a way to declare and use an array of classes using a constructor
that takes parameters i.e.
class something
{
int var1;
double var2;
something(int var, double variable)
{
var1 = var; var2 = variable
}
something()
{
var1 = 0; var2 = 0.00;
}
}
... more >>
LINQ and MS Access
Posted by Neil B at 3/25/2008 11:12:04 AM
I've JUST move to Vista, VS 2008, C# from XP, VS.net 2002, VB & C++ so I'm on
a steep learning curve.
I'm currently developing a C# Web App project in VS 2008. I need to query an
existing MS Access data base. I thought LINQ would be the way to go.
Can you suggest a good example of C#, LI... more >>
Read a file ang extract strings
Posted by J-L at 3/25/2008 10:45:25 AM
Hi,
I need to read a file like this:
# Messages français pour GNU gettext.
# Copyright © 2006 Yoyodyne, Inc.
# Michel Robitaille <robitail@IRO.UMontreal.CA>, 2006.
# Christophe Combelles <ccomb@free.fr>, 2006
#
msgid ""
msgstr ""
"Project-Id-Version: GNU hello-pascal 0.15-pre5\n"
"Repo... more >>
Testing Local Connection / Internet Connection
Posted by Bsmengen at 3/25/2008 10:03:01 AM
I am trying to make sure that the local connection is up. I have presently
been using the NetworkChange.NetworkAvailabilityChanged Event for this. Is
there a better way to do this?
Also, I want to test to see if the Internet Connection is up. I need the
Internet to be up for the Web Serv... more >>
I need to install a COMPILED windows service .exe
Posted by Rogelio at 3/25/2008 9:24:03 AM
here's my problem: I have an obfuscated, compiled .exe , that is a windows
service, and I need it to install using a setup project. since its already
compiled, I can't just go to "custom actions" and add primary output from the
service. my setup project doesnt see it. so how the heck do I do i... more >>
Tooltips
Posted by ReneMarxis at 3/25/2008 8:57:38 AM
Hello
i am havin problems with tooltips.
I have one very simple Form with just 2 Textbox. One having an Tooltip
one not.
I can see the tooltip as long as the one textbox that has the tooltip
did not have the focus. If clicked once the tooltip will not show up
any more.
Is this normal?
... more >>
C# set algorithm
Posted by AstroDrabb at 3/25/2008 8:04:02 AM
Does anyone have any tips on creating an efficient set algorithm?
I have the following set {a, b, c, d, e}.
I need to combine them in all possible ways:
a
ab
ac
ad
ae
abc
b
bc
bd
be
....
ace
....
Get the picture?
Thanks for any help. Note, the combinations need to be uniqu... more >>
Quickly Finding Items by multiple indicies
Posted by jehugaleahsa@gmail.com at 3/25/2008 7:32:32 AM
Hello:
This is probably more of an algorithms question than a C# question.
We have these classes that represent lines on a report. They contain
two field:
1) Line Print - A String that indicates the type of line and ordered
lexicographically.
2) ModCode - A String that indicates that a s... more >>
Regular expressions
Posted by Darwin at 3/25/2008 7:28:33 AM
Hi,
I am trying to extract the host name from a HTTP header:
GET /1/1/typical.php HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/x-shockwave-flash, */*
Referer: http://www.httphost.com/1/1/
Accept-Language: en-us
UA-CPU: x86
Accept-Encoding: gzip, deflate
... more >>
simple linq question!
Posted by CSharper at 3/25/2008 7:15:41 AM
This may be a dump question, so please bear with me. I have an xml
file like the following
<teacher>
<name>jkjk</name>
<phone>122</phone>
</teacher>
<student>
....
</student>
<student>
....
</student>
etc.,
In this I have one node with teacher and all the other nodes are
studen... more >>
Using/converting legacy structs from a stream
Posted by SethInMI at 3/25/2008 6:45:01 AM
I am a total newb at .net, and I have not been able to search out a best
practice answer to what must be a common problem.
My app must process binary data from a UDP socket, a MSMQ queue and a file.
In C, the data is in nested structs, with mixed types, floats, ints, char
arrays, int array... more >>
Return two values from a method
Posted by CSharper at 3/25/2008 6:28:13 AM
Is it possible to return two string values from a method which has
yeild in it?... more >>
Interface - Descriptions for Methods/Properties
Posted by Kbalz at 3/25/2008 5:20:12 AM
I've built an interface for my class library. When I add this dll to a
new .NET project, and create an instance of my class, I do not see the
description (like in the intellisense) for my properties and methods.
/////////////////////////////////////////////////////
// Here is my class before... more >>
Implementing a queue in a wrapper class --- please help...
Posted by almurph@altavista.com at 3/25/2008 4:51:43 AM
Hi,
I'm using ASP.NET 2.0 and have to implement a queue object. That's no
problem - its just:
Queue myQueue<object> = new Queue<object>();
The thing is though - I want to make this queue available through a
wrapper class (so its available to everything) but I dont know how to
do this.... more >>
Invoke in C#
Posted by C2J at 3/25/2008 2:15:01 AM
I have a problem to understand and use invoke in C#.
I have a function in C. I need to use it in my new software (C#).
This is the function :
int StrToParameters( char **pCmde, char *pFormat, ... ) ;
This is how I call it in C or C++:
char[] Cmde = "X=150 Y=200";
char[] Format ... more >>
multi-threaded request counter
Posted by Peter at 3/25/2008 2:10:01 AM
Hi
In a multi-threaded application I need to keep track of request-counts
for various "users". That is, when a user makes a request to my
application I need to increment a counter to track the number of times
the user has made a request.
But a "user" is more than a single entity, and the sa... more >>
using attributes in C#
Posted by raju at 3/25/2008 1:14:14 AM
Hai,
I am new to Attributes in C#.
can anybody, explain how to use already created attributes in its
child class.
Thanks and Regards,
Raj.... more >>
Saving image in picbox
Posted by vicky87.eie@gmail.com at 3/25/2008 12:22:42 AM
I used a picture box to draw lines and rectangle using its graphics
object in paint event. Now i need to save those lines i have drawn and
print them. I need to know how to save them. I tried image.save. But i
didn't work...... more >>
|