ASP. NET encountered a problem, "the object cannot be converted from dbnull to another type", record ~ The problem has been solved. Thank you ~

It's really strange that ASP. net in the project can query the processing cost function for a period of time. The local debugging is good, and there is no problem at all, but the transfer to the server has a problem ~ The problem is normal, but the

ASP Ajax started

The long-awaited Ajax technology has never had time to really learn. Today, I just saw an Ajax request class, which is well written. It's also enough to introduce it and try it! HotheartOfAjaxrequest v0.8.06( 06.29) The following is an example

ASP. NET data binding expression

1. Data Binding expression '/> '> '> String variable bound to the background code (must be of the Public type)1) Background codePublic string name = "Lonely sandcontinent ";2) Front-end HTML code name: Bind to method:Public String getuserphoto

Ckeditor3.0 uploads file configuration in the Asp.net environment and integrates ckfinder

FCKeditor is a WYSIWYG text editor dedicated to the use of open source code on the web page. It is lightweight and can be used without complicated installation steps. It can be used on multiple platforms, such as ASP, Asp.net, PHP, and JSP, and

Also learn ASP. NET 2.0 Ajax 2: Use the timer control

Clock Control IntroductionThis time, you will use the Microsoft ASP. NET 2.0 Ajax extensions server controls: scriptmanager, updatepanel, and timer to update part of the page. Add these controls to a page to limit the update of the entire page every

In Asp.net, the title, description, keyword, and style sheet of the website are dynamically changed.

// Modify the website title, description, keyword, and style table if (! Ispostback) {// page title page. title = "my website title"; // you must set the webpage head tag to the server control mode, that is, , otherwise, the URL description htmlmeta

ASP. net2.0 revealing Reading Notes: page output Cache

   The cache can greatly improve the performance of Web applications.The slowest operation performed on the ASP. NET page is the database access. It is very slow to open a database connection and read data. The best way to improve performance is to

Asp.net C # simple RSS reader

Public void processrssitem (string rssurl) { // Use a string rssurl as its parameter. This string contains the URL of RSS. It uses the value of rssurl to create a webrequest item System. net. webrequest myrequest = system. net. webrequest. Create

Asp.net profile-http://blog.sina.com.cn/s/blog_4a93ccea0100cx9v.html

ASP. NET project configuration and Optimization     1. implemented through the Web. config file 2. How to configure the Web. config file: (1) Configure ASP. NET Authentication Mode = "Windows" (IIS performs Authentication Based on application

On ASP. net2.0, the "sitemapfile" attribute is not set. For more information, see!

The following code is contained in the web. config file: The following problem occurs:1 "descroption" attribute not declared2 "sitemapfile" attribute not declared3. The "securitytrimmingenabled" attribute is not declared.It is said to be

Seven classic Asp.net page value passing questions

  Question 1: a page: pagea. ASPX page contains a textbox ID textbox1 and a button ID button1;A user control: the webpage of UCA. ascx has a label ID label1. This UCA. ascx is pulled into pagea. aspx.Enter a value in textbox1 and press button1. Then,

Recently, Asp.net encountered a "runtime error" solution.

Runtime error Note:An application error occurs on the server. The current custom error settings of this application Disable remote viewing of detailed information about application errors (for security reasons ). However, you can view it in a

Asp.net Excel import or export

Import  Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->/** Filepath: Excel path sheetname: the worksheet at the bottom of Excel is sheet1 by default. Each worksheet is treated as a table

Asp.net MVC2 and mvc3

What are routedebug and routedebugger?   In ASP. in the. net mvc program, routing is a very core concept. It can be said that it is the entry of the MVC program, because every HTTP request must go through route computing, then match the

Encryption and decryption in ASP. NET

Design in ASP. NETTwo aspectsEncryption and decryption: one isConfiguration section in the configuration fileEncryption and decryption, the other isData in ASP. NET. In. net, encryption and decryption technologies can be dividedTwo Types. One is

Asp.net create a thumbnail

Record a common function for saving thumbnails. /// /// generate a thumbnail /// /// source image path (physical path) /// thumbnail path (physical path) /// thumbnail width /// thumbnail height // / Create a thumbnail Public static void

Common string filtering methods in Asp.net

Using system;Using system. text;Using system. Text. regularexpressions; Namespace bjmti{/// /// Summary of include./// Public class include{Public include (){//// Todo: add the constructor logic here//} # Region string truncation Function/// ///

Asp.net Excel Operation Summary

1. generated by Dataset Public void createexcel (Dataset ds, string typeid, string filename){Httpresponse resp;Resp = page. response;Resp. contentencoding = system. Text. encoding. getencoding ("gb2312 ");Resp. appendheader ("content-disposition",

Asp.net download file (File contenttype)

System. Io. fileinfo file = new system. Io. fileinfo (pstrfilepath ); If (file. exists) { Response. Clear (); Response. charset = "gb2312 "; Response. contentencoding = system. Text. encoding. utf8; Response. addheader ("content-disposition",

Total Pages: 1800 1 .... 1743 1744 1745 1746 1747 .... 1800 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.