all groups > c# > july 2007 > threads for saturday july 14
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
MemberShip, User, Roles.. is there a smarter way?
Posted by Nightcrawler at 7/14/2007 9:53:00 PM
I am currently using the built in membership functionality with
asp.net 2.0. I currently have set the web.config to only store
registered users in the database. I don't want to polute the
aspnet_Users with anonymous users.
When a user gets to one of my aspx pages I would like to find out if
t... more >>
a Mod b
Posted by Keeper at 7/14/2007 5:53:49 PM
a Mod b = ?? in C#
... more >>
Serializing from XML with remote DTD
Posted by Nathan Baker at 7/14/2007 5:30:55 PM
Hey,
I have an XML file which I am serializing into a class using the
following code:
//
XmlSerializer s = new XmlSerializer(typeof(edition));
StreamReader r = new StreamReader(ConfigFileName);
XmlReaderSettings xrs = new XmlReaderSettings();
xrs.ProhibitDtd = false;
xrs.ValidationType = V... more >>
Delegate Failure after Migration to .NET 2.0 - Vista
Posted by VictorG at 7/14/2007 3:53:22 PM
Hello,
I am converting a C# .NET 1.1 based system to .NET 2.0. I am
encountering a socket exception with delegate events. The system uses
an NT service as a remoting host that provides services that desktop
applications consume.
Exception Message:
SocketException : No connection could be... more >>
Convert textbox value to a short:
Posted by MarkusJNZ NO[at]SPAM gmail.com at 7/14/2007 3:02:29 PM
Hi, I have a textbox in an asp.net app and all I want to do is store
the value of the textbox in a short if there is a value in the text
box;
I came up with the following (Where txtID is a asp.net textbox
control)
short ID = (txtID.Text != string.Empty ? short.Parse(txtID.Text) : 0);
But... more >>
Saving Custom Data
Posted by Jonathan Wood at 7/14/2007 12:12:28 PM
In the past, using either C++ or VB (classic), I routinely stored records of
data as an array of structures, and then simply read and wrote them to and
from a file using basic file operations.
So now I'd like to do something similar with my first .NET application but I
really don't know whe... more >>
Example of TYPED INTERFACE ?
Posted by pamela fluente at 7/14/2007 11:51:45 AM
I am using extensively typed classes.
Now I would also need typed interfaces. Is it possible to define an
interface with a couple of types?
Do you have an example ? (a 3-line example would be fine).
Thank you,
-P
... more >>
debugging IComparer exceptions
Posted by anonimo1 NO[at]SPAM hotpop.com at 7/14/2007 10:52:55 AM
Hello,
I'm very often in troubles debugging an ArrayList.Sort() method. I'm
so often getting this error:
"An unhandled exception of type 'System.InvalidOperationException'
occurred in mscorlib.dll
Additional information: Specified IComparer threw an exception."
and the call stack point... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
AppDomains and Assemblies
Posted by Fred Mertz at 7/14/2007 10:51:39 AM
I'm working towards an MCTS cert and I'm having to learn a bunch of stuff
that I doubt I'd stumble across on my own. One such feature of .NET is
AppDomains; programatically creating new AppDomains and programmatically
loading/unloading assemblies in them.
Question:
What are some scenarios ... more >>
opening more than once
Posted by at 7/14/2007 2:24:50 AM
Hi, Ive created an application and published it. Id like to be able to
open more than one instance of the application. When opend once, runs
perfect. When opening another, now having two open, runs for a short
period, then crashes. Is there some coding Im supposed to add to be
able to open more ... more >>
C# COM entry point function
Posted by George at 7/14/2007 1:02:02 AM
Hello everyone,
I am a developer from C++ COM to C# COM. I feel confused about the entry
point function for a C# COM object.
In C++, we always initialize object through GetClassObject or
DLLGetClassObject, but it seems C# does not need these functions?
Here is a sample from MSDN.
h... more >>
Display enum in ComboBox with spaces
Posted by Gerrit at 7/14/2007 12:00:00 AM
Hello,
I have an enum, example:
enum MyEnum
{
My_Value_1,
My_Value_2
}
With :
comboBox1.DataSource = Enum.GetValues(typeof(MyEnum));
I fill the ComboBox Items and with
DataGridViewComboBoxColumn col =
(DataGridViewComboBoxColumn)dataGridView1.Columns[0];
col.DataSour... more >>
|