asp.net - Class Diagram aspx -


i bussy class diagram.

my project has classes (example: user.cs, friend.cs, message.cs).

and have .aspx , .ascx (web user control) files have classes, example: showfriends.ascx has showfriends.ascx.cs-class.

what know is: need take create class in class diagram showfriends.ascx.cs-class? or not allowed because it's part of .ascx file? if don't it, miss lots of things in class diagram.

if allowed: how can seperate friend.cs showfriends.ascx.cs file in class diagram? because friend.cs file has attributes in it, , showfriends.ascx.cs file has methods showfriends(). , if create relation between user , and friend.cs , showfriends.ascx.cs looks weird.

for me it's more logical have 1 class called friend.cs or attributes , methods in (methods showfriends()), dont have that, because need create methods in .ascx.cs file because of using request.querystring["username"].

thanks in advance!

the best practice define classes in separate file. if you're concerned accessing request object can still outside of .ascx-files.

as long project references system.web can access this:

 string user = httpcontext.current.request["username"]; 

i wouldn't put ascx.cs files inside class diagram. in class diagram want define domain model, not ui.


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -