Jump to content
Xtreme .Net Talk

eramgarden

Avatar/Signature
  • Posts

    583
  • Joined

  • Last visited

1 Follower

eramgarden's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. 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
  2. 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.
  3. 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..
  4. 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??
  5. No, with windows Authentication, it shouldnt ask for userid/pwd. With the other authentication methods (Basic, etc) it should... anyone?
  6. 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.
  7. 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??
  8. 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??
  9. 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!
  10. 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
  11. I could swear I had tried that and it didnt work but now it works! :confused: Losing my mind :eek:
  12. 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.
  13. 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.
  14. i guess this is only in VB, found a screen shot here and some info: http://webproject.scottgu.com/VisualBasic/UserControls/Usercontrols.aspx
  15. 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!
×
×
  • Create New...