国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 編程 > .NET > 正文

ASP.NET 常見問題

2024-07-10 12:54:58
字體:
來源:轉載
供稿:網友

1.在提交的時候過程很長,為了防止用戶再次點擊而且為了界面友好可以用一個層遮住所有按鈕再顯示個提示信息,等服務器端處理完成再導航到本頁(location.href='地址')就可以:


<div id="doing" runat="server" >
                <table width="100%" height="100%">
                    <tr align="center" valign="middle">
                        <td>
                            <table width="169" class="font3" height="62" bgcolor="#6699ff" >
                                <tr align="center" valign="middle">
                                    <td>頁面提交中,請等待<br>
                                        please wait
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </div>

pageload里面這么寫:this.button1.attributes.add("onclick","document.getelementbyid('doing').style.visibility='visible';");
,等操作結束重定向了后頁面重新加載一次,這個層也就消失了。。。


page.smartnavigation 屬性
獲取或設置指示是否啟用智能導航的值


如果啟用智能導航,則為 true;否則為 false。

備注
在大多數情況下不要在代碼中設置該屬性。在 .aspx 文件的 @ page 指令中將 smartnavigation 屬性設置為 true。請求該頁時,動態生成的類將設置該屬性。

internet explorer 5.5 或更高版本瀏覽器請求頁時(或稍后),智能導航將通過執行下列功能提高用戶對該頁的操作能力:

消除導航導致的閃爍。
從一頁移動到另一頁時保持滾動位置。
保持導航之間的元素焦點。
在瀏覽器的歷史記錄中只保留最后一頁的狀態。
智能導航最適用于需要頻繁回發但是其可是內容在返回時不會發生顯著更改的 asp.net 頁。在決定是否將該屬性設置為 true 時,請仔細考慮這一點。


[c#]
void page_load(object sender, eventargs e)
{
   this.smartnavigation = true;
}
void button_click(object sender, eventargs e)
{
   label1.text="<b>the value of 'smartnavigation' property is </b>" + "'" + this.smartnavigation + "'";
}

它最外邊還是有一個frameset。你可以注意到與ajax的區別就是窗口底下多了個一閃而過的藍色進度條(我真希望ie能有辦法去掉這個)。其實很簡單,幾秒鐘搞定!就是把你的頁面的屬性 smartnavigation 設置為 true
1遇到的問題:
使用了驗證控件,編譯時提示“無法找到腳本庫……”
解決方法:
由于更換了主目錄路徑,應將在wwwroot下的aspnet_client文件夾拷到新的目錄下即可

2遇到的問題:
關于style中的alpha濾鏡
解決方法:
濾鏡說明:
alpha:設置透明層次.
濾鏡:alpha
語法:
style="filter:alpha(opacity=opacity,finishopacity=finishopacity,style=style,startx=startx,starty=starty,finishx=finishx,finishy=finishy)"
說明:
opacity:起始值,取值為0-100,0為透明,100為原圖.

finishopacity:目標值.

style:1或2或3

startx:任意值

starty:任意值

例子1:filter:alpha(opacity="0",finishopacity="40",style="2")

例子2:<div id="mymenu" >(即半透明)

附常見濾鏡:

style的css設置 2005-5-5 11:54:18

語法:style="filter:filtername(fparameter1,fparameter2...)}(filtername為濾鏡的名稱,fparameter1、fparameter2等是濾鏡的參數)

濾鏡說明:

alpha:設置透明層次.

blur:創建高速度移動效果,即模糊效果.

chroma:制作專用顏色透明.

dropshadow:創建對象的固定影子.

fliph:創建水平鏡像圖片.

flipv:創建垂直鏡像圖片.

glow:加光輝在附近對象的邊外.

gray:把圖片灰度化.

invert:反色.

light:創建光源在對象上.

mask:創建透明掩膜在對象上.

shadow:創建偏移固定影子.

wave:波紋效果.

xray:使對象變的像被x光照射一樣.

1.濾鏡:alpha

語法:

style="filter:alpha(opacity=opacity,finishopacity=finishopacity,style=style,

startx=startx,starty=starty,finishx=finishx,finishy=finishy)"

說明:

opacity:起始值,取值為0-100,0為透明,100為原圖.

finishopacity:目標值.

style:1或2或3

startx:任 ?

starty:任意值

例子:filter:alpha(opacity="0",finishopacity="40",style="2")

2.濾鏡:blur

語法:

style="filter:blur(add=add,direction=direction,strength=strength)"

說明:

add:一般為1,或0.

direction:角度,0-315度,步長為45度.

strength:效果增長的數值,一般5即可.

例子:filter:blur(add="1",direction="45",strength="5")

3.濾鏡:chroma

語法:

style="filter:chroma(color=color)"

說明:

color:#rrggbb格式,任意.

例子:filter:chroma(color="#ffffff")

4.濾鏡:dropshadow

語法:

style="filter:dropshadow(color=color,offx=offx,offy=offy,positive=positive)"

說明:

color:#rrggbb格式,任意.

offx:x軸偏離值.

offy:y軸偏離值.

positive:1或0.

例子:filter:dropshadow(color="#6699cc",offx="5",offy="5",positive="1")

5.濾鏡:fliph

語法:

style="filter:fliph"

例子:filter:fliph

6.濾鏡:flipv

語法:

style="filter:flipv"

例子:filter:flipv

7.濾鏡:glow

語法:

style="filter:glow(color=color,strength=strength)"

說明:

color:發光顏色.

strength:強度(0-100)

例子:filter:glow(color="#6699cc",strength="5")

8濾鏡:gray

語法:

style="filter:gray"

例子:filter:gray

9.濾鏡:invert

語法:

style="filter:invert"

例子:filter:invert

10.濾鏡:mask

語法:

style="filter:mask(color=color)"

例子:filter:mask(color="#ffffe0")

11.濾鏡:shadow

語法:

filter:shadow(color=color,direction=direction)

說明:

color:#rrggbb格式.

direction:角度,0-315度,步長為45度.

例子:filter:shadow(color="#6699cc",direction="135")

12.濾鏡:wave

語法:

filter:wave(add=add,freq=freq,lightstrength=strength,phase=phase,strength=strength)

說明:

add:一般為1,或0.

freq:變形值.

lightstrength:變形百分比.

phase:角度變形百分比.

strength:變形強度.

例子:filter:wave(add="0",phase="4",freq="5",lightstrength="5",strength="2")

13.濾鏡:xray

語法:

style="filter:xray"

例子:filter:xray 

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 苗栗市| 措美县| 高淳县| 龙陵县| 城步| 永仁县| 栖霞市| 罗甸县| 永登县| 崇文区| 望都县| 灵山县| 孝昌县| 万年县| 乌兰察布市| 漳州市| 大兴区| 甘孜| 陆良县| 丘北县| 乐平市| 离岛区| 开封县| 湟源县| 辽宁省| 宣城市| 和政县| 桐庐县| 察雅县| 福贡县| 谢通门县| 探索| 凤庆县| 永丰县| 东乡族自治县| 呼图壁县| 含山县| 日照市| 惠来县| 金坛市| 崇州市|