|
I have a web site inside my organization that shows the performance of the work load, the site has different security levels according to the user that loggs the site (the security is left to b handled by "windows"),so i want to know the active directory loginame for the user that uses the site in order to load security of the site.
I tried to get the IP of the user request using Request.ServerVariables and using this IP i get the name of the user, but in the server i get invaild names compared to active directory names.
So i need any method that helps me to get the active directory loginame in order to load its security.
Thanks.
marp tech
|
|
|
|
|
Hmmm... I thought I answered this the last time you posted it.
|
|
|
|
|
You don't understand what i want, i don't want to check the user against active directory because i will not provide a login form, i just want to know the login name in the active directory for the user that requsted the page without any inforamtion from the user, i mean that the user will not enter any login name or password, i just want to know if the requrst has came from the network to load the secutity level.
marp tech
|
|
|
|
|
Marp Tech wrote: You don't understand what i want
Well of course I didn't understand what you wanted! I was going by what you wrote, not what you were thinking. The latter is beyond my abilities; I can only go by the former.
Marp Tech wrote: i just want to know the login name in the active directory for the user that requsted the page without any inforamtion from the user
You want to know the login name for the current user, but you don't want that user to log in? Okay. Good luck with that.
Marp Tech wrote: i just want to know if the requrst has came from the network
I don't think there is a reliable way to accomplish this without user tracking. You could grab the IP address of the computer making the request and determine if it is on your network or not - that you could do easily enough. But there are ways to spoof an IP address so I wouldn't call it reliable.
|
|
|
|
|
So how come Windows 2003/SQL Server does not support Active-Active clusters? And is there a maximum number of nodes... even with Active Passive? Is this the reason why SQL Server is "inferior" to Oracle?
Educate me.
|
|
|
|
|
Hello
i had add the edit column to the datagrid and the type of the column is link lable
I WANTto call the update LINK when i press Enter on the TextBox
Mohamad A. Flefel
C#.net Developer
|
|
|
|
|
Hello,
I am trying to convert an Asp.Net 2.0 XML sitemap file to a Google's sitemap file.
I am posting the formats of both files.
1. How can I do the conversion?
2. And can I use an .ashx Asp.Net file that when the .ashx file is called the Google XML file is generated?
Thank You,
Miguel
GOOGLE SiteMap
<?xml version="1.0" encoding="UTF-8"?>
< urlset xmlns="http://www.google.com/schemas/sitemap/0.84">
< url>
< loc>http://www.mydomain.com/example.aspx</loc>
< lastmod>2005-01-01</lastmod>
< changefreq>daily</changefreq>
< priority>0.8</priority>
</url>
</urlset>
ASP.NET 2.0 Site Map
<?xml version="1.0" encoding="utf-8" ?>
<siteMap
xmlns = "http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
<siteMapNode>
<siteMapNode
url = "~/example.aspx"
changefreq = "daily"
lastmod = "2005-01-01"
description = "My example page and its contents"
priority = "0.8"
title = "Example page" />
</siteMapNode>
</siteMap>
Note: description and title should be droped when converting from Asp.Net to Google sitemap.
|
|
|
|
|
|
how can i enable debugging in web service?
my client cannot access the service if i create it in the wwwroot\folder\service... however it can access it wwwroot\service like this can i get a logical reason for this
Bu
|
|
|
|
|
i think your problem is that your debugging account has no access rights to subfolders. in the iis snap-in make sure that anonymous access is granted and the account is IUSR_[machinename].after that check event-log if ASPNET user has any problems.
|
|
|
|
|
from where i can set all this??
|
|
|
|
|
what is the Diff between sqlConnection and oleDbconnection?
Which is better and why?
Mini
|
|
|
|
|
If you are going to a sql database, use SQL. Otherwise for Access and Oracle, use OLEDB. The SQL one does not have to go through OLEDB and can talk directly to SQL so it's faster (one less middle man).
|
|
|
|
|
|
i have a templete column with chechbox in datagrid. i want when i checked the checkbox with push the button i can delete that row. how u can help me?
|
|
|
|
|
|
Hello ,
I need an example about Multiple Delete in DataGrid using Checkbox however i need it in C# using ASP.Net
Thanks,
Mini
|
|
|
|
|
Hello friends,
I'm entering the ASP.Net technology World and I have some beginer questions, so please, don't be too hard
Ok, I need to do a "left side" menu. I have a table with main categories and other table with subcategories related to its main categories.
In the old ASP I just iterate with two "for", one for the main categories containing the other for the sub-categories belonging to the current category.
Quite easy, just put the ASP code in the right part of my page and I have my menu.
But in ASP.Net and the code-behing pages I don't know how to o this, because I can't put the ASP.Net code embebed into the HTML code.
I know this should be a very thumb questoin but....everybody has a begining
Thanks a lot
|
|
|
|
|
|
I am trying to debug an asp.net vb.net project on an XP machine.
When I start to debug I get this error:
Error while trying to run project: Unable to start debugging on the server. You do not have permissions to debug the server.
Verify that you are a member of the 'Debugger Users" group on the server.
I am certain that I am a member of the Debugger Users group. I am also a member of the Administrators group (as Help suggests).
I tried everything in the help file and nothing worked. Does anyone have any suggestions ?
|
|
|
|
|
Have u installed VS 2005 recently?
Or do u have it installed on ur machine with the VS.net 2003?
Best Regards
3ala2
|
|
|
|
|
|
Have a look at the ASPNET user on your local machine. You can make some changes to this user within the machine.config. Google will help you how to do this.
|
|
|
|
|
Hi Expert,
I would like to ask a question, “Can I share session variable between two virtual directories in ASP.net 2.0. If possible then how can I achieve?
Any help is appreciated.
Regards,
Rajesh
rajesh
|
|
|
|
|
Hi,
I have built my own authentication system which uses a cookie to save the info about the user. All works fine until I want to retrive the info from the cookie. If the name of the cookie is the same as FormsAuthentication.FormsCookieName, the cookie cannot contain any value I want, because if the cookie contains any nonvalid values then the cookie will not show up in the Request.Cookies collection. I first put the value “a” in the cookie, and all works fine, then “b”, works fine, but if I combines them , “ab”, then the cookie wont show up in the Request.Cookies collection. What values can the auth cookie contain?
(ASP.NET 2.0)
Below is the code to test this.
Default.aspx:
<br />
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="test.aspx.cs" Inherits="test" Title="Untitled Page" %><br />
<html><br />
<head><br />
<title>test cookie</title><br />
</head><br />
<body><br />
<form id="form" runat="server" action="test.aspx"><br />
<asp:label id="cookievalue" runat="server"></asp:label><br />
<asp:button text="set cookie" id="setcookie" runat="server" OnClick="setcookie_Click" /><br />
</form><br />
</body><br />
</html><br />
Default.aspx.cs
<br />
using System;<br />
using System.Web;<br />
using System.Web.Security;<br />
<br />
public partial class _Default : System.Web.UI.Page <br />
{<br />
private string _cookieName;<br />
<br />
public _Default()<br />
{<br />
_cookieName = FormsAuthentication.FormsCookieName;<br />
}<br />
<br />
protected void Page_Load(object sender, EventArgs e)<br />
{<br />
if (Request.Cookies[_cookieName] == null)<br />
{<br />
Label1.Text = "no cookie";<br />
}<br />
else<br />
{<br />
Label1.Text = Request.Cookies[_cookieName].Value;<br />
}<br />
}<br />
<br />
protected void Button1_Click(object sender, EventArgs e)<br />
{<br />
setCookie();<br />
Response.Redirect(Request.Url.PathAndQuery);<br />
}<br />
<br />
private void setCookie()<br />
{<br />
HttpCookie cookie = new HttpCookie(_cookieName, "ab");<br />
cookie.Expires = DateTime.Now.AddDays(7);<br />
Response.Cookies.Add(cookie);<br />
}<br />
}<br />
|
|
|
|