Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Re: How to add Page.User.Identity.Name into a class file?

Reply
Thread Tools

Re: How to add Page.User.Identity.Name into a class file?

 
 
Gregory A. Beamer
Guest
Posts: n/a
 
      10-06-2009
"Mark Rae [MVP]" <> wrote in news:OLyCPYpRKHA.1268
@TK2MSFTNGP04.phx.gbl:

> HttpContext.Current.User.Identity.Name


The only potential issue I see here is you end up tightly coupling the
library to web applications only. This may not be a big issue, but my
preference is to pull identity and feed to the library to avoid the
coupling.

Peace and Grace,

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

Twitter: @gbworld
Blog: http://gregorybeamer.spaces.live.com

*******************************************
| Think outside the box! |
*******************************************
 
Reply With Quote
 
 
 
 
Gregory A. Beamer
Guest
Posts: n/a
 
      10-08-2009
"Mark Rae [MVP]" <> wrote in news:eJF#JQuRKHA.5108
@TK2MSFTNGP02.phx.gbl:

> True, if the class needs to be reusable across project types...


I tend to assume this direction first and then adjust based on other
factors. I have yet to come up with a case where I felt tightly coupling to
the UI was the proper decision. i am not saying that someone cannot come up
with a case, however, as I have not worked through all types of problems.

Peace and Grace,

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

Twitter: @gbworld
Blog: http://gregorybeamer.spaces.live.com

*******************************************
| Think outside the box! |
*******************************************
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
Class A contains class B, class B points to class A Joseph Turian C++ 5 12-30-2005 03:24 PM
Nested Class, Member Class, Inner Class, Local Class, Anonymous Class E11 Java 1 10-12-2005 03:34 PM
procedure to add web reference which will not create new namespace just add class in existing namespace. Deep Mehta via .NET 247 ASP .Net Web Services 2 05-31-2005 05:05 AM
A parameterized class (i.e. template class / class template) is not a class? christopher diggins C++ 16 05-04-2005 12:26 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57