Answer Questions
mr pitiful Using returned value from SqlDataSource1
I, a newbie, can't seem to figure this out or find the answer on forums. Any help you could offer me is appreciated. VS2005, C#, Web forms. What I'm doing is writing the login name and password to Profile.Login & Profile.Password from the text boxes on a login screen only if there is such a combo. I also want to write the person's UserID but can't get it out of the SqlDataSource1. I have an SqlDataSource1 that returns a distinct integer v ...Show All
MarnixG File name validation method
I have a web application where the users can provide the name of a file in a field. I want to make sure the syntax of that filename is valid before using it. I browsed the methods in various .Net 2.0 framework assemblies and there does not seem to be any to specifically validate the syntax of a string representing a filename. Is there a method I can use to validate the syntax of a NTFS file name regards, Gaetan. ...Show All
Philippe Lacoude What should be done first? Class or E/R?
Does there exist a converter from e/r to class diagrams If not I have a question in how to make classes. Suppose I havea Person table and a Role table, the person may have many Roles, so I have an intermediate table that relates rows from both tables right I am customed to make E/R diagrams and not classes, How would I make those 3 tables on a class diagrams Thanks Creating ER stuff, also as XSD, gives u general view of the system, lik ...Show All
RyanMoore Application server, why?
My manager wants me to know why we should have an application server in our web app. Currently, our web app talks directly to SQL Server. What are some of the pros and cons of having an application server (generally speaking) --SY If your talking about a physical server then there is a lot of advantage. Like Pete said, if you seperare the Application from the Database (2 server) hacker will not ...Show All
RichardR Native methods
Hello. I have questions about mixed mode: 1. How CLR works with embeded native methods 2. How managed code call native methods 3. Where are stored native methods descriptions in assembly metadata Any articles in MSDN or other places, please. Thanks Hi, I assume that you are using C++/CLI. Here's is a reference on how to do Interops in C++/CLI... http://msdn2.microsoft.com/library/ms17755 ...Show All
si-borg How to get workgroup of the computer?
hello i want to get workgroup of the computer without using unmanaged code i try this System.Environment.UserDomainName but its giving me the COMPUTER NAME not the workgroup ... is there any way to find out using System.NET or WMI thanx any way .. I do not beleive there is a way to get this information using System.Net. You are sure you are not joined to a domain ...Show All
Marcelh Server Error in '/' Application
I dont know if this is the right place to post this, but here it goes. Whenever i try to post my personal information on a website, instead of going to the next page i get this error-----pleas help----- Server Error in '/' Application. You should try the ASP.NET forums http://forums.asp.net/ . You probably want to describe the environment and what you're trying to do. It's likely you'll need to contact whoever is hosting your ...Show All
Steve Cronk ADO and Role Base
Hello, I have this question: We know that Enterprise Services (ES) offers secure model i.e. Role Based Security (at a cost of added comlexity) But can one achieve this purely using ADO.NET based model If no, how can I simulate the Role Based Security if we dont want to go the ES route Thanks Thank you SvenC, that was very helpful. I am well aware of the difference between ES amd ADO. The short answer fro ...Show All
March3rd host ,shim ,mscoree....???
I want to understand how clr is working.I am reading whatever i find nowadays.I have some questions: 1-)There is a word "host" in articles What does this word indicate What must i understand Is it my managed application codes Or part of my managed application code which executes within clr 2-)Also there is one word i don't understan is "shim".Does shim mean mscoree.dll 3-)mscoree.dll ,mscorsvc.dll, mscorwks.dll. Are these dlls include mange ...Show All
majellao .Net framework 2.0 installation problem
Dear all, Windows update was stuck in the middle of installing .NET 2.0. Then I tried to install .NET 2.0 after having downloaded the file manually (about 21 Mb) I had two options Uninstall or Repair. I said repair and it got stuck at the point Executing: "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\RegSvcs.exe" /bbotstrapi Any help will be highly appreciated. Well, I a ...Show All
g.neeraj Difference between Sockets and TCPlisterner-TCPClient
Hi, I'm new to sockets and I can't understand the difeerence on creating sockets using : New Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp) or using the TCPListener and TCPClient classes. Any help will be appreciated.. Thanks. Ubercoder hi Durgaprasad, Thanks. UDP is working fine. For ICMP,i understand that there is no port number associated with it as it is netwrok layer ...Show All
halflife28 how to set the dataset's namespace
hi, I'm use the Dataset Desinger of Visual Studio 2005 to design a dataset. Then, I compile the project. The desinger generate a typed dataset class. But the dataset class is inside the global namespace. How to set to generate the typed dataset class in a customed namespace. The namespace above is C# namespace. Not the XML namespace. thanks. VS 2005 has the same "Custom Tool Namespace" property available on the Da ...Show All
mallakishore set my browser to default webbrowser or registering it as a webbrowser
Hello All, How can I set my own webbrowser to be the system's (WinXP) default webbrowser And anyways, how can I register it as a webbrowser My 2nd question is how can i use the java script in my browser. It is a multipaged webbrowser and i want that when i click on a link that contains a javascript method (eg: openwindow) how can i make my program to open that window in a new tabpage - it works - with the script's url I mean this: openGa ...Show All
jerrison TimeSpan intersections
Hi all, Im a bit confused by now. Im having a big problem detecting if a certain TimeSpan intersects with another TimeSpan. Here's a little background info. I have a pricelist class this contains the following property, Items. These items consist of a PriceListItem class. This class has a few property's like Day, BeginTime, EndTime. So for an example it looks like: TimeSpan bTime = new TimeSpan(8, 0, 0); TimeSpan eTime = new Tim ...Show All
Prakash Paghdal Problem with Runtime type check
From the example below of what I am trying to do, I have a base class employee and two types of employees, sales and engineering. I create an array of each type of employee. I want to swap the base attributes of the employee when they change jobs. I get a runtime check : An ArrayTypeMismatchException exception is thrown when the system cannot convert the element to the type declared for the array. This may not be the best method of doi ...Show All
