Answer Questions
Telesto Double Trouble - bug in double?
There appears to be a bug with Double, unless I'm missing something The following lines of code are basically all the same. However, some of the numbers evaluate to "true" while others evaluate to "false". I can not figure this out. Response.Write((Convert.ToDouble("3.170404") == 3.170404)); // is true Response.Write((Convert.ToDouble("5.170404") == 5.170404)); // why is this false Response.Write((Co ...Show All
enet2008 ActiveDirectoryMembershipProvider woes
I've having a heck-of-a-time trying to get AD authentication working in my vs2005 app. I have a Login control setup and pointed to a ActiveDirectoryMembershipProvider, but when I click the Login button, I get a nasty server error " Parser Error Message: An operations error occurred." Pointing at the type attribute in my provider declaration (below). I've not found anyone else whining about this problem, anyone have any ideas Thanks, Andre ...Show All
AndrewKnight RPC Server Exception
System.Management. ManagementScope ms = new System.Management. ManagementScope ( "\\\\" + stringMachineName + "\\root\\cimv2" , co); oq = new System.Management. ObjectQuery ( "SELECT * FROM Win32_processor" ); query = new ManagementObjectSearcher (ms, oq); queryCollection = query.Get(); return queryCollection; well guys i am trying to access remote system but in doing this some machin ...Show All
Serge Posudevsky TableAdapter Update problem
Hello, i have problem in my application. I create dataset with single table. In MainForm i have 2 texboxes and update button. This is code for update button: [CODE] Klient klient = new Klient(); klient.ShowDialog(); KlientDataSet dataSet = new KlientDataSet(); Serwis.KlientDataSet.KlienciRow klientRow = dataSet.Klienci.NewKlienciRow(); klientRow[0] = Guid.NewGuid(); klientRow[1] = klient.Imie; klientRow[2] = klient.Nazwisko; ...Show All
renis Data Adapter Table Mapping question vs2005
I would like to have the user type in a query statement, click on a [Test] button and have the query results show in a datagrid. I'm stuck on the data adapter.TableMappings. This changes depending on the query the user inputs. Thanks, MikeD dsQueryResult = new System.Data.DataSet(); daQueryResult = new System.Data.SqlClient.SqlDataAdapter(); myCmd = new SqlCommand(); &n ...Show All
Paula Auto ellipses function
I have a label. The label autosize set to false. If the string larger than the label size, truncate and add the ellipses. Like .net 2.0 have the auto ellipses property in label. Example: Initially Label width is 40 px. The string length is 60 characters. Then compare the string length and size and do the action accordingly. string displayText = string .Empty; if (( this .baseText.Length * this .Font.Size) > this .Width) { dis ...Show All
tytus Editing exsisting record
Hey all, I can not seem to find out anywhere how to edit a record in a table. I have already done the add routine, and it works great! When i recall the record and try to update it, it either doesnt update or throws an error. Does anyone know an easy way to do this I am NOT using the TableAdapter for record navigation or adding. _______________________________________________________________________ I have currently tried to update the table in ...Show All
pramodh how to add a child node
hi iam new to xml.i am using .net with xml and c#. i need to add a node below a node of paricular node for example in the below xml file i need to add this node "<group>software</group>" below the all title tags .how to do that in c# how to do it srinivasan < xml version="1.0" encoding="ISO-8859-1" > <catalog> <cd> <title>Empire Burlesque</tit ...Show All
NewHacker Putting controls on the Web Forms
Hello : I am facing a difficuluty in putting cotrols in the right place on the web form in flow Layout. Specially right-alighned controls( as in Arabic).When the form ran , some of the controls are shifting from their positions to a random positions. How could i solve this problem Thanks alot Hasan, We have recently found and fixed several issues with regard to right-to-left rendering in Visual Web Developer. I ...Show All
JonPL Size of object at runtime
Hello Friends, I wanted to check the size of the object (Entity & data storage) when the application is run/running. what could be possible ways My application is ASP.net based C# code behind application. Thanks in advance friends. Manohar Application Developer Get the CLR profiler here http://www.microsoft.com/downloads/details.aspx familyid=A362781C-3870-43BE-8926-862B40AA0CD0&displaylang=en Run your program with it and cli ...Show All
Prajkta Server Error in '/Financing' Application
Hello, I created a web application for my boss called financing. When I left last week for my holidays it was working great. Upon coming back to work this week the app no longer works, I get this error: Server Error in '/Financing' Application. IIS seems to be working fine. Everything thats not related to VB.NET is working, I created a quick .html file in Dreamweaver and configured it in IIS and it went up without a hitch. ...Show All
Joe Dirt .NET Runtime 2.0 Error Reporting
Hi, My application is running on 65 PC. After a few hours, this applications crash on 2-3 PC. I get no exception in my log files. I set the Application.ThreadException and AppDomain.CurrentDomain.UnhandledException exception event handlers. The last one is triggered with 'System.NullReferenceException: Object reference not set to an instance of an object.' but there is no stack trace available. I got no dump file, no popup window. I only get the ...Show All
Bob - GP File Watcher Service
I created a file watcher window service using VisualStudio 2005. The service is looking for a new file. When a new file is created it grabs that file and sends out an email. The service seem to work, some of the time. I have noticed that the service seems to stop running and I have to go in a restart it. Other times it seems that the service cannot find the file, but it is there and it is in the right path. Below is some of the code used to cre ...Show All
mech55 Can .NET Framework 2.0 run a .NET Framework 1.1 app?
Hello, I think the title says it... Thanks. Microsoft published a document with all breaking changes for .NET 2.0: http://msdn.microsoft.com/netframework/default.aspx pull=/library/en-us/dnnetdep/html/listofbreakingchanges.asp Hi, In addition to the breaking changes document - you would need to take a look at the .NET Framework 2.0 Beta 2 Obsolete APIs List as well. Regards, Vikram Yes. There m ...Show All
Dusty21269 What is the problem in my code(SaveFileDialog or OpenFileDialog)when I call a call within a function?
In a v c++ class(2003 version) whenever I use this statement, SaveFileDialog* m_pFileSaveDialog = new SaveFileDialog(); firewall (or security agent) says The process is attempting to invoke a system function from a buffer. do you wish to allow this How to fix it in code as I can not close the security agent. This is only happening for SaveFileDialog and OpenFileDialog functions As per my underst ...Show All
