15.02.2015 Views

C# 4 and .NET 4

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

User <strong>and</strong> Custom Controls ❘ 1191<br />

figure 41-3<br />

Apart from the obvious change in style, which is achieved by themes, as you see later in this chapter, the<br />

major modifications are as follows:<br />

➤<br />

➤<br />

➤<br />

➤<br />

The username is automatically taken from user details.<br />

There is no extra data display at the bottom of the page, <strong>and</strong> corresponding DataBind() calls are<br />

removed from the code behind.<br />

There is no result label beneath the control — the user gets enough feedback by seeing events added to<br />

the calendar <strong>and</strong> event list, without being told that event addition was successful.<br />

The page containing the user control uses navigation controls <strong>and</strong> a master page.<br />

The code modifications to achieve all this are remarkably simple. You won’t look at them here, but you will<br />

come back to this control later in this chapter.<br />

www.it-ebooks.info

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!