打印

[NET精华教程] .net教程:图片上传的codebehind(自动生成所略图)

.net教程:图片上传的codebehind(自动生成所略图)

using system;
using system.collections;
using system.componentmodel;
using system.configuration;
using system.data;
using system.drawing;
using system.web;
using system.web.sessionstate;
using system.web.ui;
using system.web.ui.webcontrols;
using system.web.ui.htmlcontrols;
using system.text;
using cj168.util;



namespace cj168.web.mag.admins.fedata
{
    /// <summary>
    /// summary description for fedata.
    /// </summary>
    public class feuploadpic : system.web.ui.page
    {
        protected system.web.ui.webcontrols.textbox txtboxpictitle;
        protected system.web.ui.webcontrols.calendar calpicdate;
        protected system.web.ui.webcontrols.dropdownlist ddlpictype;
        protected system.web.ui.webcontrols.textbox txtboxpicintro;

        protected system.web.ui.htmlcontrols.htmlinputfile filepicname;
        protected system.web.ui.webcontrols.button btnsubmit;

        protected system.web.ui.webcontrols.label lblpicinfo;
        protected system.web.ui.webcontrols.textbox txtboxpicdate;
        protected system.web.ui.webcontrols.requiredfieldvalidator requiredfieldvalidator1;
        protected system.web.ui.webcontrols.regularexpressionvalidator vldcatname;
        protected system.web.ui.webcontrols.requiredfieldvalidator requiredfieldvalidator2;
        protected system.web.ui.webcontrols.customvalidator customvalidator1;
        protected system.web.ui.webcontrols.regularexpressionvalidator regularexpressionvalidator1;

        protected system.web.ui.webcontrols.hyperlink hlkoripic;
        protected system.web.ui.webcontrols.hyperlink hlknewpic;
        protected system.web.ui.webcontrols.regularexpressionvalidator regularexpressionvalidator2;
        protected system.web.ui.webcontrols.regularexpressionvalidator regularexpressionvalidator3;
        protected system.web.ui.webcontrols.checkboxlist checkboxlistrewrite;
        
        
   
        private void page_load(object sender, system.eventargs e)
        {
            // put user code to initialize the page here
            //if(page.ispostback)
            //txtboxpicdate.text = calpicdate.selecteddate.tostring();

            if(!page.ispostback)
            {
                bind2dropdownlistpictype();

                //for(int i = 0;i < request.files.count; i++)
                //{               
                //    checkboxlistrewrite.items.selected = false;
                /


TOP

返回顶部
AYBlue

Processed in 0.069170 second(s), 7 queries.

当前时区 GMT+8, 现在时间是 2009-1-8 15:03 京ICP备06054220号

清除 Cookies - 联系我们 - 163K.com - Archiver - WAP