ASP.NET Interview Questions and Answers (1544) - Page 73

Which of the following VS studio versions you can used for create web application using HTML5, JavaScript, and CSS3 ?

NOTE: This is objective type question, Please click question title for correct answer.
Which property is used to protect ViewState from being Tempering?

NOTE: This is objective type question, Please click question title for correct answer.
Which control is used for Navigation purposes?

NOTE: This is objective type question, Please click question title for correct answer.
Which method is used to visit another site or URL from within application?

NOTE: This is objective type question, Please click question title for correct answer.
Which method restricts to visit another site or URL from within application?

NOTE: This is objective type question, Please click question title for correct answer.
Which method is used to visit URL from within application and opens up in a new window?

NOTE: This is objective type question, Please click question title for correct answer.
Which type is used to manage server-side state?

NOTE: This is objective type question, Please click question title for correct answer.
Which type is used to manage client-side state?

NOTE: This is objective type question, Please click question title for correct answer.
How to get values from Textbox which is in Gridview Footer in C#?

Inside our GridView_RowCommand Event,we can access the footer control by GridView1.FooterRow.FindControl method .

protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e)

{
if (e.CommandName.Equals("Insert", StringComparison.OrdinalIgnoreCase))
{
TextBox txt_emp_id = ((TextBox)GridView1.FooterRow.FindControl("txt_emp_id"));
string emp_id = txt_emp_id.Text;
}
}

How to disable Enter key pressed inside TextBox to avoid submission or Postback through code behind?

Visual Studio gives us a warning message when we add onkeydown event.But it's just a warning so we can ignore.So to avoid this warning,we can also disable submission from code behind as:-
txt_emp_first_name.Attributes.Add("onkeydown","return (event.keyCode!=13);");

//OR
txt_emp_first_name.Attributes.Add("onkeydown","prevent_submission();");

Above return code should be written inside prevent_submission() js function.
How to disable the Enter key pressed form post-back for all page controls?

Simply add below code in the body tag as:
<body onkeydown = "return (event.keyCode!=13);">

Then it will be disabled for all controls on the page.
Which behavior properties of the GridView Control is used for sorting columns ascending or descending?

NOTE: This is objective type question, Please click question title for correct answer.
Which Style properties of the GridView Control is used for formatting Gridview Pages.

NOTE: This is objective type question, Please click question title for correct answer.
If PagerStyle is set, then which other property will also have to set in a Gridview?

NOTE: This is objective type question, Please click question title for correct answer.
Found this useful, bookmark this page to the blog or social networking websites. Page copy protected against web site content infringement by Copyscape

 Interview Questions and Answers Categories