What is the best way to limit the number of (concurrent) users accessing a web application that any one can introduce for selling website/application to client and how to increase the number of users accessing it remotely?
...
How to hide controller name in Url?
I use the ASP.NET MVC.
The original url is: http://www.sample.com/Users.mvc/UserDetail/9615
The "Users" is controller name, the "UserDetail" is action name, and the "9615" is UserId.
How can I hide the controller name and action name in the url.
Just like this: http://www.sample.com/9615
I have...
i want ask some question about asp.net mvc
Is static constructor will init every user request?
Is static data share for every user?
...
I looking into building authentication in my ASP.NET application with the following requirements.
A user has exactly one Role (i.e. Admin, SalesManager, Sales, ....)
A role has a set of permissions to CRUD access a subset of existing objects. I.e.
"Sales has CREAD, READ, WRITE permission on object type "Products" but not DELETE"
Someho...
We have the following code:
<asp:ScriptManager runat="server">
...
<Services>
<asp:ServiceReference Path="~/JSONServices/ProfileService.svc" />
</Services>
...
This results in a javascript proxy found in /JSONServices/ProfileService.svc/js
this javscript has content expiry set to the same t...
I have the following project solution:
There is a ASP.NET MVC Web
Application where I have a SQL
database (mdf file) in the App_Data directory.
There is a class library where I
have some migrations from
migratordotnet. In my build file I
have to specify where the SQL
database is so it can run the
migrations.
For the moment on the mig...
Does anyone know how to set up a default querystring to an asp.net webform which is set up as a start up page?
...
I have a repeater control with a check box, if I check the box then my delete functionality will delete an item in the underlying table.
When I test the delete functionality on an aspx page with a code behind page, everything works fine. Hooray!
However, when I take the repeater and put it into a User Control, the delete functionality ...
Hi,
I have an requirement that, in my application on clicking an button i have to laod one more application with the same template which i was using for my application.
So, on clicking the button in my application i have used one intermediate page in that using iframe i passed that URL of an external application. Its working fine.
But...
I have created an asp.net website that connects to a SQL server database. Currently on my development machine I have the connection set to a SQL server express database with the file residing in the App_Data file of the website.
I now need to upload the site to my host of which I have an SQL server database set up. They have provided me...
Random quick question.
The System.Web.Cache class, at what level is the information stored? On a per session level or whole application level?
Thanks
...
In the following code doesn't work as
public void Foo()
{
CompanyDataContext db = new CompanyDataContext();
Client client = (select c from db.Clients ....).Single();
Bar(client);
}
public void Bar(Client client)
{
CompanyDataContext db = new CompanyDataContext();
db.Client.Attach(client);
client.SomeValue = "foo";
...
Can I get some constructive feedback about the following architecture?
Simplified Architecture Summary:
Return XML from your SQL Server (using FOR XML) and pass it straight into a XSL transform to produce a rich HTML web site.
What are the pro’s and con’s of such a system when compared with a conventional 3-tier ASP.NET architecture?...
I am writing the data to the output browser using Response.write(some byte arrary)
Response.ContentType = "application/ms-excel";
Response.ContentEncoding = System.Text.Encoding.Default;
Response.OutputStream.Write(report, 0, report.Length);
Response.Flush();
Response.Close();
In my file I am ha...
Hi,
To use the built in Localization (Resource Provider) in ASP.NET can only handle translated strings (see GetString("key", locale) with no user defined arguments if I have read the documentation correct.
What is the best, to build a custom resource provider that can handle arguments like GetString("key", locale, parameters)? To use t...
I'm looking to dynamically control a set of drop downs so that they'll filter their items after another drop down's index has been changed.
I'm working in C#/ASP.net and it would be great if I could get the necessary data straight from Sql Server. I suppose I could generate an xml file whenever new data is uploaded to the server but tha...
I have a new ASP.NET MVC project (my first), and I had been running fine with 1 controller, view, and model. After I added a new controller and view, my first view started throwing this error message when I try to run the project:
Description: An error occurred during the parsing of a resource required to service this request. Please re...
Hi, am having trouble with visible attribute of an asp.net panel. Basically I have a page that calls a database table and returns the results in a detailsview. However, some of the values that are returned are null and if so I need to hide the image thats next to it.
I am using a panel to determine whether to hide or show the image but...
For a selectcommand in a sqldatasource is there any way to have the following:
select col1, col2
from mytable
where col1 IN (@inClause)
@inClause would be an array of integer, for example.
I don't think this is even possible in T-SQL, so my assumption is that it is not possible, but just wondering if there's a way to do it?
...
One of the web pages on our site is extremely long. Although the page itself does not call any javascript or jquery functions, its base page registers the JQuery source script (jquery-1.2.6.js) and this seems to cause IE7 to display the "A script on this page is causing Internet Explorer to run slowly." message when you click on a link t...