. NET using js to transfer values to the parent page using subforms

Subpage C # background code:Copy codeThe Code is as follows:/// /// Assign the set value to the parent page/// /// value to be passed Void SetValueToParentPage (int count, string strPersons){StringBuilder jsStr = new StringBuilder ();JsStr. Append (

Asp.net TextBox only allows the input of numbers.

Copy codeThe Code is as follows: Width = "80px" onafterpaste = "if (isNaN (value) execCommand ('undo ')"> In fact, the server control can also add events such as onkeydown and up. In this way, only decimals and numbers can be entered. In. net

A brief overview of Farpoint usage

The Farpoint Excel operation function is very powerful. Here we will briefly record several usage of Farpoint.1. Open an Excel template Copy codeThe Code is as follows:This. FpSpread1.OpenExcel (Server. MapPath ("../Report/" + strReport); // open an

Recommended Method for transferring large amounts of data (data tables) between pages in Asp.net

Can data be transmitted between two different sites? I want to transfer the data of Site A to Site B .......Cache is recommended.(1) it is unlikely that the program performance will not be affected. As you have said, it is a large amount of data.

How to bind the Repeater control to an array and an ArrayList

Front-end code:Copy codeThe Code is as follows: Background code:Copy codeThe Code is as follows:Public void bindrptarry (){String strs = "li | wen | yuan ";String [] str = strs. Split ('| ');Rptarry. DataSource = str;Rptarry.

Asp.net allows you to selectively retain columns in a able.

Copy codeThe Code is as follows:// DataDataTable dtObject = dt;// Keep the columnString [] saveColumns = new string [5];SaveColumns [0] = "X"; // reserved column 1SaveColumns [1] = "XX"; // reserve column 2SaveColumns [2] = "XXX ";SaveColumns [3] = "

Notes on ASP. NE website publishing

Key points for deploying ASP. NET websites to IIS:1. For Windows XP, the account for running IIS is "computer name \ ASPNET", and for Windows Vista and Windows Server 2003The IIS account is "network service ". If a folder on the website allows users

Asp.net c # Call Baidu pai for online translation, English to Chinese

First go to Baidu: register an apikeyHttp://developer.baidu.com/wiki/index.php? Title = % E5 % B8 % AE % E5 % 8A % A9 % E6 % 96% E6 % A1 % A3 % E9 % A6 % 87% E9 % A1 % B5/% E7 % 96% BE % E5 % BA % A6 % E7 % BF % BB % E8 % AF % 91APIThen the code is

C # SetWindowPos window top-up instructions

Copy codeThe Code is as follows:[DllImport ("user32.dll", CharSet = CharSet. Auto)]Private static extern int SetWindowPos (IntPtr hWnd, int hWndInsertAfter, int x, int y, int Width, int Height, int flags );/// /// Get the current activity window/// /

C # implementation of interface implicit and display and applicable scenarios

Previously, when using interfaces, I never noticed that interfaces are implemented by implicit implementation and display. I saw the relevant content when I browsed my blog yesterday. Now I can record it based on my understanding, so that I can

Iis configuration asp.net FAQ Solution

Many of my friends have encountered many problems when using IIS6 websites. Some of these problems have been encountered in IIS5 in the past, and some of them are new. I have been busy for one afternoon.I have tried many times and made this

How to Set asp. NET connections

When a stress test is performed or the server requests a specific domain name, the connection volume at the same time is by default. the. NET Framework is limited. It takes effect only after being set. I found this problem only after checking that

Asp.net Mvc authentication, exception handling, permission verification (interceptor) implementation code

1. User Logon This document describes how to save the current user's logon information (session, cookie) after a user successfully logs on. This document describes identity authentication (in fact, it is based on cookies, next let's look at the code.

Introduction to the TO_DATE format in Oracle

TO_DATE format (take the time: 2007-11-02:45:25 as an example)Year:Yytwodigits two-year display value: 07Yyythreedigits: 007Yyyyfourdigits four-digit year display value: 2007Month:Mmnumber: 11Monabbreviated Character Set indicates the displayed

Code for converting IP addresses and integers (asp.net)

Knowledge Point: a binary number, shifts n places left by bit, that is, multiplying the value of this number by the Npower of 2Shifts one digit right after division of Binary1. convert an IP address to an integer Principle: each segment of an IP

Solution for hiding controls in ListView

This is the code in the ListView template. paste it for easy understanding:Solution 1:Copy codeThe Code is as follows: to hide the DeleteButton and EditButton buttons Copy codeThe Code is as follows:CommandName = "Edit" Text = "Edit"/> 'width =

Asp. Net Mvc2 addition, deletion, modification, query, DEMO attachment download

1. List page. Generally, List pages are used to display data. The List page in this article provides data display and paging, deletion, addition, and modification operations. Because some people in the garden are still using ViewData when using MVC

Code for converting the amount into RMB capital in regular expression 1

Copy codeThe Code is as follows:Public static string ConvertToChineseMoney (double money){If (money Throw new ArgumentOutOfRangeException ("the parameter money cannot be a negative value! ");String s = money. toString ("# L # E # D # C # K # E # D #

Solution to asp.net page inaccessible due to installation of the FRAMEWORK and IIS

ASPX page access requires. net support.Check whether the installation is complete. NET, open IIS, right click on the default website, if no ASP. The. NET tab is not installed or is not installed. NET registered to IIS.1. Not Installed. download. .

Instance where the object reference is not set to the object (System. NullReferenceException)

The following is a basic explanation of this error:1: essentially incorrect:Copy codeThe Code is as follows:Object a; // a is a Null object.Protected void Page_Load (object sender, EventArgs e){A. ToString (); // call the method of a Null Object} Of

Total Pages: 1075 1 .... 910 911 912 913 914 .... 1075 Go to: GO

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.