| Compression Classes? (6 replies, VIP) |
| ASPFriends.com 'aspngcs' list |
| Are there any classes in the framework to do compression type tasks? I'm basically interested in zipping up files so that I can send one mail attachment rather than a bunch of different files (all dynamically of course). Thanks, Dan Get focused ASP.NET/XML articles and code: http://www.XMLforASP.NET http://www.xmlforasp.net/ XML http://www.amazon.com/exec/obidos/ASIN/0672320398/xmlforaspnetd 20/10... |
|
| static , serialization (3 replies, VIP) |
| ASPFriends.com 'aspngcs' list |
| Hi all. I have some basic question about C#. First question is about static variable. Is all static variable thread safe? Do I have to synchronize access to static or not? Second question is about serialization. There is 'transient' keyword in JAVA. It means that 'this variable does not support serialize.' For instance, transient is used for variable which save the reference of Thread instance. Ho... |
|
| send object (3 replies, VIP) |
| ASPFriends.com 'aspngcs' list |
| Moved from [aspsoap] to [aspngcs] by darthcarroll@asplists.com hi all i want to send object(method attr ) from server to another server using c# and call the method of object in the destnation thanks tarig Do You Yahoo!? Make a great connection at Yahoo! Personals. http://personals.yahoo.com |
|
| SMS SOURCE CODE (6 replies) |
| ASPFriends.com 'aspngcs' list |
| This message, which was originally sent to "aspngwebservices", has been moved to "aspngcs" mailing list by the List Master Hello I want to send & recieve SMS through C#.pls send me example or tutorial . i m waiting for ur reply junaidmajeed |
|
| Parameterless Constructor in Struct (6 replies) |
| ASPFriends.com 'aspngcs' list |
| Hello Everybody, Can anyone of you pls explain why this Parameterless Constructor is present with a struct implicitly. If this is 20 present, then the following code should assign 0 to x and y when the struct instance x is created. But, it is showing an error "Use of possibly unassigned variable x.x". If this error is shown then I can presume that the parameterless constructor is not called when a... |
|
| String Parsing (4 replies, VIP) |
| ASPFriends.com 'aspngcs' list |
| Hello all In C Sharp I want to parse the string "Home ^^ Sweet ^^ Home" with " ^^ " as the separator string I know I can build my own parsing function for doing this but before I do this Is there an easy way.? Thanks in advance. Dick Original Message From: "Sidhartha Aneja" sidharthaaneja@yahoo.com To: "aspngcs" aspngcs@ls.asplists.com Sent: Friday, August 17, 2001 5:48 PM Subject: [aspngcs] Re: D... |
|
| Inherit from System.ValueType (8 replies, VIP) |
| ASPFriends.com 'aspngcs' list |
| I have a need to provide a set of standard options for a control I'm working on. Currently it's using enums, but I'd really rather be able to a real datatype instead of just the enum's name and id. So I'm thinking something like System.Drawing.Color would be perfect. I can build my class just like this one, but I see that it is inheriting from ValueType, and since that seems to describe what I am ... |
|
| Page.IsValid problem (7 replies) |
| ASPFriends.com 'aspngcs' list |
| Is there a way to have a form that has 3 post back submit buttons but only one of them triggers the form validation. I have submit, edit and delete buttons and I want only the submit button to validate the form. How do I do this? tia, James James O'Reilly SynergyMedia, Inc. www.synergymedia.net |
|
| Code works differently between machines (2 replies, VIP) |
| ASPFriends.com 'aspngcs' list |
| The following code works just fine on my home machine (ASP.NET Beta 2 install from www.asp.net), but on my office machine (VS.NET Beta 2 install from Enterprise CDs), I get the error "System.ArgumentOutOfRangeException: Non negative number required. Parameter name: byteCount" on the sr.ReadToEnd() line (marked below). Thoughts? %@ Page Language "C#" % %@ Import Namespace "System.Net" % %@ Import N... |
|
| can I #include header files in C#? (12 replies) |
| ASPFriends.com 'aspngcs' list |
| I have 2 C# source files both want to use some constants. To avoid defining twice, I want to put const in header files like .h in C/C . Can anyone tell me how to achieve that? Thanks. |
|
| Stupid beginner C# question (2 replies) |
| ASPFriends.com 'aspngcs' list |
| Hi All, Now that i've fought through the brackets, case sensative things and basic un learning all the VB stuff i've learned. I get some error i can't explain! What is this mean? I'm trying to do a basic insert of data. Object must implement IConvertible. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information... |
|
| building hyperlinks in C# (2 replies) |
| ASPFriends.com 'aspngcs' list |
| Hi All, I've ventured into the C# jungle, one of the basic things I did in asp was build strings for hyperlinks. For example I have a select statement that brings back some data and some other data is in the querystring. I want to merge those together to make a hyperlink. I'm using templates and repeaters to write the data out. I wrote a custom function to to parse the data out of the Databinder.E... |
|
| Triggering a server-side Custom Validator on the click of an ImageButton control (2 replies) |
| ASPFriends.com 'aspngcs' list |
| Willeus Acuna, CEO HotBlue Software Solutions, Inc. www.hotblue.com How do I trigger server side custom validation at the click of an ImageButton control in C#? Just to test this out, I wrote the following function just below my Page Load function: void ValidateUsername (object source, ServerValidateEventArgs value) { try { // this code is supposed to check if the username is duplicate but have ch... |
|
| public struct int (14 replies) |
| ASPFriends.com 'aspngcs' list |
| Hello Everybody, The language specification is saying that the keyword "int" is only an alias to the "public struct int". By this, they are saying that they are achieved implementing everything as an object, even the primitive datatypes as object. Memory can be allocated to the struct with the new keyword alone. If the keyword is going to point to the struct int, then a int variable should be decl... |
|
| static void Main() (18 replies, VIP) |
| ASPFriends.com 'aspngcs' list |
| Hello Everybody, Can anyone of you pls tell me how the Main method declared as private is able to be called when the application is executed? With Regards, R. Sankara Narayanan. |
|
| optional method arguments (5 replies) |
| ASPFriends.com 'aspngcs' list |
| Simple question, What is the syntax for an optional argument in a function? Jake Hoffner |
|
| round a decimal up (4 replies) |
| ASPFriends.com 'aspngcs' list |
| Hi all, I have a decimal, a result of division on two other decimals, ie 2.2666666667 I really need to be able to round this up to 3 Any theories? Cheers Dot Net Guruhew |
|
| DS2XML (15 replies) |
| ASPFriends.com 'aspngcs' list |
| Hey All, trying to get a little XML Stream from a DS with C# this is what I have and it works great if I dump to a file but I would like to return it as a HUGE string of data. How might I make this possible? What would I have to do? public class Common { public static string GetXMLData() { SqlDataAdapter sqlDataAdapter1 new SqlDataAdapter("select * from authors",sqlConnection1); DataSet ds new Dat... |
|
| Regular Expressions in C# (3 replies, VIP) |
| ASPFriends.com 'aspngcs' list |
| I've got this regular expression in C#: Regex pair new Regex("(? face 1?[0 9JQKA])[CSHD][\\s\\w] \\k face [CSHD]"); And the code that retrieves the matches: mc pair.Matches(s); if (mc.Count 0) { foreach (Match m in mc) { retval " br PAIR: " m.Value; } } An example input would be: "3S 4C 4S 4D 5H 6C 6D JH QH QD" CURRENT OUTPUT... The above code returns: PAIR: 4C 4S 4D PAIR: 6C 6D PAIR: QH QD DESIRE... |
|
| How to do a Generic Cast ? (3 replies) |
| ASPFriends.com 'aspngcs' list |
| Hi people I have 2 data access classes A) objTheBase B) objAuthors derives from objTheBase Because the Update() method is in objAuthors class the following code UNFORTUNATELY has to cast back to objAuthors in order to do an update. objTheBase oBase; oBase new objAuthors(); oBase.doStuff(); oBase.doMoreStuff(); ((objAuthors)oBase).Update() I would like to replace the last line with a more generic l... |
|
| Array of arrays or multi-dimensional arrays (6 replies) |
| ASPFriends.com 'aspngcs' list |
| I have the following code which produces an ERROR "CS0178: Incorrectly structured array initializer" Boolean[][] myFlags new Boolean[4][13]; Why is this an error? The sample code at gotdotnet.com quickstart tutorial on arrays has this sample C# code: String[][] a new String[3][3]; a[0][0] "1"; a[1][0] "2"; a[2][0] "3"; What exactly am I doing wrong here? Also, are multi dimensional arrays allowed ... |
|
| Reflection, Proxies, and Remoting (2 replies) |
| ASPFriends.com 'aspngcs' list |
| Okay, I have a situation where I have the client server model. One server, multiple clients. At any time, the clients can be located in the same "room" and will both need to be able to interact with the same objects. I did some research on remoting, and that looked perfect. I could have all of my objects reside on the server, and let every client have a reference to the same objects, so none of th... |
|
| Bug in B2 in RequiredFieldValidator with multiline input (3 replies, VIP) |
| ASPFriends.com 'aspngcs' list |
| It appears that the RequiredFieldValidator will return false (Invalid) if the TextBox being Validated contains a NewLine (CRLF) character. The following .aspx code demonstrates the bug (code runs in both B1 and B2, B1 recognises that the field has a value even if it contains a newline character, Beta 2 does not). (Note this affects the Beta 2 (0818) ibuyspy portal Announcements module. The fix for... |
|
| What is Beta 2 equivalent of System.DateTime.Empty (2 replies) |
| ASPFriends.com 'aspngcs' list |
| I am converting some custom ibuyspy modules over to Beta 2 from Beta 1. In one edit page I use a Web Calendar control and was setting Cal1.SelectedDate DateTime.Empty; In Beta 2 Empty is not a member of DateTime, does anyone know what the Beta 2 equivalent is? THanks in advance, Brian Boyce Product Strategy Alphatec Software Ltd. Tel: 01908 363908 Mailto:BBoyce@Alphatec.net |
|
| What's Wrong? (2 replies) |
| ASPFriends.com 'aspngcs' list |
| What's wrong whith this code? protected void PagerButtonClick(Object Sender, EventArgs E) { string arg Sender.EventArgs; } Compiler Error Message: CS0117: 'object' does not contain a definition for 'EventArgs' This command EventArgs is in VB.Net. What the equivalente command in C#? |
|