I want to use code access security and add code modify group. but I dont see .NET Configuration Tool in the administrator tools.
so where can I find this tool?
Thanks in advance.
For some reason it takes 7 seconds to open a connection to a sql server database for the firt time, subsequent connections takes a second. any idea what could be the reason?
I'm using C# and asp.net
Its after compilation, i essence every time i restart the site, which means every time it needs to actualy create the "first" connection. i understand that setting up connection pooling has overhead, but i have never seen that i should take 7 second to set it up.
I want the following structure in my ASP.NET MVC solution;
Controllers/HomeController.cs
Controllers/Administration/AdministrationController.cs
Controllers/Administration/UsersController.cs
Views/Home/Index.aspx
Views/Administration/Index.aspx
Views/Administration/Users/Index.aspx
Views/Administration/Users/AddUser.aspx
etc.
How can I make it work so I get http://localhost/Administration/Users ? Do I need a route for this, or create a new Administration area?
Thanks.
Is there a good library to resize an image in .NET with good quality? I'm not pleased with the quality of resized images that GDI+ produces.
It does not matter if the library is free or at a cost.
I'm implementing paging on an ASP.NET MVC view, and I want to call a method in the controller from the view.
Code in the view:
<a href="<%= Url.Action("Search",
new { page = NextPage(Request["exactPage"])).ToString()}) %>">
Controller method:
public string NextPage(string currentPage)
{
return (int.Parse(currentPage) + 1).ToString();
}
How can I call the NextPage method from the view?
thanks!
I'm having a lot of problems with FormsAuthentication (http://stackoverflow.com/questions/2964342/problem-with-asp-net-authentication) and as as potential work around I'm thinking about storing the login in the Session?
Login:
Session["Auth.ClientId"] = clientId;
IsAuthenticated:
Session["Auth.ClientId"] != null;
Logout;
Session["Auth.ClientId"] == null;
I'm not really using most of the bells and whistles of FormsAuthentication anyway. Is this a bad idea?
I heard that ASP.net MVC does not maintain View State.So,here is my question
I have an MVC -View which has forward and backward html button.When i click forward and again
click backward ,how can i maintain html control state then?
I have a Perl script that calls aspnet_compiler.exe to compile a large ASP.NET website. The problem is that it takes very long to run. Is there any way to compile just a single .aspx file from the command line? (I think that would suit the needs of my script) It seems that all aspnet_compiler.exe can do is compile at a directory level.
In my asp.net 2005 app, I would like conceal the app structure from the user. Currently, the end user can learn intimate details of my web app as they navigate and watch the url change. I don't want the end user to know about my application structure. I would like the browser url to not change if possible. Please advise.
thanks
E.A.
I have converted a PowerBuilder application to 11.5 .NET. When it builds, it compiles into a DLL, an EXE and a bunch of “netmodule” files. Are the netmodules necessary for deployment, or just part of some intermediate step? Is there any way to get the compiler to build me one DLL for each pbl (PowerBuilder library)?
I know that whenever you add/remove/modify any file in the "App_Code", "App_GlobalResources", and "bin" directories that ASP.NET will recompile and essentially restart the application.
My question is : "What happens to any threads currently executing durring the change?"
Do they finish? Is a Thread.Abort Exception thrown?
What happens if the application itself makes a change in any of those directories?
I'm rendering a DropDownList in my Visual Studio 2005 ASP.NET code behind page out to an HtmlTextWriter, but when I try to add the SelectedIndexChanged event that doesn't get rendered.
Any ideas? Is this even possible?
Hi,
I trying to use jQuery validation plugin with DataAnnotations in asp.net mvc 2 final. Now I'm using MicrosoftMvcValidation.js and it works. But I can't find way to work with jQuery validation. I read about MicrosoftMvcJQueryValidation.js. But I think that it is obsolete. How can I use DataAnnotations with jQuery validation plugin?
I am currently on a hosted Virtual Server, I want to enable GZip compression for my Asp.Net 3.5 site, how do I go about starting?
I have tried using 'packed' JS files, but they don't work, I am assuming it's because they are not handled correctly...?
We have message framing working by using a lengh prefix but using .NET 2.0 beginSend/BeginReceive.
Is message framing any different in 3.5, if so how should we implement it using the new framework?
Are there any useable examples out there which focus purely on message framing using 3.5?
Many thanks
Hello, Where I can download sources of .net frameworke. I mean sources of libraries. I need sources of reflection methods like invoke and other.
Thanks.
I know this is a terrible way of doing things, but it's for an internal app where security is no issue.
Basically, an old group created a php page with a drop down and this drop down is populated with entries from a DB. The DB owner is currently absent and for the sake of time, I would just need something that turns the entries in that drop down, always at the same url with the same ID every load into a List. Is there a quick, painless way to do this in .NET?
I'm not getting to hang of the entire FormAuthentication thing. Is there an up-to-date tutorial somewhere? I found this one, but it a bit old and the syntax doesn't match recent Asp.Net MVC.
This should be a simple question but I haven't managed to find the answer on google.
I would like to know, in terms an idiot can understand, exactly what application lifetime means in ASP.NET (and therefore when you can expect application start and end events to run).
I assumed it would be when you run and stop the app in IIS, but I've read things that suggest it's related to number of requests.
Hi,
I'm writing an application in wpf that uses MVVM. I wondered if I could use ado.net entity data model as a model in MVVM? Is it the same? If not, why?
Thanks for any help.
Regards,
Ev.
i am using below code to print my content of webpage in asp.net using javascript
window.print(document.getElementById('dvPrint'));
when i do print, it automatically adds date time on page.. (i think because of page setup) in firefox. please tell me how can i remove this setting. i mean i dont want datetime to be printed automatically on my print page (even if its set in pagesetup).
I need to capture the 'Update' click event with jQuery in an asp.net GridView and have no way of knowing where to start. I'm still rather new to jQuery. My GridView is attached to a SQLDataSource and, naturally, has all the bells and whistles that that combination affords. Any help would be greatly appreciated.
Hi I'm new to ASP.NET MVC
and i want to create a class to contain site wide functions for my application
what is the best practice to do this?
where should i create the class ? in what folder?
should i create a new folder?
In an ASP.net MVC 2 app that I have I want to return a 204 No Content response to a post operation. Current my controller method has a void return type, but this sends back a response to the client as 200 OK with a Content-Length header set to 0. How can I make the response into a 204?
[HttpPost]
public void DoSomething(string param)
{
// do some operation with param
// now I wish to return a 204 no content response to the user
// instead of the 200 OK response
}