asp.net FAQ

Source: Internet
Author: User
Tags visibility
Asp.net| problem

1. In the process of submission is very long, in order to prevent users from clicking again and for the sake of the interface can be a layer to cover all the buttons to display a message, and so on server-side processing completed and then navigate to the page (location.href= ' address ') can be:


<div id= "doing" runat= "style=" z-index:12000; left:0px; Visibility:hidden;  width:100%; Position:absolute; top:300px; height:100% ">
<table width= "100%" height= "100%" >
&LT;TR align= "center" valign= "Middle" >
<td>
<table width= "169" class= "Font3" height= "bgcolor=" #6699ff "style=" Filter:alpha (opacity=75); width:169px; height:62px ">
&LT;TR align= "center" valign= "Middle" >
<td> page submission, please wait <br>
Please wait
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>

Pageload inside so write: this. BUTTON1.ATTRIBUTES.ADD ("onclick", "document.getElementById (' doing '). style.visibility= ' visible ';");
, such as the completion of the operation after the redirect page reload, this layer also disappeared ...


Page.smartnavigation Property
Gets or sets a value that indicates whether smart navigation is enabled


True if smart navigation is enabled, otherwise false.

Note
In most cases, do not set this property in code. Set the SmartNavigation property to True in the @ Page directive of the. aspx file. When the page is requested, the dynamically generated class sets the property.

When an Internet Explorer 5.5 or later browser requests a page (or shortly), smart navigation improves the user's ability to manipulate the page by performing the following functions:

Eliminates flicker caused by navigation.
Keep scrolling position when moving from one page to another page.
Keep the element focus between navigation.
Only the state of the last page is kept in the browser's history.
Smart navigation is best suited for asp.net pages that require frequent postbacks but that do not change significantly when content returns. Consider this carefully when deciding whether to set this property to 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 + "'";
}

It still has a frameset at the very outside. You can notice that the difference with Ajax is that there is a flashing blue progress bar under the window (I really hope ie can get rid of this). Actually, it's simple, just a few seconds! is to set the property SmartNavigation of your page to True
1 Problems encountered:
Using the validation control, compile-time prompts "Unable to find the script library ..."
Workaround:
Because the home directory path has been replaced, the Aspnet_client folder under Wwwroot should be copied to the new directory

2 Problems encountered:
About the Alpha filter in style
Workaround:
Filter Description:
Alpha: Sets the transparency level.
Filters: Alpha
Grammar:
Style= "Filter:alpha (Opacity=opacity,finishopacity=finishopacity,style=style,startx=startx,starty=starty, Finishx=finishx,finishy=finishy) "
Description
Opacity: Starting value, the value is 0-100,0 to transparent, 100 is the original image.

Finishopacity: Target value.

Style:1 or 2 or 3

STARTX: Any value

Starty: Any value

Example 1:filter:alpha (opacity= "0", finishopacity= "," style= "2")

Example 2:<div id= "MyMenu" style= "Filter:alpha (opacity=50); border:1px solid" > (ie Translucent)

Attach Common filters:

Style CSS Setting 2005-5-5 11:54:18

Syntax: style= "Filter:filtername (Fparameter1,fparameter2 ...)}" (FilterName is the name of the filter, Fparameter1, Fparameter2, etc. are parameters of the filter)

Filter Description:

Alpha: Sets the transparency level.

Blur: Create a high speed move effect, i.e. blur effect.

Chroma: Make the special color transparent.

DropShadow: Creates a fixed shadow of an object.

FLIPH: Create a horizontal mirrored picture.

FLIPV: Create a vertical mirrored picture.

Glow: Gaguang is outside the edge of the nearby object.

Gray: Grayscale the picture.

Invert: anti-color.

Light: Creates a light source on an object.

Mask: Creates a transparent mask on an object.

Shadow: Create offset fixed shadow.

Wave: ripple effect.

Xray: Make the object appear to be X-rays.

1. Filters: Alpha

Grammar:

Style= "Filter:alpha (Opacity=opacity,finishopacity=finishopacity,style=style,

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

Description

Opacity: Starting value, the value is 0-100,0 to transparent, 100 is the original image.

Finishopacity: Target value.

Style:1 or 2 or 3

StartX: Ren?

Starty: Any value

Example: Filter:alpha (opacity= "0", finishopacity= "," style= "2")

2. Filters: Blur

Grammar:

Style= "Filter:blur (add=add,direction=direction,strength=strength)"

Description

ADD: generally 1, or 0.

Direction: Angle, 0-315 degrees, step to 45 degrees.

Strength: The effect of the growth of the value, generally 5 can be.

Example: Filter:blur (add= "1", direction= "", strength= "5")

3. Filters: Chroma

Grammar:

Style= "Filter:chroma (Color=color)"

Description

Color: #rrggbb格式, arbitrary.

Example: Filter:chroma (color= "#FFFFFF")

4. Filters: DropShadow

Grammar:

Style= "Filter:dropshadow (color=color,offx=offx,offy=offy,positive=positive)"

Description

Color: #rrggbb格式, arbitrary.

Offx:x axis deviation value.

Offy:y axis deviation value.

Positive:1 or 0.

Example: Filter:dropshadow (color= "#6699CC", offx= "5", offy= "5", positive= "1")

5. Filters: Fliph

Grammar:

Style= "Filter:fliph"

Example: Filter:fliph

6. Filters: FLIPV

Grammar:

Style= "FILTER:FLIPV"

Example: FILTER:FLIPV

7. Filters: Glow

Grammar:

Style= "Filter:glow (color=color,strength=strength)"

Description

Color: glowing colors.

Strength: Strength (0-100)

Example: Filter:glow (color= "#6699CC", strength= "5")

8 Filter: Gray

Grammar:

Style= "Filter:gray"

Example: Filter:gray

9. Filters: Invert

Grammar:

Style= "Filter:invert"

Example: Filter:invert

10. Filters: Mask

Grammar:

Style= "Filter:mask (Color=color)"

Example: Filter:mask (color= "#FFFFE0")

11. Filters: Shadow

Grammar:

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

Description

Color: #rrggbb格式.

Direction: Angle, 0-315 degrees, step to 45 degrees.

Example: Filter:shadow (color= "#6699CC", direction= "135")

12. Filters: Wave

Grammar:

Filter:wave (Add=add,freq=freq,lightstrength=strength,phase=phase,strength=strength)

Description

ADD: generally 1, or 0.

Freq: Deformation value.

Lightstrength: percent of deformation.

Phase: Percentage of angular distortion.

Strength: Deformation strength.

Example: Filter:wave (add= "0", phase= "4", freq= "5", lightstrength= "5", strength= "2")

13. Filters: Xray

Grammar:

Style= "Filter:xray"

Example: Filter:xray

[1] [2] [3] Next page



Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.