26.02.2015 Views

DOT NET Interview Questions - DotNetSpider

DOT NET Interview Questions - DotNetSpider

DOT NET Interview Questions - DotNetSpider

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

(B) How do we assign page specific attributes ?<br />

Page attributes are specified using the @Page directive.<br />

(A) Administrator wants to make a security check that no<br />

one has tampered with ViewState , how can he ensure this ?<br />

Using the @Page directive EnableViewStateMac to True.<br />

(B) What’s the use of @ Register directives ?<br />

@Register directive informs the compiler of any custom server control added to the<br />

page.<br />

(B) What’s the use of SmartNavigation property ?<br />

It’s a feature provided by ASP.<strong>NET</strong> to prevent flickering and redrawing when the page is<br />

posted back.<br />

Note:- This is only supported for IE browser.Project’s who have browser compatibility as<br />

requirement have to think some other ways of avoiding flickering.<br />

(B) What is AppSetting Section in “Web.Config” file ?<br />

Web.config file defines configuration for a webproject.Using “AppSetting” section we can<br />

define user defined values.Example below defined is “ConnectionString” section which<br />

will be used through out the project for database connection.<br />

<br />

<br />

<br />

<br />

(B) Where is ViewState information stored ?<br />

In HTML Hidden Fields.<br />

121

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

Saved successfully!

Ooh no, something went wrong!