CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

ASP.NET Web Hosting – 3 Months Free!



Zone: > NEWSGROUP > Asp.Net Forum > visual_studio.visual_studio_2005 Tags:
Item Type: NewsGroup Date Entered: 10/25/2007 2:43:36 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 2 Views: 23 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
3 Items, 1 Pages 1 |< << Go >> >|
satya.js
Asp.Net User
Show default value in the autos window for an object10/25/2007 2:43:36 PM

0/0

I am not sure how to explain this. But I will try my best.Sad
 

While debugging, we can see the value for the DateTime object (eg: {10/25/2007 12:00:00 AM} ) unlike for a dataset which is displayed as {System.Data.DataSet} in the Quick Watch/Autos window.

My question, I have an object collection and while debugging I want to see the ID of the object in the Quick Watch/Autos window instead of the name of the object (eg: MyObject: {1234} instead of MyObject: {Namespace.MyObjects.MyObject}).

When I have a collection of say 10 objects and if I want to see a particular instance of the object with ID value say 123, I have to expand each of the instances and verify the ID value. Instead I am looking if there is a way to display the ID value next to the object. Can someone tell me how to do it? Confused


- Satya

(Mark this reply as Answer, if you find it useful)
Mikhail Arkhipo
Asp.Net User
Re: Show default value in the autos window for an object10/25/2007 6:59:58 PM

0/0

Try adding expanded version to Watch window, something like

obj.ID

 


Thanks

------------------------------------------------------------

This posting is provided "AS IS" with no warranties, and confers no rights.
satya.js
Asp.Net User
Re: Show default value in the autos window for an object10/28/2007 11:55:32 AM

0/0

I got the solution to that. Override the ToString() function of the object to return the id.ToString() value. It overrides the default object name with the id value.Smile

 Thanks for your help


- Satya

(Mark this reply as Answer, if you find it useful)
3 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
A Tester's Guide to .NET Programming Authors: Randal Root, Mary Romero Sweeney, Pages: 606, Published: 2006
Developing and Implementing Windows-based Applications with Visual Basic .NET and Visual Studio .NET Authors: Kirk Hausman, Kalani Kirk Hausman, Mike Gunderloy, Ed Tittel, Pages: 544, Published: 2003
Simply Visual Basic 2008 Authors: P. J. Deitel, Deitel & Associates ,Inc. Staff, G J Ayer, Pages: 896, Published: 2008
Core Internet Application Development with ASP.NET 2.0 Authors: Randy Connolly, Pages: 1049, Published: 2007
Mastering VBA for Microsoft Office 2007 Authors: Richard Mansfield, Pages: 888, Published: 2008
Flash CS3 For Dummies Authors: Ellen Finkelstein, Gurdy Leete, Pages: 386, Published: 2007
AutoCAD 2004 Bible Authors: Ellen Finkelstein, Pages: 1273, Published: 2003
Microsoft Expression Blend Bible: The Book You Need to Succeed! Authors: Gurdy Leete, Pages: 734, Published: 2007
QuarkXPress 6 for Macintosh and Windows: Visual QuickStart Guide Authors: Elaine Weinmann, Peter Lourekas, Pages: 16, Published: 2003
Pro NetBeans IDE 5.5 Enterprise Edition: enterprise edition Authors: Adam Myatt, Pages: 445, Published: 2007

Web:
[#FBE-170] Flex Project creation dialog (J2EE/LCDS) does not auto ... [ Show » ]. Ram Kulkarni - [09/19/07 01:55 AM ] I tested on Windows with CF project and observed the same behavior as on Linux. No default values were ...
ADO.NET Example Applications: College Park Auto-Shop TotalParts, decimal, Unchecked, Default Value: 0.00 Scale: 2 ..... Click the first text box under Qty and, in the Properties window, click the Events button ...
How do you give a C# Auto-Property a default value? - Stack Overflow To give auto implemented properties a default value, you'd have to do it in the .... Set a UserControl Property to Not Show Up in VS Properties Window ...
How to auto-increment a default value in a non-increment column ... How to auto-increment a default value in a non-increment column .... and the db_owner and db_ddladmin fixed database roles, and the object owner. ...
CodeProject: Windows XP Automatic Login Using C# ( C Sharp). Free ... Leave the names of button and label controls at their default value. ... handler for 'Disable Auto Login' button private void button3_Click(object sender, ...
com.afcomponents.umap.styles.InfoWindowStyle AUTO - info window will resize automatically horizontally & vertically. The default value is com.afcomponents.umap.types.AutoSizeType.AUTO . See also ...
Cisco Element Manager System User's Guide, 3.1 - Auto Discovery ... Discovering Devices on Subnets Different from the Default Network ... Step 1 Select the object within the Map Viewer window that Auto Discovery will be ...
Microsoft Access 2000: A Look at the New Visual Basic Environment For the Properties window to show the objects for an Access class, that object must be ... The default Watch type of Watch Expression shows the value of the ...
Auto Tuning - TCP/IP receive level - Vista Forums NOTE: Allows for the receive window to grow beyond the default value of 65535 ... netsh interface tcp show global but my recieve window auto-tuning level ...
Zainal Arifin View object properties using type proxy on Locals window ... three DebuggerBrowsableState enumerator values: Collapsed (default), Never and RootHidden. ...

Videos:
www.moldytoaster.com lanc and his daughter had just left their seat, and the daughter had taken her father's arm, and both were advancing slowly, towards the middle of th...
Mac OS Automator: Doing things over and over is over. Google TechTalks June 27, 2006 Sal Soghoian ABSTRACT Mac OS X "Tiger" introduces Automator, a new application that automates anything on your compu...
Zeitgeist, The Movie | Final Edition [ ENGLISH subtitles ] Zeitgeist, The Movie | Final Edition [ ENGLISH subtitles ]
Lage Raho Munna Bhai [ hindi film ] In this sequel to the highly successful and much appreciated Munnabhai MBBS , the affable goon Murli Prasad Sharma aka Munna (Sanjay Dutt) and his tr...




Search This Site:










displaying only the file names on tabs in web projects

class no longer being included in assembly

tool box autohide disabled???? ...? help

where are the log files located if you run the asp.net 2,0 app using the built-in webserver of vs 2005?

enableviewstate property on page?

cannot add a reference - undefined types

where can i donwload vs 2005 team system

how old is service pack 1

page fails compiling - 'does not exist in the current context'

web deployment project

introducing visual studio 2005

system.configuration.configurationsettings.appsettings is obsolete

server explorer tab it freezes visual studio

atlas crashing visual studio 2005

tools to monitor gc

deploying with databases

multiple browser support

"open in browser" opens texteditor instead of ie

autostretch tables

small suggestion

adding a user control to the gac using strong name key.

not supported by msbuild and cannot be built.

copy and paste formatting

visual datasource control doesn't show

visual studio, stable or not

microsoft enterprise library

visual studio 2005

vs 05

msvc 2005 pro and asp.net

changing 'mode' in vs2005

  Privacy | Contact Us
All Times Are GMT