ASPFriends.com 'aspngcs' list Archive - August 2002
Messages
Page: 1
Collection of Objects (4 replies)
ASPFriends.com 'aspngcs' list
I have two objects, let's say person and address. I want to allow person objects to have multiple addresses. What is the best way to accomplish this? I would think to create a collection of address objects that is exposed as a property of the person object. I'm thinking something like the following: Person Person null; Address Address null; Person new Person(); Person.Name "John Doe"; Person.Birth...
Good Tutorial (4 replies)
ASPFriends.com 'aspngcs' list
Moved from [aspngfreeforall] to [aspngcs] by Tim Musschoot Tim.musschoot@rug.ac.be [Please do not re direct to another list, thanks] I've asked this before, but someone re direct my Q to a list that I did not subscribe. And he did not reply for my request to sccop up those responses. Could you guys re sent your replies please? Thanks Q: Any good site for C#.Net tutorials for a beginner? Join the w...
anyone have any sample c# code to determine a sql server's resources? (2 replies)
ASPFriends.com 'aspngcs' list
Using a c# windows application, I need to only run a set of stored procedures on a sql server 2000 database if the sql server has enough resources to run it, meaning 1) ample memory 2) ample cpu 3) ample Latch time... 4) etc... Anyone have any sample c# code that can point me in the direction of querying these resources for there database server?
Sniff Platform with C# (4 replies)
ASPFriends.com 'aspngcs' list
Moved from [aspngclient] to [aspngcs] by Yannick Smits dotnet@stepcompany.com I am trying to do this: if (Request.Browser.Platform "Win") { //Do Something } And have it recognize anything with win in it. Same with Mac... How can I perform this Instring type function? Thanks.
Dynamic Multidimensional Array in C# (3 replies)
ASPFriends.com 'aspngcs' list
Copied from [aspngfreeforall] to [aspngcs] by Terri Morton tmorton@macdirect.com Hi I want dynamic multidimensional array in C#. In VB.Net its very easy to manage from "ReDim Preserve". How could I define dynamic multidimensional array in C#?. Thanx Sohail
Does anybody know how to write this code in C# (4 replies)
ASPFriends.com 'aspngcs' list
Does anybody know how to write this code in C# % Response.Buffer True Dim objXMLHTTP, xml 'Create & initialize the XMLHTTP object Set xml Server.CreateObject("Microsoft.XMLHTTP") sRemoteURL "https://www.eProcessingNetwork.Com/cgi bin/tdbe/transact.pl" 'Open the connection to the remote server xml.Open "POST", sRemoteURL, False 'Send the request to the eProcessingNetwork Transparent Database Engine...
combine compare statements (7 replies)
ASPFriends.com 'aspngcs' list
How would I write the following line in a more neat way? if ( myDataType "int" || myDataType "smallint" ) something like this pseudocode: if ( myDataType ("int" || "smallint") ) Thanks, Yannick Smits
COM Port Communications (2 replies)
ASPFriends.com 'aspngcs' list
Does anyone have an alternative to SerialStream.cs that would allow communications with a COM port. More importantly a modem. Jaison Green Hunt Interactive 425*746*7880
Get object by Id (5 replies)
ASPFriends.com 'aspngcs' list
I have the Id of an object(a DropDownList web control) as a string of course and I want to get the object based on this Id. Is there a way to do this in C#?
Breaking out of foreach loop (4 replies)
ASPFriends.com 'aspngcs' list
How does exit a foreach loop? Similar to an 'End For' in VB? thanks
Integer to Hex (5 replies)
ASPFriends.com 'aspngcs' list
is there anything in C# that is equivalent to VB.NET Hex() function that converts from an integer, long, short, byte to a string representing the hex equivalent of that number? Wally
Adding Dynamic Events to a CheckBox (5 replies)
ASPFriends.com 'aspngcs' list
I am trying to generate numerous checkboxes on a page and wire them all up to one function. Here is the code I use to create the CheckBoxes. When I uncomment the line of code for the Init Event that fires when the Checkbox is created, but the CheckedChanged Event does not fire off. What am I missing? private CheckBox GetDeleteBox(string tableid) { tempCK new CheckBox(); tempCK.ID "Delete " tableid...
cnt = ( cnt + 1 ) % 15 (5 replies)
ASPFriends.com 'aspngcs' list
Hi, there, in C#, if cnt 1; what is "cnt ( cnt 1 ) % 15", I meaned, in the following method. private void time1 Tick(object sender, EventArgs e) { cnt ( cnt 1 ) % 15; } Thanks.
Defing an Enum in C# (5 replies)
ASPFriends.com 'aspngcs' list
Moved from [aspngfreeforall] to [aspngcs] by Victor Von Doom doctordoom@aspelite.com We're stumped. We'd like to create an enumeration like MS does with SqlOleDbType but for cursor types (in this case). We would like to be able to write this: Public CursorType Cursor { set {m cursorType value;} get {return m cursorType;} } Where CursorType is defined as: enum CursorType : int { wait 1, arrow 2, cr...
Defining and using structures within class (2 replies)
ASPFriends.com 'aspngcs' list
Moved from [aspngdatagridrepeaterdatalist] to [aspngcs] by Victor Von Doom doctordoom@aspelite.com Hi All : Is this the best method by which I can define and used structures within classes. The way I do it this way is that I want to modularise my code by restricting access to this data structure to users of this class. Is there another way to do it ??? Should I initialise the class beforehand or i...
what datatype to use for a SQL GUID? (3 replies)
ASPFriends.com 'aspngcs' list
What C# data type should I use for a SQL GUID? Thanks, Francesco
How to define multiple indexers for single class or struct (that is two or more arrays) (2 replies)
ASPFriends.com 'aspngcs' list
Moved from [aspngdatagridrepeaterdatalist] to [aspngcs] by Tim Tim.Musschoot@rug.ac.be To define an indexer to a struct or class we do the following : public struct MyStruct { public string []data; public string this[int index] { get {return data[index];} set {data[index] value;} } public void click(Object sender, EventArgs e) { MyStruct ms new MyStruct(); ms.data new string[5]; ms[0] "Hello"; ......
IsNumeric in C# (6 replies)
ASPFriends.com 'aspngcs' list
Hello What is the most direct method of determining whether or not a string is a numeric value? What about other data types. I've been doing it with try catch blocks and the Convert object. Is there a better way? Regards Eric
datatype for SQL Guid question (5 replies)
ASPFriends.com 'aspngcs' list
I tried: System.Data.SqlTypes.SqlGuid o "5E08246E 39C9 11D5 A9DA 00B0D0202075"; but got compile error: Cannot convert type String to 'System.Data.SystemTypes.SqlGuid' Thanks, Francesco
Ad


Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification