
eramgarden
Avatar/Signature-
Posts
583 -
Joined
-
Last visited
Content Type
Profiles
Forums
Blogs
Events
Articles
Resources
Downloads
Gallery
Everything posted by eramgarden
-
I asked a smiliar question as well..if you do a search for my username, you'll find the thread... My question was basically..where do I add my classes: class library or App_code...should I use WebSite model or Web Application model... I've seen examples where data access layer was in the App_Code but I decided to go with Class Library and Web Application model... http://www.asp.net has nice vidoe tutorials, you can download code and see how they've structured the examples. From what I've read, you dont have to use App_code; http://www.asp.net/learn/dataaccess/default.aspx?tabid=63
-
that doesnt look correct. You need the onClick event of the Button, name it for example, myButtonOnClick. Then have a function called myButtonOnClick and do whatever you need to do there.
-
Yes... I looked at the server and when I want to log in it's "xxx/Administrator". For my laptop, I have the same "xxx/<mylogin>" I think we only have one domain..this is not a huge office, only 6 of us here. I also looked under "micrsoft windows network and I only see one node (xxx). I read more articles about Windows Authentication to make sure if i'm missing something but doesnt look like it..
-
I bring up the application from 2 places: from the webserver itself and from my PC. I log in to the webserver as "administrator/<pwd>". I bring up the site and i get the pop-up. After I login to the pop-up, i get authenticated (I have a textbox showing the domain and username authenticated as part of my test). I see <domainname>/Administrator. Then I went to the IIS and expanded the website. On the right pane, i right clicked on one of the aspx files and chose "browse" and I got the same pop-up. between the web server and a DC? what is a DC??
-
No, with windows Authentication, it shouldnt ask for userid/pwd. With the other authentication methods (Basic, etc) it should... anyone?
-
Did the thing mentioned in this link as well: http://forums.asp.net/thread/1411824.aspx For "roles", I added the new AD user group i created but still i get the pop-up box.
-
I created a new group on that server. It uses Active Directory. I added myself, administrator and ASPNET to it. Went back to the folder, "security" tab and added the new user with Full Control and still get the login/pwd pop-up box. Is the Active Directory causing this??
-
I read this blog: http://weblogs.asp.net/scottgu/archive/2006/07/12/Recipe_3A00_-Enabling-Windows-Authentication-within-an-Intranet-ASP.NET-Web-application.aspx 1. IIS6.0, windows server 2003, SP1 2. I setup my site. Disabled Anonymous access. Enabled Windows Intergrated Authentication. 3. I do not use impersonation 4. I have the webconfig exactly as that blog has it: <authentication mode="Windows" /> <authorization> <deny users="?"/> </authorization> 5. I added ASPNET useraccount to the folder with "Read&Execute", "Read" and "List Folder Contents" permission. When I bring up the site, I get a pop-up to login with userid/pwd But this is windows authentication, what am I missing??
-
This is ASP.Net. If I use "multiline", I get the scrollbar which I dont want. I tried VbNewLine but still all shows up on one line!
-
Howcome my Enviroment.NewLine doesnt work?? All shows up on one line. I found this link and tried char(3) and VBCrlf as well but no use. My text box is wide enough. I tried "multiline" property of textbox but i dont want "multiline" and have a scrollbar next to the text box. Howcome this doesnt work? http://www.xtremedotnettalk.com/showthread.php?t=94136&highlight=Environment.NewLine Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load txtError.Text = "You do not have access to the System:" & vbCrLf & _ "Authenticated: " & Request("Authenticated") & Environment.NewLine & _ "Anonymous: " & Request("Anonymous") & Environment.NewLine & _ "Type: " & Request("Type") & Environment.NewLine '& _ '"Error: " & Request("Error") End Sub
-
I could swear I had tried that and it didnt work but now it works! :confused: Losing my mind :eek:
-
I have this line of code in ASP.Net 2.0/VB.Net Global.asax file: Try If e.Identity.IsAuthenticated And Not (e.Identity.IsAnonymous) And _ e.Identity.AuthenticationType.Length <> 0 Then Dim userIdentity As String userIdentity = e.Identity.Name() End If Catch ex As Exception HttpContext.Current.Response.Redirect[b]("[color=Blue]AccessDenied.aspx?Authenticated="[/color] + [color=YellowGreen]e.Identity.IsAuthenticated [/color] [/b] + "&Anonymous=" + e.Identity.IsAnonymous) End Try For the Blue text, I get this error msg: Option Strict On disallows implicit conversions from 'String' to 'Double' For the Green Text, I get this: Option Strict On disallows implicit conversions from 'Boolean' to 'Double' I tried CType and CDbl but still get errors. Any ideas on what to do? I have Strict Option On.
-
probably beating this one to death but i'm getting close to wrap my head around this :rolleyes: On http://www.asp.net site, I downloaded 3 sample projects they have for free to look at the layers and code examples ... I also downloaded "DotNetNuke". For this one, the code is structured under "Windows Application" templates ..instead of for example, "class library". Seems like it's added, then the "form" code is removed. I saw that at my last job too where "web application" template is used to structure the code... wanted to know why someone might choose "windows application" instead of "class library" for a web application.
-
i guess this is only in VB, found a screen shot here and some info: http://webproject.scottgu.com/VisualBasic/UserControls/Usercontrols.aspx
-
ah , yes... In the "web application", I see a "My Project". I added a class library to the solution and under the class library, there's another "My project"...When I double click on the one under "web application" it jumps to the root "webappliation1"..it gives me options... This is like "properties".. i right clicked to see if i can delete it but i cant... seems like the "web site" model in 2005 is easier!
-
I downloaded the "web application" from the Microsoft site...what I dont see is "Add/New Project/Other Pojects/Enterprise Template Projects" and then "Enterprise Template Project" as one f the options... At my last job, vendor used that template and then under it had the "web application" project....instead of having everything under the root... I know I can add Class Libraries with my DAL and BL code under that..but how can I have all my aspx pages organized..instead of having it under the root folder? (So, have 3 project folders: BL,DAL and UI (aspx pages)?
-
ooooooooh, now i get it. Thanks. It makes sense until i confuse myself again :D
-
yeah, that was a stupid question :D Let me ask you this: in 2.0, there's no "web application project" and seems like that's an add-on: http://msdn2.microsoft.com/en-us/asp.net/aa336618.aspx 2.0 uses a "web site model"...correct..this is what i see when I did "file/add new website". Then when I right click on the solution and choose "add", i see "new project", "visual basic" and "class library" (and other stuff). I also see "other porject types". In 1.1, under this ,there were "enterprise template projects". This is what the vendor at my last job used to put the "web application " under...that's how they organized it. I dont see that in 2.0. No way to organize the "web site" in 2.0 like that? I know i'm beating this to death but my light bulb is getting brighter :)
-
Thanks, and I found the link below, the last question is basically explains what you have: http://blogs.msdn.com/swisowaty/archive/2005/12/21/506357.aspx Question: "web project" is where i'm going to have my aspx files..this can be in itself a class library...so have 3 class libraries...one for BL , one for DAL and one the aspx pages itself...correct?
-
hmm...this is NEW project , totally done in 2.0.. your comment makes sense but doesnt answer what i'm trying to convey... I want to know what's a good/recommanded/how-everyone-else- does- it structure for this new project... So..should I have my Business Layer and Data Layer in APP_CODE? Then what about the Presentation Layer? If i have 2 Class Libraries for Business Layer and Data layer..they will go into BIN , even tho this is ASP.Net 2.0? For example, if you have a 3-tier app, how have u structured it...what do u see in the Solution Expolerer when it comes to structure of the code?
-
I was reading this tutorial: http://www.asp.net/learn/dataaccess/tutorial02vb.aspx?tabid=63 He has :In a real-world application, the BLL should be implemented as a separate Class Library project; however, for these tutorials we'll implement the BLL as a series of classes in our App_Code folder in order to simplify the project structure I know we want to have a 3-tier design. At my last job, it was .net 1.1, the vendor had 3 projects in the solution and they used "Visual Basic Building Blocks/BusinessFacade/dataAccess" etc. They had 3 projects one with "common" functionality . Question about the structure of code: in 2.0, there's App_code and that article mentions Class Library. Now, if I want to use Class Library, should this go in APP_code? Just need some general ideas about how to structure the 3 tiers..
-
Global, seems like it, is a keyword in vb.net.
-
Found this: http://rossnelson.blogspot.com/2005/11/fixing-globalasax-in-aspnet-20.html But I had to rename "Global" to something else like "Global2" in the class and in the refernce for it to work...why??
-
No, that didnt work...Should global.asax in 2.0 be in "App_Code"? Is "Global" as keyword in 2.0? I get : Keyword is not valid as an identifier. Line 9: Line 10: Line 11: Public Class Global Line 12: Inherits System.Web.HttpApplication Line 13:
-
Oh, i do get intellisense but I cant do "imports".. why?