Lesson 4 (Part 4) Gridview AJAX Validators ASP.NET C#

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
3,872
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Sep 25, 2009

In Lesson 4 you will learn how to:
Improve look and feel of a Gridview using Styles, Color and Padding
Insert data into a database using an AJAX modal popup
Update, Delete and Filter data from a Gridview
Implement a RequiredFieldValidator and a RegularExpressionValidator

Category:

Education

Tags:

License:

Standard YouTube License

  • likes, 0 dislikes

Link to this comment:

Share to:
see all

All Comments (2)

Sign In or Sign Up now to post a comment!
  • Second - When to use "percent pound" vs. "percent equals" Here "percent pound" is the same as "percent hash" or "percent sharp":

    • The <%= (equal) expressions are evaluated at render time.

    • The <%# (pound) expressions are evaluated at DataBind() time and are not evaluated at all if DataBind() is not called.

    • <%# (pound) expressions can be used as properties in server-side controls. <%= (equal) expressions cannot.

  • Great Lesson! I would add that some "understanding" could be leveraged around what is being done in setting viewstate to false in the GridView and why the "percent pound" is used in the codeblock vs. percent equals.

    First - GridViews save the grid in the viewstate. They also use the viewstate to auto-generate comumns. Setting EnableViewState and AutoGenerateColumns to "false" lets you control the column data manually via the Columns tags. This allows manual control.

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more