asp.net

bind jquery DatePicker after partial update in ASP.Net MVC

In my view I`m using an Ajax call to dynamically show a form to add a new entry to a list. After the entry has been added sucessfully the list will be shown again. However, in this form I have a textfield where the user needs to type in a date. What would I need to do to dynamically bind the jquery UI DatePicker to this field? ...

how can I reload an update panel onclient side using javascript?

I have a gridview button that I programmatically created and I want to load an update panel on the client side with the sent data. I have a hidden value field that gets its data on the click of the gridview button and the dropdownlist in my updatepanel depends on that value. ...

How to launch an EXE from Web page (asp.net)

This is an internal web application where we would like the Web pages to contain links to several utilities that are Win32 EXE. The EXEs are trusted and produced by us. (don't care if it asks if its ok to Run or Save). I tried direct link (e.g. C:\notepad.exe) which works locally only. (This will be a share on the network). Tried File://...

Is there a way to ensure that an ASP.NET application is (only) running on the HTTPS protocol?

I'm wondering if there is a way to ensure that an ASP.NET application can only be run using the HTTPS protocol I'm fine with any code (defensive programming measure perhaps?) that can do the trick, or possibly some IIS/web server setting that can get the job done. ...

My Dynamic Data Enttiy wep App. does not include App_code?

i asked: There are Two kind of template in asp.net 3.5 1) Dynamic Data Web App. 2) Dynamic Data Web App. Entities My SQL database has got Customer Table ; Columns : ID, Name,Surname vs. if you use first one(Dynamic Data Web App); you can not see ID column(Customer Table) (Linq to Sql) But if you use second one(Dynamic Data Web App....

Unhandled Exception CachedRawResponse asp.net

Unable to cast object of type 'System.Web.Caching.CachedRawResponse' to type 'System.Web.Caching.CachedVary'. I'm getting this on an AJAX call to an aspx page, and can find no information about it in webland. CachedRawResponse isn't even on MSDN. Does anyone know anything about it, or maybe point me in the right direction? ...

Grid view binding

I am binding an Object datasource to a grid view. My object has a collection of items in one of the properties.Which is a List. How do I Loop thru this and bind the items to a column in GridView?. ...

Dynamic Data App_code directory - where is it?

i try to learn learn Dynamic Data Entties . i see some sample about it. they try to teach some codes in App_code. i really want to learn where is my Ap_code? ...

ObjectDataSource reacts to commented-out GridView?

I came across a very strange behavior in asp.net's ObjectDataSource, the description to reproduce is somewhat long, so bear with me while I set the scene. So, imagine a trivial ObjectDataSource/GridView combo in a User Control. The ObjectDataSource calls a method which returns a List of objects, and the GridView shows these objects in...

"ASP.NET" error: Access to the remote server is denied because no login-mapping exists

I'm able to execute a stored procedure which queries a Linked Server directly, but when I call the same sproc though ASP.NET then I get the following error: Access to the remote server is denied because no login-mapping exists. When I execute it through SSMS, I am connected through my Windows domain account. The site is ASP.NET ...

Frequent Access Denied to Temporary ASP.NET Files.

Literally every second time I run a big ugly web site project, I get an UnauthorizedAccessException, with a message pointing to a DLL, e.g. Temporary ASP.NET Files\ctheweb\0d76d363\4695c81f\App_Web_vi6bbbpy.dll' is denied. I then stop and restart the project, and it runs fine. I do some testing, debugging, fixing, run it again, and get...

Any Free Alternative to the ASP.net Calendar Control?

Here are the problems I am having with the control from the factory: no easy way to get the first visible date (yeah I could use day render, but at that point in the page cycle, I can't do what I need to, which is manipulate a collection in viewstate) changing the visibledate property in my code does not raise the visiblemonthchanged ...

MSBuild ASP.NET VB6 DLL Interop

We have a C# ASP.NET 3.5 project with VS 2008. We also have a VB6 DLL that we call via Interop (yuck...I know). We use a Web Deployment project with MsBuild and run a batch file to build the project on a build machine. My question is: Is there a way to modify the MSBuild project to have the VB6 DLL and interop files created and moved...

How do I reference a master page from an aspx page?

How do I reference a master page from an ASP.NET webform? The following statement does not work: this.MasterPage.Page.Title = "My Title"; ...

ASP.net not generating javascript for some User Agents

***************Edit 2***************** I figured out the problem... But I don't like the implications. I was testing our iPhone targeted mobile application earlier and using a plugin to mask Firefox's User Agent String as an iPhone. .Net was infact NOT generating the required code for post backs based on that piece of information alone...

MetaData.cs Where is it? Dynamic Data Entities?

There are Two kind of template in asp.net 3.5 1) Dynamic Data Web App. 2) Dynamic Data Web App. Entities My SQL database has got Customer Table ; Columns : ID, Name,Surname vs. if you use first one(Dynamic Data Web App); you can not see ID column(Customer Table) (Linq to Sql) But if you use second one(Dynamic Data Web App. Entities)...

Are there any good e-commerce extensions/plugins for Umbraco?

I'm working on a project that will use Umbraco for CMS capability, but also has a fairly simple ecommerce requirement. I'm aware of Commerce4Umbraco, are there others? Or, should I look elsewhere for simple e-commerce functionality. Would be nice to use the same platform for CMS and e-commerce... stuck with Umbraco though. ...

VS 2008 Toolbox shows multiple instances of the same control

I have VS 2008 Team Suite on my notebook, when i create a web page and open the toolbox, i see multiple instances of the same control. Is there any way to fix this? Similar question here . I tried the only solution posted, it did not work ...

.Net Regex match grouping and repetition question

I have the following VB.Net 2.0 in an ASP.Net app: output = Regex.Replace(output, "<p>(?:(?:\<\!\-\-.*?\-\-\>)|&(?:nbsp|\#0*160|x0*A0);|<br\s*/?>|[\s\u00A0]+)*</p>", String.Empty, RegexOptions.Compiled Or RegexOptions.CultureInvariant Or RegexOptions.IgnoreCase Or RegexOptions.Singleline) Example stuff it matches well: <p></p> <p> ...

AuthorizeAttribute injecting Repository

I have a custom authorizeattribute: RoleAuthorizeAttribute:AuthorizeAttribute i am overriding OnAuthorization method, however inside this RoleAuthorizedAttribute, i need to call a method in my repository class. I am using castle windsor for dependency injection. Here is my constructor: public RoleAuthorizeAttribute(IMembershipServ...