再將格式化好的程式碼貼回
切換至HTML編輯取代掉即可
function showmsg(msg) {
$.prompt(msg
, { buttons: { 確認: true },
close: function(e) {
window.location = 'xxxx.aspx';
}
,
submit: function(e) {
window.location = 'xxxx.aspx';
}
});
return false;
}
Partial Public Class _Default
Inherits System.Web.UI.Page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
End Sub
Private Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim alert As String = "showmsg('Hello World');"
Page.ClientScript.RegisterStartupScript(Me.GetType(), "PopupScript", alert, True)
End Sub
End Class
<appSettings>
<add key="aspnet:MaxHttpCollectionKeys" value="2500" />
appSettings>
#tablePagination
{
background-color: #DCDCDC;
font-size: 0.8em;
height: 20px;
padding: 0px 5px;
}
#tablePagination_paginater
{
margin-left: auto;
margin-right: auto;
}
#tablePagination img
{
padding: 0px 2px;
}
#tablePagination_perPage
{
float: left;
}
#tablePagination_paginater
{
float: right;
}
$(document).ready(function() {
var options = {
currPage: 1,
//ignoreRows: $('tbody tr:odd', $('#tbCardData')),
optionsForRows: [5, 10, 25, 50, 100],
rowsPerPage: 100,
firstArrow: (new Image()).src = "/images/firstBlue.gif",
prevArrow: (new Image()).src = "/images/prevBlue.gif",
lastArrow: (new Image()).src = "/images/lastBlue.gif",
nextArrow: (new Image()).src = "/images/nextBlue.gif",
topNav: true
}
$('table[id=tb1]').tablePagination(options);
});
=
month[0]="January";
month[1]="February";
month[2]="March";
month[3]="April";
month[4]="May";
month[5]="June";
month[6]="July";
month[7]="August";
month[8]="September";
month[9]="October";
month[10]="November";
month[11]="December";