Web Forms :: Security That Effects Being Able To Use An I.P. Address Or DSN In A Data Source Name?
Dec 10, 2010
For some reason, I changed something today while installing an instance of SQL Server. And now if I try to use the i.p. address of the machine instead of the name of the machine in DATASource of my sqlconnection string, I get an error. It worked fine before.Also, what exactly is "networkService" as an option for security when creating an instance of SQl Server?
I created a website and i restrired the website such a way that i can be acessed from a IP i configured.I did this as shown in below steps which i got from:
http://support.microsoft.com/kb/324274
Under IP Address and Domain Name Restrictions, click Edit.
Do one of the following:To deny access, click Granted Access, and then click Add. In the Deny Access On dialog box that appears, specify the option that you want, and then click OK.The computer, group of computers, or domain that you specified is added to the list. To grant access, click Denied Access, and then click Add. In the Grant Access On dialog box that appears, select the option that you want, and then click OK.
The computer, group of computers, or domain that you selected is added to the list. Click OK.
But its not working . I am able to browse from other machine which have a different ohter IP. Do i have to configure somewhere else ?
I see that the changes done to CAS permissions (say changing the permission set of applications running in my computer) do not work immediately. I noticed before that the changes did take effect later on. Can anyone tell me what needs to be done to see the effects of the changes immediately?
I am new to developing asp.net. I have a Microsoft Access database file (.mdb) I am including as a data source on a form. This populates a drop down list on the page. When I run the page in a browser it immediately asks for authentication. If I put in my windows username and password the page pulls up fine, and the drop down is populated with the data. If I don't, it just give me a 403 error and says I'm not authorized. I cannot figure out how to make this page stop requiring authentication. I have only tried one thing. In the web.config file there is an attribute called authentication. It was set to "Windows" I tried setting it to "None" but that did not appear to have any effect. It still asked for my username and password. How can I make an asp web page using a Microsoft Access data source not reqire user authentication to view the web page?
if it is possible to use a WCF Dataservice as the MemberShipProvider for a forms auth application. I have written code for a provider (below), but I do not know what to do as far as a connection string, or any other web.config properties. Please Help!!! Here is the code for my provider, anytime it says Odbc that is because I based this off of the custom Odbc provider on the msdn site. The only ACTUAL references to any odbc connection are in the comments:
I am using an accordion pane with 10 panes in a modal pop up extender.I also have 10 link buttons in the same modal pop up on clicking each button respective pane should be opened. There is no issue in opening the panes on button click. I did it in the click event dynamically. But the panes are opened directly without any easing effects or animation applied to them. Whereas when we click on header the animation is working.
i m trying to develop a tabbed content slider. during this i am facing two problems.
first i don't know how to create the queue effects mean, i want to animate first div, after completion of first animation than second animation would be started.
for this i using the callback function here, but i want to know is there any other procedure to do this thing.
second there is jerk in the animation at second and fourth tab.
I've implemented URL routing in my new ASP.NET 4 Web Forms application and it's actually working quite nicely. It's an ecommerce app so product names are in the URL now -- as opposed to ProductIDs.The other day, as I was testing the application, I came across a situation where two product names had identical names. It then dawned on me that in order to prevent this from happening, one of the things I'll have to implement is adding product categories in front of the product name -- which is not a bad idea to begin with. However, now I'll end up with a really long varchar field in the database that needs to be indexed. Additionally, I'll have to make sure that this field will stay unique i.e. I can't allow /electronics/digital-media-players/accessories/some-generic-recharger in that field more than once otherwise, my URL routing logic won't be able to determine which product the user is requesting.I'm sure others have run into such issues. I'd appreciate some advice on this.
Is adding product category in front of the product name in an effort to make it as unique as possible a good idea? After all it's a lot less likely that some-generic-recharger will be there more than once under a specific product category than in any category.Will indexing a field with such long varchar values be a problem in terms of database and lookup performance?Is there another approach that would work better in my situation?
i have an aspx page which on page load needs to populate a text box with the current users email address (user is in Active Directory), any body know how to retrieve the email address from Active Directory, i have read this article on the web but am a bit confused
string userName = Environment.UserName; string domainName = Environment.UserDomainName; //Set the correct format for the AD query and filter string ldapQueryFormat = @"LDAP://{0}.com/DC={0},DC=com"; string queryFilterFormat = @"(&(samAccountName={0})(objectCategory=person)(objectClass=user))"; SearchResult result = null; using(DirectoryEntry root = newDirectoryEntry(rootQuery)) { using(DirectorySearcher searcher = new DirectorySearcher(root)) { searcher.Filter = searchFilter; SearchResultCollection results = searcher.FindAll(); result = (results.Count != 0) ? results[0] : null; } } string primaryEmail = result.Properties["mail"][0] as string;
There is no defintion of rootQuery- so not sure what that is, or a definition for searchFilter
I have an application where in the User Authentication is from the AD useing Directory services.
If i type in the address of a valid page from the application into the Address Bar, it throws me to the Login Page.
However if i am logged in and i type in the address of a valid webpage, the application takes me to the page. Is there any way that this can be restricted.
If i type in the URL into the address bar the application should throw me to the Home page of the application.
we have one e-commece website which combine one ip address and 4 domains, I want apply for one ssl certificate bind ip for this site, is it possible to be used for 4 domains? is it possible to apply for certificate for ip address?
I am using gridview with update panel Animation extender for updating effects. Everything is working fine but when page expires(means session ends) and I try to uupdate(edit,delete record) it fadeout the grid but donot fadein and shows following javascript error as image. I want if session ends it should redirect to login instead of fading out and showing javascript error message
In my update Membership account routine, I have the sub:
[Code]....
This sub runs successfully and everything is updated, including the membership question and answer, except the membership.getuser.email address which is not updated.
I have a create user wizard on my page. Requires Security question hasbeen set to false. Once a new user is registered they can log in fine. If they forget their password, i have written code so that the user can enter the email address they used to register and a replacement is sent. The problem is I have written an application that is accessed by different people. So if the user that registered the account leaves the company