473,396 Members | 1,797 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

How handle need for System.aspx form?

I want to name a form "System", let's say. While I know I can name it
System.aspx and change the class name within to something like SystemForm, I
don't think that's a good practice.

public partial class SystemForm : System.Web.UI.Page

I tried wrapping it within a namespace "Forms" but that doesn't help.

Is there a recommendation that can be applied consistently (as a development
standard) across all forms whether they conflict with a .NET name or not?
Since Hungarian is supposedly on the way out, clsSystem is no longer a
"proper" option either.

Thanks,
Ron
May 3 '07 #1
6 1147
On May 3, 6:35 am, "Ronald S. Cook" <r...@westinis.comwrote:
I want to name a form "System", let's say. While I know I can name it
System.aspx and change the class name within to something like SystemForm, I
don't think that's a good practice.

public partial class SystemForm : System.Web.UI.Page

I tried wrapping it within a namespace "Forms" but that doesn't help.

Is there a recommendation that can be applied consistently (as a development
standard) across all forms whether they conflict with a .NET name or not?
Since Hungarian is supposedly on the way out, clsSystem is no longer a
"proper" option either.

Thanks,
Ron
Naming Guidelines by Microsoft
http://msdn2.microsoft.com/en-us/lib...w0(VS.71).aspx

May 3 '07 #2
I've been through that and it doesn't answer my question (so far as I can
tell).
"Alexey Smirnov" <al************@gmail.comwrote in message
news:11**********************@y5g2000hsa.googlegro ups.com...
On May 3, 6:35 am, "Ronald S. Cook" <r...@westinis.comwrote:
>I want to name a form "System", let's say. While I know I can name it
System.aspx and change the class name within to something like
SystemForm, I
don't think that's a good practice.

public partial class SystemForm : System.Web.UI.Page

I tried wrapping it within a namespace "Forms" but that doesn't help.

Is there a recommendation that can be applied consistently (as a
development
standard) across all forms whether they conflict with a .NET name or not?
Since Hungarian is supposedly on the way out, clsSystem is no longer a
"proper" option either.

Thanks,
Ron

Naming Guidelines by Microsoft
http://msdn2.microsoft.com/en-us/lib...w0(VS.71).aspx

May 3 '07 #3
Actually I think the naming guidelines are pretty clear in recommending *NOT*
to name classes / objects with names that confuse with existing namespaces or
classes.

Why do you "have to do this" - which will likely only cause readability and
maintainability issues down the road?
Peter

--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net


"Ronald S. Cook" wrote:
I want to name a form "System", let's say. While I know I can name it
System.aspx and change the class name within to something like SystemForm, I
don't think that's a good practice.

public partial class SystemForm : System.Web.UI.Page

I tried wrapping it within a namespace "Forms" but that doesn't help.

Is there a recommendation that can be applied consistently (as a development
standard) across all forms whether they conflict with a .NET name or not?
Since Hungarian is supposedly on the way out, clsSystem is no longer a
"proper" option either.

Thanks,
Ron
May 3 '07 #4
Just a pain that because of reserved words, System (the ideal name for an
entity) has to be prefixed or postfixed with a word to prevent conflict.
Although the world is pushing to move away from Hungarian, these kinds of
things ,make sense to keep it. Take for example a desired table "User".
Because is a SQL reserved word, have to bracket it every time is written or
use some other less desireable name. Just bugs me when the technical
environment dictates what things can and can't be named.

"Peter Bromberg [C# MVP]" <pb*******@yahoo.yabbadabbadoo.comwrote in
message news:90**********************************@microsof t.com...
Actually I think the naming guidelines are pretty clear in recommending
*NOT*
to name classes / objects with names that confuse with existing namespaces
or
classes.

Why do you "have to do this" - which will likely only cause readability
and
maintainability issues down the road?
Peter

--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net


"Ronald S. Cook" wrote:
>I want to name a form "System", let's say. While I know I can name it
System.aspx and change the class name within to something like
SystemForm, I
don't think that's a good practice.

public partial class SystemForm : System.Web.UI.Page

I tried wrapping it within a namespace "Forms" but that doesn't help.

Is there a recommendation that can be applied consistently (as a
development
standard) across all forms whether they conflict with a .NET name or not?
Since Hungarian is supposedly on the way out, clsSystem is no longer a
"proper" option either.

Thanks,
Ron

May 3 '07 #5
I understand. There are lots of things in the world that you can't change, or
at least not easily. You can easily spend a lot of time harping on them too.
Peter

--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net


"Ronald S. Cook" wrote:
Just a pain that because of reserved words, System (the ideal name for an
entity) has to be prefixed or postfixed with a word to prevent conflict.
Although the world is pushing to move away from Hungarian, these kinds of
things ,make sense to keep it. Take for example a desired table "User".
Because is a SQL reserved word, have to bracket it every time is written or
use some other less desireable name. Just bugs me when the technical
environment dictates what things can and can't be named.

"Peter Bromberg [C# MVP]" <pb*******@yahoo.yabbadabbadoo.comwrote in
message news:90**********************************@microsof t.com...
Actually I think the naming guidelines are pretty clear in recommending
*NOT*
to name classes / objects with names that confuse with existing namespaces
or
classes.

Why do you "have to do this" - which will likely only cause readability
and
maintainability issues down the road?
Peter

--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net


"Ronald S. Cook" wrote:
I want to name a form "System", let's say. While I know I can name it
System.aspx and change the class name within to something like
SystemForm, I
don't think that's a good practice.

public partial class SystemForm : System.Web.UI.Page

I tried wrapping it within a namespace "Forms" but that doesn't help.

Is there a recommendation that can be applied consistently (as a
development
standard) across all forms whether they conflict with a .NET name or not?
Since Hungarian is supposedly on the way out, clsSystem is no longer a
"proper" option either.

Thanks,
Ron


May 3 '07 #6
That's my sickness :)
"Peter Bromberg [C# MVP]" <pb*******@yahoo.yabbadabbadoo.comwrote in
message news:F6**********************************@microsof t.com...
>I understand. There are lots of things in the world that you can't change,
or
at least not easily. You can easily spend a lot of time harping on them
too.
Peter

--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net


"Ronald S. Cook" wrote:
>Just a pain that because of reserved words, System (the ideal name for an
entity) has to be prefixed or postfixed with a word to prevent conflict.
Although the world is pushing to move away from Hungarian, these kinds of
things ,make sense to keep it. Take for example a desired table "User".
Because is a SQL reserved word, have to bracket it every time is written
or
use some other less desireable name. Just bugs me when the technical
environment dictates what things can and can't be named.

"Peter Bromberg [C# MVP]" <pb*******@yahoo.yabbadabbadoo.comwrote in
message news:90**********************************@microsof t.com...
Actually I think the naming guidelines are pretty clear in recommending
*NOT*
to name classes / objects with names that confuse with existing
namespaces
or
classes.

Why do you "have to do this" - which will likely only cause readability
and
maintainability issues down the road?
Peter

--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net


"Ronald S. Cook" wrote:

I want to name a form "System", let's say. While I know I can name it
System.aspx and change the class name within to something like
SystemForm, I
don't think that's a good practice.

public partial class SystemForm : System.Web.UI.Page

I tried wrapping it within a namespace "Forms" but that doesn't help.

Is there a recommendation that can be applied consistently (as a
development
standard) across all forms whether they conflict with a .NET name or
not?
Since Hungarian is supposedly on the way out, clsSystem is no longer a
"proper" option either.

Thanks,
Ron



May 3 '07 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: DraguVaso | last post by:
Hi, In my application, on some given actions while debugging in Visual Studio, I suddenly get a "System.ComponentModel.Win32Exception was unhandled" Message="Error creating window handle."...
12
by: Daniel Walzenbach | last post by:
Hi, I have a Website which allows users to input data. After they finished entering data they can click a button to save their input. Problem now is, that I have no possibility to visualize that...
6
by: jk | last post by:
Looking through WebUIValidation.js, I discovered that the standard validators don't cater for non-numeric date formats (e.g. dd-MMM-yyyy) which I would like to do To keep code to a minimum, I...
15
by: Adam J. Schaff | last post by:
I have noticed that if a user closes a form via pressing return (either while the OK button has focus or if AcceptButton is set to OK for the form) then the "ENTER" keypress event fires ON THE...
7
by: Ryan | last post by:
I'm creating a user control that has a handful of controls on it (19 in total). One of the controls on the UC is a textbox for a user's password, so I've set the PasswordChar property to "*". I...
10
by: Miro | last post by:
I wanted certain text boxes ( only certain ones ) to always be Trim'd so that spaces are not in the begining, nor the end of the text entered. I created my own "Handle ?" - i hope thats the...
6
by: Liming | last post by:
Hi, In a typical 3 tier model (view layer, busines layer and data access layer) where do you handle your exceptions? do you let it buble up all the way to the .aspx pages or do you handle it in...
6
by: =?Utf-8?B?VG9tYXM=?= | last post by:
Hi, I have an C++/CLI MDI application with two Forms A and B. When I work with Form A I would like to know the handle of Form B (if it is opened), to use its handle in a delegate that execute...
14
by: Ronald S. Cook | last post by:
I'm just curious how you would handle this. In the cable industry, Comcast is referred to as an "MSO" (multiple systems operator) meaning they own many cable systems. Therefore a solution must be...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.