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.
I have an ASP.NET page which utilizes jQuery for an autocomplete-type scenario. The jQuery tucks the actual selected values into a hidden field it creates on the fly, but for some reason I cannot get the value of that standard HTML field on postback by calling Request.Form["HiddenFieldName"]. I can see it by ordinal in the Request.Form object, but if I add/remove controls it will break. Any suggestions?
I have a asp.net page that have 2 modalpopupextender.
the problem is this:
When i open the firste modal popup from the code behind the second modal popup is automaticly open.
Any ideas?????
Is there a way to tell the .NET to allocate a new object in generation 2 heap. I have a problem where I need to allocate approximately 200 MB of objects, do something with them, and throw them away. What happens here is that all the data gets copied two times (from gen0 to gen1 and then from gen1 to gen2).
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'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 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.
I'm trying to deploy a segment of our site to a new server, and I'm getting the following error when I try to pull up any ASP.Net page...
"401 - Unauthorized: Access is denied due to invalid credentials.
You do not have permission to view this directory or page using the credentials that you supplied."
What permissions should I be checking?
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 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 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?
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)?
Hi,
I am working in an ASP.NET mvc application. With regards to URL's I could see the Controller and action names in the address bar when user navigates between pages. Is there a way to hide them, such that the address bar always displays http://mywebsite.com without any action names or controller names suffixing them, or is there any other standard practices? Or is it ok to leave the URL as such which can contain action and controller suffixes?
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 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?
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?
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'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.
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
}
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.