DOT NET Interview Questions - DotNetSpider
DOT NET Interview Questions - DotNetSpider
DOT NET Interview Questions - DotNetSpider
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
With this setting, all the requests are made as the specified user (Assuming the password<br />
it correct in the configuration file). So, for example you could designate a user for a single<br />
application, and use that user’s identity every time someone authenticates to the<br />
application. The drawback to this technique is that you must embed the user’s password<br />
in the web.config file in plain text. Although ASP.<strong>NET</strong> won’t allow anyone to download<br />
this file, this is still a security risk if anyone can get the file by other means.<br />
(B)What’s difference between Datagrid , Datalist and<br />
repeater ?<br />
A Datagrid, Datalist and Repeater are all ASP.<strong>NET</strong> data Web controls.<br />
They have many things in common like DataSource Property , DataBind Method<br />
ItemDataBound and ItemCreated.<br />
When you assign the DataSource Property of a Datagrid to a DataSet then each DataRow<br />
present in the DataRow Collection of DataTable is assigned to a corresponding<br />
DataGridItem and this is same for the rest of the two controls also.But The HTML code<br />
generated for a Datagrid has an HTML TABLE element created for the particular<br />
DataRow and its a Table form representation with Columns and Rows.<br />
For a Datalist its an Array of Rows and based on the Template Selected and the<br />
RepeatColumn Property value We can specify how many DataSource records should<br />
appear per HTML row. In short in datagrid we have one record per row, but in<br />
datalist we can have five or six rows per row.<br />
For a Repeater Control,The Datarecords to be displayed depends upon the Templates<br />
specified and the only HTML generated is the due to the Templates.<br />
In addition to these , Datagrid has a in-built support for Sort,Filter and paging the Data<br />
,which is not possible when using a DataList and for a Repeater Control we would require<br />
to write an explicit code to do paging.<br />
129