當前位置:首頁 » 操作系統 » ASP電子相冊源碼

ASP電子相冊源碼

發布時間: 2022-08-29 01:41:44

⑴ win7下搭建asp電子相冊是什麼意思

就是用win7系統,在自己電腦上運行用asp編寫的電子相冊程序源碼

⑵ 如何用asp編寫電子相冊,實現上一張,下一張,以及自動播放

JS不就可以實現么
http://www.17sucai.com/pins/326.html
http://www.jsfoot.com/js/images/qh/

⑶ 找一個用ASP.NET(C#)做的電子相冊

您好,自己寫一個吧 不過你的vs和sql過時了吧 雖然不影響什麼 但是總覺得不是那麼舒服。

編譯器版本太低了 如果別人發給你 你得也不一定能打開,本來是想給你寫一個的 但是我最近比較忙 所以就不能給你寫了 再說我現在用vs2012了 你的編譯器也打不開呀。
藉助Baihi示意我們
有機會能夠處理你所遇到的工作
具體的要求也能夠示意我們
我想找一個用ASP.NET(C#)做的相冊管理**
ES:\\

⑷ 我有個ASP.NET程序里需要添加個相冊功能 在網上看到有個相冊控制項和源碼 但是不知道怎麼填進去

其實這個,即使你在網上搜索了源代碼下來,也不定能夠運行或是看懂它,因為思路不一樣,但既然是Asp.Net做的,那麼應該有相應的控制項才行,不可能全是硬編碼,你在Asp.Net開發中,找找這個控制項,一般都有自帶的控制項,至於事件,你可得好好分析一下它的思路了。或是你去網上搜索一下用Asp.Net添加相冊功能的一些簡單描述,然後根據自己的思路來編碼。希望你成功。

⑸ C#製作電子相冊,求大神給源碼啊

刪除本地圖片
首先獲得圖片的路徑
string address="路徑";

FileInfo file = new FileInfo(address);
file.delete();

增加就直接保存圖片框裡面的圖片就OK了

SaveFileDialog fileone = new SaveFileDialog();
fileone.OverwritePrompt = true;
fileone.Filter = "BMP文件|*.bmp|GIF文件|*.gif|JPG文件|*.jpg|PNG文件|*.png|ICO文件|*.ico|所有文件|*.*";
fileone.FilterIndex = 1;
fileone.ShowDialog();
if (fileone.FilterIndex == 1)
{
this.picBox.Image.Save(fileone.FileName, System.Drawing.Imaging.ImageFormat.Bmp);
userHelper.iniSuffix = ".bmp";
}
else if (fileone.FilterIndex == 2)
{
this.picBox.Image.Save(fileone.FileName, System.Drawing.Imaging.ImageFormat.Gif);
userHelper.iniSuffix = ".gif";
}
else if (fileone.FilterIndex == 3)
{
this.picBox.Image.Save(fileone.FileName, System.Drawing.Imaging.ImageFormat.Jpeg);
userHelper.iniSuffix = ".jpg";
}
else if (fileone.FilterIndex == 4)
{
this.picBox.Image.Save(fileone.FileName, System.Drawing.Imaging.ImageFormat.Png);
userHelper.iniSuffix = ".png";
}
else
{
this.picBox.Image.Save(fileone.FileName, System.Drawing.Imaging.ImageFormat.Icon);
userHelper.iniSuffix = ".ico";
}
userHelper.iniAddress = fileone.FileName;
toolStripTextBox1.Text = fileone.FileName;

⑹ 跪求asp.net電子相冊!哪位大神發一個唄!

我有 你可以先到 you ku 搜我 點最新發布 看成品,或加我 一一三久二一似烏二六 空間視頻看效果。

⑺ ASP.NET開發電子相冊

你開始還是要別人開發?

⑻ 用ASP.NET(C#)做的電子相冊 ,VS2008做的,資料庫是Access的。發到我郵箱[email protected],急需

我做C#和C++的~
VB.NET的代碼你可以上 51ASPX.com 等源碼站 上找找。

或者記得VS中有個 VB代碼自動升級為VB.NET的,雖然不是特別准,不過手工對著轉換還是夠了。

⑼ 電子相冊Java源代碼(跪求)

頁面:
<%@ Page language="c#" Codebehind="filesystem.aspx.cs" AutoEventWireup="false" Inherits="WebShop.filesystem" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<title>filesystem</title>
<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
<meta content="C#" name="CODE_LANGUAGE">
<meta content="JavaScript" name="vs_defaultClientScript">
<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
<LINK href="CssStyle.css" type="text/css" rel="stylesheet">
<form id="Form1" method="post" runat="server">
</HEAD>
<body MS_POSITIONING="GridLayout">
<FONT face="宋體">
<table cellSpacing="1" cellPadding="0" width="777" align="center" bgColor="#336600" border="0">
<tr>
<td bgColor="#08498c" colSpan="3"><IMG src="images/FileSystemBaner.gif"></td>
</tr>
<tr>
<td width="170" bgColor="#e3e3e3" rowSpan="2">
<asp:linkbutton id="LinkButton1" runat="server">後退</asp:linkbutton></td>
<td width="604" bgColor="#efefef" colSpan="2">
<asp:datalist id="DataList1" runat="server" RepeatColumns="4" RepeatDirection="Horizontal" DataKeyField="Name"
Width="604">
<ItemTemplate>
<table width="150" align="center">
<tr>
<td align="center" width="10"></td>
<td align="left" width="140"><%#DataBinder.Eval(Container.DataItem,"Image")%>
</td>
</tr>
<tr>
<td width="10" align="right">
<asp:CheckBox ID="checkBox1" Runat="server" /></td>
<td width="140" align="left"><font face="宋體"><%#DataBinder.Eval(Container.DataItem,"Name")%></font></td>
</tr>
</table>
</ItemTemplate>
</asp:datalist></td>
</tr>
<tr>
<td align="right" bgColor="#efefef" colSpan="2"><asp:button id="Button3" runat="server" Text="刪除選中項"></asp:button>
<input id="fileFeild1" type="file" name="fileFeild1" runat="server">
<asp:button id="Button1" runat="server" Text="確定上傳"></asp:button><br>
<asp:textbox id="TextBox1" runat="server"></asp:textbox>
<asp:button id="Button2" runat="server" Text="創建目錄"></asp:button></td>
</tr>
<tr>
<td bgColor="#888888" colSpan="3"><span class="STYLE1"><asp:label id="Label2" runat="server" ForeColor="White"> 當前所在位置:</asp:label><SPAN class="STYLE1"><asp:label id="Label1" runat="server" ForeColor="White" Width="87px"></asp:label></SPAN></span></td>
</tr>
</table>
</FONT></FORM>
</body>
</HTML>

後台代碼:
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.IO;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;

namespace WebShop
{
/// <summary>
/// filesystem 的摘要說明。
/// </summary>
public class filesystem : System.Web.UI.Page
{
protected System.Web.UI.WebControls.LinkButton LinkButton1;
protected System.Web.UI.WebControls.DataList DataList1;
protected System.Web.UI.WebControls.Button Button3;
protected System.Web.UI.WebControls.Button Button1;
protected System.Web.UI.WebControls.TextBox TextBox1;
protected System.Web.UI.WebControls.Button Button2;
protected System.Web.UI.WebControls.Label Label2;
protected System.Web.UI.WebControls.Label Label1;
protected System.Web.UI.HtmlControls.HtmlInputFile fileFeild1;

private void Page_Load(object sender, System.EventArgs e)
{
if(!IsPostBack)
{
Bind();
}
}

private void Bind()
{
string initpath="";
if(Request["path"]==null)
{
initpath=Server.MapPath("FileSystem");
}
else
{
initpath=Request["path"];
}
this.Label1.Text=initpath;

DataTable dt=new DataTable();
DataColumn dc0=new DataColumn("Image",System.Type.GetType("System.String"));
dt.Columns.Add(dc0);
DataColumn dc1=new DataColumn("Name",System.Type.GetType("System.String"));
dt.Columns.Add(dc1);

DirectoryInfo di=new DirectoryInfo(this.Label1.Text);
DirectoryInfo[] dis=di.GetDirectories();
foreach(DirectoryInfo d in dis)
{
DataRow dr=dt.NewRow();
dr[0]="<a href='filesystem.aspx?path="+HttpUtility.UrlEncode(d.FullName,System.Text.Encoding.UTF8)+"'><img src='images/folder.gif' border=0/></a>";
dr[1]=d.Name;
dt.Rows.Add(dr);
}

FileInfo[] fis=di.GetFiles();
foreach(FileInfo f in fis)
{
string ex=f.Extension.ToLower();
if(ex==".jpg" || ex==".jpeg" || ex==".gif" || ex==".png" || ex==".bmp")
{
string fullname=f.FullName;
string urlpath=fullname.Substring(fullname.IndexOf("FileSystem"));
string url=HttpUtility.UrlEncode(urlpath,System.Text.Encoding.UTF8);
DataRow dr=dt.NewRow();
dr[0]="<a href='"+url+"' target='_blank'><img src='"+url+"' border=0 width=100 height=128/></a>";
dr[1]=f.Name;
dt.Rows.Add(dr);
}
}

this.DataList1.DataSource=dt;
this.DataList1.DataBind();
}

#region Web 窗體設計器生成的代碼
override protected void OnInit(EventArgs e)
{
//
// CODEGEN: 該調用是 ASP.NET Web 窗體設計器所必需的。
//
InitializeComponent();
base.OnInit(e);
}

/// <summary>
/// 設計器支持所需的方法 - 不要使用代碼編輯器修改
/// 此方法的內容。
/// </summary>
private void InitializeComponent()
{
this.LinkButton1.Click += new System.EventHandler(this.LinkButton1_Click);
this.Button3.Click += new System.EventHandler(this.Button3_Click);
this.Button1.Click += new System.EventHandler(this.Button1_Click);
this.Button2.Click += new System.EventHandler(this.Button2_Click);
this.Load += new System.EventHandler(this.Page_Load);

}
#endregion

private void LinkButton1_Click(object sender, System.EventArgs e)
{
string Parent=Directory.GetParent(this.Label1.Text).ToString();
if(Parent.IndexOf("FileSystem")>-1)
{
Response.Redirect("filesystem.aspx?path="+Parent);
}
else
{
return;
}
}

private void Button1_Click(object sender, System.EventArgs e)
{
HttpPostedFile hpf=this.fileFeild1.PostedFile;
string ClientPath=hpf.FileName;
string filename=Path.GetFileName(ClientPath);
string ex=Path.GetExtension(filename);
if(ex==".jpg" || ex==".jpeg" || ex==".gif" || ex==".png" || ex==".bmp")
{
string SavePath=this.Label1.Text+"\\"+filename;
hpf.SaveAs(SavePath);
Bind();
}
else
{
Response.Write(Tools.GetAlertJS("所上傳的圖片格式不正確!"));
return;
}
}

private void Button2_Click(object sender, System.EventArgs e)
{
string filename=this.TextBox1.Text;
Directory.CreateDirectory(this.Label1.Text+"\\"+filename);
Bind();
}

private void Button3_Click(object sender, System.EventArgs e)
{
for(int i=0;i<this.DataList1.Items.Count;i++)
{
if(((CheckBox)this.DataList1.Items[i].FindControl("CheckBox1")).Checked)
{
int index=this.DataList1.Items[i].ItemIndex;
string filePath=this.Label1.Text+"\\"+this.DataList1.DataKeys[index].ToString();
if(Directory.Exists(filePath))
{
Directory.Delete(filePath,true);
}
if(File.Exists(filePath))
{
File.Delete(filePath);
}
Bind();
}
}
}
}
}

這個是C#的 你改下 Java的就行

熱點內容
安卓手機怎麼找微信隱藏對話 發布:2025-05-14 23:07:47 瀏覽:336
怎麼查看泰拉伺服器ip 發布:2025-05-14 23:03:29 瀏覽:72
c語言學生成績查詢系統 發布:2025-05-14 22:58:30 瀏覽:4
怎麼進別人的伺服器 發布:2025-05-14 22:45:55 瀏覽:772
用編程寫音樂 發布:2025-05-14 22:45:08 瀏覽:782
如何識別電腦的網路配置 發布:2025-05-14 22:38:46 瀏覽:847
pipforpython3 發布:2025-05-14 22:38:34 瀏覽:350
如何把迷你世界的伺服器搞崩 發布:2025-05-14 22:37:15 瀏覽:94
如何讓安卓卡死機 發布:2025-05-14 22:36:27 瀏覽:634
wemall微商城源碼 發布:2025-05-14 22:15:20 瀏覽:804