asp.net-3.5

Not able to configure IIS 7 for ASP.NET 3.5 app

最后都变了- 提交于 2019-12-11 12:59:42
问题 I developed a small ASP.NET 3.5 app. with only few pages and no DB connectivity. I am trying to publish it, but my website gives error: **Parser Error Message:** It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS. **Source Error:** Line 45: Line 46: --> Line 47: <authentication mode="None"/> Line 48: <!-- Line 49: The <customErrors> section

Bundling & Minification in ASP.NET 3.5

这一生的挚爱 提交于 2019-12-11 09:52:19
问题 ASP.NET 4.5 includes a new feature to minify and bundle CSS and JavaScript within your web application. Is there anything similar to apply bundling and minification for CSS and JS files in ASP.NET 3.5 (Web forms)? 回答1: I think there is no built in tool is available in 3.5 You can use YUICompressor and add those compressed version in your page There is a YUICompressor for .Net is available 来源: https://stackoverflow.com/questions/20123344/bundling-minification-in-asp-net-3-5

Is there a way to detect when an update panel is done refreshing?

ⅰ亾dé卋堺 提交于 2019-12-11 07:28:09
问题 Is there a way to detect when an update panel is done refreshing? I want to fire some javascript methods when the update panel is finished. Perhaps via the UpdateProgress control? 回答1: You can use: Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler); function EndRequestHandler(sender, args) { // do what you want here } Of course, this will caputure every AJAX EndRequest call so you'll have to make your EndRequestHandler function see what has been requested or play

What is faster and why?

℡╲_俬逩灬. 提交于 2019-12-11 07:06:21
问题 For maintainability reasons, I want to database drive my javascript, in that I only want to send the javascript which is needed based on the users options. So, is it faster/less resource heavy to have links in the database pointing to javascript files, then using response.writefile to embed those files into the clientside page, or is it faster/less resource heavy to stick the javascript script straight into the database, and response.write it onto the screen as and when needed? 回答1: So, is it

XML StringWriter empty

落花浮王杯 提交于 2019-12-11 05:05:57
问题 I have some XML in a XMLDocument and I want to put it into a StringWriter , but it always becomes empty(?) instead. I've tried inspecting the variables with debug, but I'm still clueless as to what's going on. Here's what I have: XmlDocument xmlInput = new XmlDocument(); /* after this executes, xmlInput has lots of data in it */ xmlInput.LoadXml(...); XslCompiledTransform transform = new XslCompiledTransform(); /* I'm pretty sure Template.xslt is being found and loaded correctly */ transform

How to Import Namespace on ASP.net Page

佐手、 提交于 2019-12-11 04:59:09
问题 I have created a Class named SearchableGridView in my App_Code directory. I'm using <Assembly: TagPrefix("MyApp.WebControls", "SearchGridView")> Namespace MyApp.WebControls I have referenced it in web.config as: <add namespace="MyApp.WebControls"/> I have also included the following on my content page: <%@ Import Namespace="MyApp.WebControls" %> <asp:SearchGridView ID="SearchGridView1" runat="server"> </asp:SearchGridView> However, when I build the project, I receive the error: Warning 1

what can cause asp.net to stop responding

徘徊边缘 提交于 2019-12-11 02:00:01
问题 we have an asp.net application, that makes heavy use of REST/json services through httpwebrequest and heavy use of the web cache. seemingly sporadically, the worker process simply stops responding. the browser sits expecting a response and never gets one. only an app pool restart seems to remedy the problem. there are no unhandled exceptions or any other anomalies that we have noticed. cpu and memory loads are low (<10% cpu util, >80% free memory) the only possible hint that we have had is

Edit a gridview inside a modalpopup without closing popup

烈酒焚心 提交于 2019-12-11 01:50:05
问题 I've got a modal popup (using ModalPopupExtender) working in a kind of master/detail view for a grid. When you click a button on one grid, it displays a popup window containing another grid of information, based on the row clicked in the first grid. This works well... I've enabled editing in the grid that is popped up. When you click edit though, the popup window disappears. If I click the display button in the first grid though to bring the popup window visible again it displays, and is now

How to Disable ASP.net AJAX Framework in ASP.net 3.5

笑着哭i 提交于 2019-12-11 00:08:02
问题 I'm working on an ASP.net 3.5 website with MooTools as the AJAX framework. I want to disable ASP.net's AJAX framework so it behaves more like ASP.net 2.0. This is to decrease page loading times and to reduce incompatibilities. Is this possible and if so how do I go about it? 回答1: I was able to remove the System.Web.Extensions assembly from the references, and then I found and removed all instances of the ScriptManager control. Once I did this, none of the AJAX framework stuff is rendered to

Make URL in ASP.Net user-friendly

*爱你&永不变心* 提交于 2019-12-10 23:38:03
问题 I'm trying to develop my first site in ASP.Net using Web Forms. I have a form with some controls and a TextBox control. While now I use GET request. When user submits a form his browser expects to get long URL, something like http://mysite.com/search.aspx?__VIEWSTATE=%2FwEPDwUJNTE2NjY5jMY4D2QWAgICD2QWAgIDDW8wAh4EVGV4dAUBMWRkZKthQ0zeIP5by49qIHwSuW6nOj8iLTdoCUzpH369xyg8&__EVENTVALIDATION=%2FwEWAwLnrcHhBQLs0bLrBgKM54rGBjGtX5fJOylLy4qRbt6DqPxO%2FnfcMOkHJBRFqZTZdsBD&TextBox1=sfs&Button1=Button if