asp.net-2.0

Sending data between an asp.net page and a pop up page?

女生的网名这么多〃 提交于 2019-12-21 06:04:49
问题 What are the different ways of communication between asp.net page and a popup page? Query strings etc. Which is most secure? 回答1: You say "communication between" the pop-up and the main ASP.NET page. First, I assume that the pop-up is an ASP.NET page as well so the communication from the main page to the pop-up is no different from the communication from one page to the next in a series of pages. That is, you can store and then use data in the session (if the data is available when the main

Integrating jQuery into an existing ASP.NET Web Application?

非 Y 不嫁゛ 提交于 2019-12-21 05:38:10
问题 Microsoft recently announced that the Javascript/HTML DOM library jQuery will be integrated into the ASP.NET MVC framework and into ASP.NET / Visual Studio. What is the best practice or strategy adopting jQuery using ASP.NET 2.0 ? I'd like to prepare a large, existing ASP.NET Web Application ( not MVC) for jQuery. How would I deal with versioning and related issues? Are the any caveats integrating jQuery and ASP.NET Ajax ? Or 3rd party components like Telerik or Intersoft controls? 回答1: For

SQL Server 2005 Reporting Services - Pros and Cons

痞子三分冷 提交于 2019-12-20 18:45:49
问题 I am developing a web application using ASP .NET 2.0, VS 2008 and SQL Server 2005. I would like to Use SSRS 2005 for the various reports I need to build for this web application. I would like to convince the team that we should adopt SSRS as the main reporting platform for most internal and external web applications we have. What are the pros and cons of Reporting Services? I can see many pros like tight integration with IIS, SQL Server and Visual Studio, rich presentation features and export

IIS7 Integrated Pipeline: Interaction between maxConcurrentRequestsPerCPU and requestsQueueLimit settings

拟墨画扇 提交于 2019-12-20 10:38:53
问题 Firstly there's a great overview of the IIS7 HTTP request lifecycle and various settings that affect performance here: ASP.NET Thread Usage on IIS 7.0 and 6.0 Very specifically though, in dotNet 4 the defaults for maxConcurrentRequestsPerCPU and requestsQueueLimit are set to 5000. E.g. equivalent to: (in aspnet.config): <system.web> <applicationPool maxConcurrentRequestsPerCPU="5000" maxConcurrentThreadsPerCPU="0" requestQueueLimit="5000" /> (** see note below) </system.web> Seems to me that

How can I learn ASP.NET? [closed]

余生颓废 提交于 2019-12-20 09:56:23
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . I am an absolute beginner at ASP.NET. How can I learn it better? Currently I am reading ebooks. Can you suggest better ways, or other

How to read parameter passed from asp.net page, using C#?

不想你离开。 提交于 2019-12-20 01:10:41
问题 I'm new to ASP.net, how can I read parameters passed from ASP.net page (http://website.com/index.aspx?id=12&nam=eee). Any small example will be appreciated, just something for me to start from. 回答1: Using your sample URL: string id = Request.QueryString["id"]; string nam = Request.QueryString["nam"]; Read about Request.QueryString on MSDN. You probably want to convert the id value to an int. 回答2: For security reasons, be careful with XSS attacks. Please use this library: http://msdn.microsoft

How to implement conditional formatting in a GridView

老子叫甜甜 提交于 2019-12-19 19:45:28
问题 I have a GridView on my aspx page which displays a collection of objects defined by the following class public class Item { public string ItemName{get; set;} public object ItemValue{get; set;} } Then in my aspx markup I have something like this <asp:GridView ID="MyTable" runat="server"> <Columns> <asp:BoundField DataField="ItemName" /> <asp:BoundField DataField="ItemValue" /> </Columns> </asp:GridView> What I want to know is: Is there a way to use conditional formatting on the ItemValue field

How to enable TLS 1.2 for API call in ASP.NET 2.0 application?

左心房为你撑大大i 提交于 2019-12-18 20:11:49
问题 Our ASP.NET 2.0 website processes credit card transactions via calls to Authorize.Net's API. Authorize has informed us that on a date certain, to be announced, our client must utilize TLS 1.2 protocol for API calls. Microsoft seemed to indicate that a solution is available in this 10-22-16 KB article: https://support.microsoft.com/en-us/help/3154517/support-for-tls-system-default-versions-included-in-the-.net-framework-2.0-sp2-on-windows-vista-sp2-and-server-2008-sp2 ...we have added the

Validation of viewstate MAC failed when on page for 20+ minutes

孤街醉人 提交于 2019-12-18 13:24:28
问题 If you open a web page on one of the websites hosted on our server, leave it for 20 minutes and then submit a form, a Validation of viewstate MAC failed. error occurs. What possible reasons could there be for this? 回答1: There's a few reasons this can happen: Auto-Generated Machine Keys: If your application pools have the default idle timeout of 20 minutes AND you're using auto-generated validation and decryption keys then each time the pool starts it will generate a new set of keys. This

Setting selected item in a ListBox without looping

[亡魂溺海] 提交于 2019-12-18 13:18:01
问题 I have a multi-select listbox which I am binding to a DataTable. DataTable contains 2 columns description and value. Here's the listbox populating code: DataTable copytable = null; copytable = GlobalTable.Copy(); // GlobalTable is a DataTable copytable.Rows[0][0] = "--ALL--"; copytable.Rows[0][1] = "--ALL--"; breakTypeList.DataSource = copytable; this.breakTypeList.DisplayMember = copytable.Columns[0].ColumnName; // description this.breakTypeList.ValueMember = copytable.Columns[1].ColumnName;