| Format as Currency (2 replies) |
| ASPFriends.com 'aspngcs' list |
| Can someone tell me if there is a quick way to display a long in Currency format. Original Message From: Adnan Qamar [mailto:AQamar@ssi.com.pk] Sent: Friday, March 01, 2002 12:30 AM To: aspngcs Subject: [aspngcs] "is like" Can I know if is like is valid for other data types & reference types ? | [aspngcs] member jnorman@creditunions.com YOUR ID | http://www.asplists.com/asplists/aspngcs.asp JOIN/Q... |
|
| Collections (10 replies) |
| ASPFriends.com 'aspngcs' list |
| Can someone point me to a tutorial on Collections? I have a table Class and a Column Class, and I want to build and use a collection of ColumnClasses in the table class. Thanks Bill |
|
| Trying to understand singleton (4 replies) |
| ASPFriends.com 'aspngcs' list |
| Hello, Can anyone explain and/or give a simple example why the following code will work to create only one instance of an object? // .NET Singleton sealed class Singleton { private Singleton() {} public static readonly Singleton Instance new Singleton(); } Terry Voss Developer/Owner Computer Consulting Microsoft Certified Partner http://www.computer consulting.com http://www.computer consulting.co... |
|
| Hot to create global variables in C# (3 replies) |
| ASPFriends.com 'aspngcs' list |
| How to do global variables? In case I need to work with collection of the objects, I will load objects from DB (when Im initializing apps), and then I need access this objects from any point of my application. I dont want to open DB and fill collection each time I want to work with (it takes a lot of time). Thanks mendys@bde.cz |
|
| ListView and selected item (2 replies) |
| ASPFriends.com 'aspngcs' list |
| How to get index or object of currently selected ListViewItem, when it is changed? Thanks |
|
| use VISIO in ASP.Net, and C# (2 replies, VIP) |
| ASPFriends.com 'aspngcs' list |
| Hi, In my webapplication I have setup a frameset : frame name "top" src "Drawing1.vsd" frame name "bottom" src "MyApp.aspx" src "Drawing1.vsd" will start a Visio in a frame... I want to change and update this Drawning1.vsd in my web application: using System; using System.Runtime.InteropServices; using Visio; Type typVisioApp typeof(Visio.Application); //System.Diagnostics.Process.Start("D:/Progra... |
|
| stringbuilder and carriange return (6 replies) |
| ASPFriends.com 'aspngcs' list |
| how do u put a carriage return in stringbuilder? previously I would use vbCrlf in classic ASP |
|
| benifits of static? (5 replies) |
| ASPFriends.com 'aspngcs' list |
| What are the benifits of making a member of a class STATIC? I realize that you don't have to create a instance of a class, and thus making a member static will prevent possible concurrency issues also. what else? |
|
| file locking (6 replies) |
| ASPFriends.com 'aspngcs' list |
| Does anyone know of a good reference for writing to a file? I'm doing some logging that will have multiple threads writing to it and I'm having file locking problems. What is the best way to get around this? Is there a way to break the lock that another process has on it? Thanks, Chris |
|
| command line .net app security (4 replies) |
| ASPFriends.com 'aspngcs' list |
| hey guys, can any of you tell me why this code throws an ( Uncaught!!!! ) security exception when run from a network drive but no problem at all when from a local drive? i'm trying to figure out: A) why it throws an exception at all 2) why that exception isn't caught using System; using System.Diagnostics; class Hello { public static void Main( String[] args ) { try { // This throws an exception t... |
|
| Dll Help (8 replies) |
| ASPFriends.com 'aspngcs' list |
| I have created a namespace that does all my database functions which I compiled as a dll. It works great. DBFunctions is the name of the namespace The problem is that I am including that dll in another namespace with a using statement it looks like: using DBFunctions; and I keep getting an error message saying that the type or namespace name 'DBFunctions' could not be found. My question is where d... |
|
| using 'using' inside code? (2 replies) |
| ASPFriends.com 'aspngcs' list |
| I understand using 'using' when importing class libraries such as: using System.Text; using System.Data; ... .. code .. .. But What does it mean when you use 'using' inline? such as: .. // Now we open the stream, erasing the file if necessary using (FileStream f new FileStream(filePath, FileMode.Create)) { .. .. |
|
| flag enums (3 replies) |
| ASPFriends.com 'aspngcs' list |
| hey list, background: I have an internal enum with the Flags attribute. I have a public read/write boolean property. the boolean property represents one of the items in the enumeration. how to I write the get/set accessor for that boolean property? so far I have: get { return ( flags & MyFlaggedEnum.ArbitraryItem ); } set { // I have no idea } sorry, but i'm just having a brainfart here. lil'help?... |
|
| Where does VB.net fit now that we have c#? (3 replies) |
| ASPFriends.com 'aspngcs' list |
| VB has for some time been a good rapid development environment. Is anyone aware of where VB.net fits into the overall .Net framework. Are there things C# can not do that VB.net can? Frank |
|
| inserting and displaying BLOB data (3 replies) |
| ASPFriends.com 'aspngcs' list |
| Glacier hi is there any good tutorial that explains how you can manipulate SqL BLOB data? eg displaying, inserting, updating etc i would prefer tutorials in c# thanx James |
|
| including too many libraries (5 replies) |
| ASPFriends.com 'aspngcs' list |
| Including more libraries that required will or will not effect compilatino and execution performance? Will the CLR realize that it is not using eg. System.Drawing and ignore it? |
|
| DataGrid - Updating (2 replies) |
| ASPFriends.com 'aspngcs' list |
| Hi I have created an Editable DataGrid, however, when I grab the parameters from the DataGrid, I receive my old value and not the newly entered value. When I use the debugger, I do not see my new value in the Text attribute, but the old one. Can anyone tell me how to correct this? I am using the following code: TextBox newCategoryName; newCategoryName ( (TextBox) e.Item.FindControl( "Category" ) )... |
|
| ICollections? (3 replies) |
| ASPFriends.com 'aspngcs' list |
| page Load { Pseumo.Requisition openReqHeaders new Pseumo.Requisition(); pg new PagedDataSource(); //return type for open is ArrayList pg.DataSource open.GetStuff ((string)Session["gUser"]); pg.AllowPaging true; pg.PageSize PAGE SIZE; pg.CurrentPageIndex iPage; rpOpenReqHeaders.DataSource pg; rpOpenReqHeaders.DataBind(); CalculatePages(); Page.DataBind(); } Description: An unhandled exception occur... |
|
| Looking for IComparer example (7 replies) |
| ASPFriends.com 'aspngcs' list |
| Hello list, I'm looking for an example that uses the Sort(IComparer) method to sort a list. I'd like to a simple implementation of IComparer and how that's used. Any pointers are much appericated. |
|
| Request.ServerVariables and process (6 replies) |
| ASPFriends.com 'aspngcs' list |
| Moved from [aspngfreeforall] to [aspngcs] by Marcie Jones marciejones@yahoo.com Hello all, Where Can I find a C# equivalent of Request.ServerVariables I'm wanting to get the referrer via HTTP REFERER. Thank you, Simple. |
|
| MessageBox or similar class in control.ascx page ? (2 replies) |
| ASPFriends.com 'aspngcs' list |
| Hi all, is there a way to put a MessageBox or MsgBox or some thing that show a message in a contol.ascx (Visual C# .net Standard Version 2002). Thanks FDC |
|
| system.web.cache from a C# Class file (4 replies) |
| ASPFriends.com 'aspngcs' list |
| I get the error message "An object reference is required for the non static field, method, or property "Cache.Insert(string, object, CacheDependency)" when trying to compile the following C# excerpt as part of a solution (I reference this c# project in an ASP.NET project). My C# experience is limited. Is this a syntax problem or can't I access the system.web.cache from a class file? private XmlDoc... |
|
| appending to a file that has been locked by another user (5 replies, VIP) |
| ASPFriends.com 'aspngcs' list |
| Does anyone know how to unlock and write to a file that has been locked by another process? I'm using my own TraceListener Class that writes trace messages to a file in xml format. Everything works well until I go into that file and delete the contents from notepad. After I do this, I can no longer write to the file, (even if I close down notepad) because its being used by another process. Thanks,... |
|
| CLR (7 replies) |
| ASPFriends.com 'aspngcs' list |
| Wait, so the CLR sits on top of WIN32? I thought the CLR existed at the same abstraction level as Win32. Original Message From: Mitch Denny [mailto:mitch.denny@warbyte.com] Sent: Sunday, March 17, 2002 2:44 AM To: aspngcs Subject: [aspngcs] Re: appending to a file that has been locked by another user Chris, I don't think this is possible since the goal of locking files is to just that. File lockin... |
|
| Dynamically Generated Button Event Handlers (3 replies, VIP) |
| ASPFriends.com 'aspngcs' list |
| Moved from [aspngfreeforall] to [aspngcs] by Marcie Jones marciejones@yahoo.com Hi all, 20 I am developing a web page with buttons created dynamically at run time. I have created a table to hold the buttons in a code behind file, adding properties like so (arPages is a 2 dimensional array containing the button identifier and Text property): 20 20 for (int i 3D 0; i (arPages.GetLength(0) ); i ) { T... |
|