Imports System
Imports System.IO
Imports System.Drawing
Imports System.Drawing.Imaging
Imports System.Text
- Dec 31 Wed 2008 18:15
ASP.NET產生驗查碼四碼圖片,直接把IMAGE設成這個程式檔就可以用了
- Dec 31 Wed 2008 18:14
ASP.NET從資料庫中拿出圖片連結用JAVA做圖片自動切換
ASP.NET從資料庫中拿出圖片連結用JAVA做圖片自動切換
<%@ Import Namespace="System.Data" %>
<%@ Import NameSpace="System.Data.SqlClient" %>
<%
- Dec 31 Wed 2008 18:13
ASP.NET上傳圖檔自動修改成固定大小
ASP.NET上傳圖檔自動修改成固定大小
Protected Sub Button2_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button2.Click
Dim filename As String = Session("name").ToString & ".jpg"
If FileUpload1.HasFile Then '檢查是否有檔案
Dim fileallow As Boolean = False '是否允許上載
- Dec 31 Wed 2008 18:10
用asp.net做出行事歷從資料庫拿出事件顯示
<table border="0" cellpadding="0" cellspacing="0"
width="185">
<tr>
<td height="25">
<table border="0" cellpadding="0" cellspacing="0"
- Dec 31 Wed 2008 18:10
Asp.net用smtp寄出信件
Asp.net用smtp寄出信件
Try
Dim newPassword As String = ""
newPassword = newPassword & ((Rnd() * 99) \ 1) & Chr(Rnd() * 25 + 65) & ((Rnd() * 99) \ 1) & Chr(Rnd() * 25 + 65) & ((Rnd() * 99) \ 1) & Chr(Rnd() * 25 + 65)
SqlDataSource1.UpdateParameters("id").DefaultValue = id
- Dec 31 Wed 2008 18:09
ASP.NET將GridView表頭排序加上方向--vb.net
ASP.NET將GridView表頭排序加上方向--vb.net
Protected Sub GridView1_RowCreated(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles GridView1.RowCreated
'GridView1.SortExpression.ToString()
- Dec 31 Wed 2008 18:08
ASP.NET將FormView,GridView裡的DropDownList控制裡面的TextBOX
將FormView,GridView裡的DropDownList控制裡面的TextBOX
Protected Sub DropDownList4_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs)
CType(FormView1.Row.Cells(0).FindControl("post_titalTextBox"), TextBox).Text = CType(FormView1.Row.Cells(0).FindControl("DropDownList4"), DropDownList).SelectedValue
End Sub
- Dec 31 Wed 2008 18:07
ASP.NET將FormView,GridView匯出到excel
將FormView,GridView匯出到excel
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim name As String = "attachment;filename="
name += Request.QueryString("name") + ".xls"
Response.Clear()
- Dec 31 Wed 2008 18:05
ASP.NET將FormView,GridView匯出到word
將FormView,GridView匯出到word
Protected Sub Button2_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button2.Click
Dim name As String = "attachment;filename="
name += Request.QueryString("name") + ".doc"
Response.Clear()