Hi,
I am working with asp.net website project that some of pages need authentication. I am using asp.net membership.
I read some answers. e.g. make all of those pages in folder and create inner web.config that describe the privilege. This is one way solve the problem but I need way that is more fixable and effective.
...
Hello all,
I have built a logic that if i enter duplicate value i should get Message like:"UserName already exists,try another name"
but i am getting different message:"Violation of UNIQUE KEY constraint 'UserName'. Cannot insert duplicate key in object 'Login'. The statement has been terminated." In table Login UserName set as Unique k...
Hi,
I'm working on a web application (with ASP.NET 2.0 (C#) and jQuery)
In my application we have an interface using which our employees are able to enter records of a comany. We provided the interface with basic fields, Company Name, Contact Person, phone, etc. Now as you know some companies have thier branches, some have few (1 to 10...
I want to display items as follows,
<td1> <td2> <td3> <td4>
1 7 13 19
2 8 14 20
3 9 15 21
4 10 16 22
5 11 17 23
6 12 18
I am getting data (from 1......23) in a single column from database. N...
Per Yahoo's best practices for high performance web sites, I'd like to remove Etags from my headers (I'm manually managing all my caching and have no need for Etags... and when/if I need to scale to a farm, I'd really like them gone). I'm running IIS7 on Windows Server 2008. Anyone know how I can do this?
...
I have a map of a building and I'd like to programmatically highlight specific rooms based upon user input.
I'd like to do it from the server side if possible, and eventually, I'd like to be able to highlight multiple rooms. To elaborate more, this feature is for an exhibition. Users will be viewing data about an exhibitor, click th...
I have an existing asp.net webforms application with all its business logic and DAL in the app_code folder.
What is the best way to structure tests with nunit ? Add a separate test project to the solution or do I have to put the tests in the app_Code folder ?
...
The following code was known to be working three weeks ago. In the interim we have installed IE 7 and a bunch of security patches. The ultimate question will be, does anyone know how to restore the old behavior?
Scenario
We have the following JavaScript code in web page 1 (let's call it foo.aspx), that is invoked on a button click:
wi...
Hi!
My problem is simple, but I cannot find a way to solve it :(
When the user clicks a specific button, I need to open a new aspx page (in a new window) so that he is able to select something that needs to be returned to the original page.
I was able to open the new page with window.open, however, I'm not able to set the selected valu...
A very simple ?: operator in C#, combined with a simple array and LINQ (to Objects) call to Reverse() is apparently enough to cause the exception "System.Security.VerificationException: Operation could destabilize the runtime." when run on an ASP.NET web site running with "High" trust (note that "Full" is the default)
Here is the code, ...
I would like to avoid to specify manually maxlength attributes for all form input
elements, and instead to use size information from the Data Model if possible:
e.g.
<%= Html.TextBox("Titel", ViewData.Model.Titel, (object)new { @maxlength = "10" })%>
would it be possible "translate" the DbType Attribute in the LINQ class ?
[Column(S...
Hello, I have the following code:
<script type="text/javascript">
$(document).ready(function() {
$("#Save").click(function() {
$.post("url", {
"data": "data"
}, function(data) {
alert(data);
});
});
});
</script>
I'm testing this script, an...
I want to make sure my local is matching the production environment closely and that means running IIS and not the ASP.NET development server that comes with Visual Web Developer express edition. What is the best way to do this?
...
I need to implement a grid in asp.net that behaves almost exactly like MS Excel.
- can navigate around with arrow keys
- you can edit the cell that currently has focus by simply typing
- supports checkboxes, dropdownlists, etc
One crucial requirement is....I need to be able to somehow, after update of any cell within a row, pass that up...
I'm using forms authentication on a very small ASP.NET web app (Web Forms) in which I want to store additional info about the user in a separate database table.
This is then linked back to the aspnet_User table and I was figuring the best column to link to is the UserId column. Problem is I can't work out how to get this piece of data w...
Currently, i have basic C++ and PHP skills.
But, i want to switch to C# and ASP ( for the web part ).
Why ? you will ask.
Because i have the opportunity to learn pretty easily C# ( including OOP-ed ) to a pretty advanced level.
And because i read that ASP is very similar to C#, i'm thinking to learn it.
So, there are many stuff that can...
I have a question related to gridviews in ASP.NET
I have a gridview that I pull information from a SQL db and it displays the username and current status IE;
Username | Status
user1 | Logged Out
user2 | Logged in
user3 | On Leave
So this is working all handy dandy, however what I'd like to do is rather that display ...
hi,
i have two applications - one is an asp.net website and the other is a windows service.
both applications are referencing my business layer (library project), which itself is referencing my data access layer (library project) that itself uses the enterprise library data application block to receive the data form a sql server 2005 d...
My organization has a lot of legacy ASP software on its hands.
Since our perception is that Microsoft has shown a distinct lack of support for its older products, we need to figure out what to migrate to next.
If we migrate to ASP.NET from Classic ASP, It feels like that'd be a 'complete rewrite' "migration". Since that is probably th...
a couple of days ago I had this idea, why not implementing asp-classic as another language in .net...
it would have helped lots of people to migrate to the new platform...
I mean there's IronRuby, IronPython, etc...
It sounded to me like a great idea... but, come on, I'm no genius, there must be some reason why they haven't done so......