I have an Asp.net application that is part of a match larger system, it reads most of it’s configuration from files that are above the root level of the web application.
As the application is already written and the format of the configuration files was chosen to ease editing by customers I can not make use of the solution in “Shared co...
Hi,
I created an ASP.NET MVC 1.0 application that works fine on my machine (running in vs 2008 web server). However, when I deploy it to my webhost (running in medium trust), I get the following exception on the first hit: could not find file or dependency System, Version 1.0.9.0. Looking at the stack trace, I saw target invocation exce...
I'm in a ASP.NET application using Windows Authentication.
I'm using HttpContext.Current.User.Identity.Name to get the username of the currently authenticated user, which gets me a username in the format DOMAIN\USERNAME. This is working fine.
Is there an easy way to convert this to a display name (e.g. "Richard Gadsden") like the one ...
DUPLICATE: http://stackoverflow.com/questions/802839/my-links-dont-work-in-ie-but-do-in-firefox
Hi,
I have the following code that works in FF but not in IE, can anyone tell me why that would be?
<a href="ContentAdmin.aspx"><input type="button" value="Cancel" /></a>
...
I need a way to store application-level data (i.e. cross user sessions) in ASP.NET. In J2EE I'd use the ServletContext. Is there an equivalent in ASP.NET?
...
I've taken a look at the StackOverflow question, "Password Encryption / Database Layer AES or App Layer AES," and I'd like to effectively and efficiently hash my passwords on registration (web app) and then be able to check they are correct on login. I'm using VB, but comfortable using C#.
I would love to use Jeff Atwood's Encryption...
I have a simple web service whereby the security is handled via forms based authentication.
WCFTestService.ServiceClient myService = new
WCFTestService.ServiceClient();
myService.ClientCredentials.UserName.UserName = "user";
myService.ClientCredentials.UserName.Password = "secret";
lblResult.Text = myService.GetData(1231);
myS...
Okay, I think I'm just making a stupid mistake here, but I want to create a Control (derived from System.Web.UI.Control) that is collapsible, using the good ol' ASP.net ViewState/PostBack model.
I have an ImageButton in my class, which I initialize in the OnInit() Event:
private ImageButton _collapseImage;
protected override vo...
While my ASP.NET project uses version 3.5 of the framework, the event log registers errors as coming from version 2.X of the framework such as this:
Event Type: Error
Event Source: ASP.NET 2.0.50727.0
Event Category: None
Event ID: 1334
Date: 2009-05-19
Time: 17:04:29
User: ...
The first time I log onto my webservice I want to use FormsAuthentication e.g.
myService.ClientCredentials.UserName.UserName = "name";
myService.ClientCredentials.UserName.Password = "password";
but once a user has logged onto my web app I dont want to have to know about his password so I would like to be able to connect to the webser...
I have an ASP.NET 2.0 web application running on a shared server of a well known web hosting provider. Occasionally I seem to be getting errors like this:
Could not find file 'C:\WINDOWS\TEMP\lxnmfrsz.dll'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for m...
Our hosting platform (running IIS6/ASP.NET 2.0) is configured to run under partial trust. In the machine wide web.config file we set the ASP.NET trust level to Medium (and lock to prevent overrides) and use a modified policy file.
When trying to add a custom HttpHandler to handle .aspx requests for a website running in this configurati...
I've been wrangling with creating my own File Browser Content Provider for Telerik's FileExplorer control. They have one example on their website, but it hasn't helped my solve some ASP.NET Page and UserControl life-cycle issues I've been having.
Is there better example out there of using the FileExplorer control with a custom Content P...
I have this membership site setup on my local machine using the ASP.NET membership provider. When I go to:
http://localhost/admin/
It redirects me to
http://localhost/Login.aspx?ReturnUrl=%2fadmin%2fDefault.aspx
Which is fine. But after I put in my login information, the page just seems to refresh. It doesn't actually log me in, ...
A third-party's webcontrol generates the following code to display itself:
<div id="uwg">
<input type="checkbox" />
<div>blah-blah-blah</div>
<input type="checkbox" />
</div>
Is it possible to change it to
<div id="uwg">
<input type="checkbox" disabled checked />
<div>blah-blah-blah</div>
<input type="checkbox...
Assume I have a column called A and I want to check if A is null or blank, is the proper way to check for this using the DataView's RowFilter:
DataTable dt = GetData();
DataView dv = new DataView(dt);
dv.RowFilter = "A IS NOT NULL OR A IS NOT ''";
The above doesn't seem to work though.
...
How could I go about mapping a domain alias, e.g. domainAlias.co.za, to a virtual folder under, e.g. mainDomain.co.za, so that all requests to domainAlias.co.za actually get served by mainDomain.co.za/domainAlias ?
...
A customer is asking if there is anything we can do to remove "/Pages" from his Internet-facing MOSS publishing site. Some Googling reveals that some clever use of HTTPModules may be able to hide the presence of Pages, but I've yet to see an end-to-end working solution. Have any of you come up against this particular requirement, and i...
I have a WCF Service which returns 1000 records from database to the client. I have a ASP.NET WCF client - ( i have added service reference in asp.net web application project to consume WCF). I get the following message when i run the client application -
The maximum message size quota for incoming messages (65536) has been
exceede...
On a page I'm adding retrieve forgotten USERNAME
Step 1) Enter email address (Get account by email)
Step 2) Verify Security Question (they provide answer and I validate it)
Step 3) Send them an email with username
Step 2 is where I'm stuck. How do I validate the answer with what's stored in the database?
All values are hashed.
I se...