<< < 153 154 155 156 157 158 159 160 161 162 163 > >>   Sort: Date

Should validation (did the user enter a real date) occur server-side or client-side? Why?
Should validation (did the user enter a real date) occur server-side or client-side? Why? Client-side validation because there is no need to request a server side date when you could obtain a date from the client machine.
2014-01-16, 1989👍, 0💬

How do I round numbers?
How do I round numbers? The simplest and most straightforward way is with code like (int)(x + 0.5) C's floating to integer conversion truncates (discards) the fractional part, so adding 0.5 before truncating arranges that fractions &gt;= 0.5 will be rounded up. (This technique won't work properl...
2015-06-26, 1987👍, 0💬

Which control would you use if you needed to make sure the values in two different controls matched?
Which control would you use if you needed to make sure the values in two different controls matched? Use the CompareValidator control to compare the values of 2 different controls.
2014-02-10, 1985👍, 0💬

What base class do all Web Forms inherit from?
What base class do all Web Forms inherit from? System.Web.UI.Page
2014-01-30, 1985👍, 0💬

Which method do you invoke on the DataAdapter control to load your generated dataset with data?
Which method do you invoke on the DataAdapter control to load your generated dataset with data? System.Data.Common.DataAdapter .Fill(System.Data.DataSet);If my DataAdapter is sqlDataAdapter and my DataSet is dsUsers then it is called this way: sqlDataAdapter.Fill(dsUsers);
2014-01-28, 1985👍, 0💬

Which template must you provide, in order to display data in a Repeater control?
Which template must you provide, in order to display data in a Repeater control? ItemTemplate
2014-01-28, 1984👍, 0💬

Difference between Panel and GroupBox classes?
Difference between Panel and GroupBox classes? Answer 1: Panel and Group box both can used as container for other controls like radio buttons and check box. the difference in panel and group box are Panel 1) In case of panel captions cannot be displayed 2) Can have scroll bars. Group box 1) Captions...
2013-12-11, 1984👍, 0💬

What is the difference between a Local temporary table and a Global temporary table? How is each one used?
What is the difference between a Local temporary table and a Global temporary table? How is each one used? Answer1: Local templrary table will have a single # (#tablename) appended with the table name.Global templrary table will have Double # (##tablename) appended with the table name. Ex:create tab...
2014-10-15, 1983👍, 0💬

Can you explain what inheritance is and an example of when you might use it?
Can you explain what inheritance is and an example of when you might use it? Inheritance is a fundamental feature of an object oriented system and it is simply the ability to inherit data and functionality from a parent object. Rather than developing new objects from scratch, new code can be based o...
2014-01-22, 1981👍, 0💬

I am constantly writing the drawing procedures with System.Drawing.Graphics, but having to use the try and dispose blocks is to
I am constantly writing the drawing procedures with System.Drawing.Graphics, but having to use the try and dispose blocks is too time-consuming with Graphics objects. Can I automate this? Yes, the code System.Drawing.Graphics canvas = new System.Drawing.Graphics(); try { //some code } finally canvas...
2013-11-20, 1980👍, 0💬

Explain differences between framework 1.0 and framework 1.1
Explain differences between framework 1.0 and framework 1.1 1. Native Support for Developing Mobile Web Applications 2. Unified Programming Model for Smart Client Application Development 3. Enable Code Access Security for ASP.NET Applications 4. Native Support for Communicating with ODBC and Oracle ...
2014-11-07, 1976👍, 0💬

What is the comment syntax for C#’s XML-based documentation?
What is the comment syntax for C#’s XML-based documentation? What is the comment syntax for C#’s XML-based documentation? * /** and **/ * //# * /// * //* ///
2014-08-04, 1973👍, 0💬

What are the consideration in deciding to use .NET Remoting or ASP.NET Web Services?
What are the consideration in deciding to use .NET Remoting or ASP.NET Web Services? Remoting is a more efficient communication exchange when you can control both ends of the application involved in the communication process. Web Services provide an open-protocol-based exchange of informaion. Web Se...
2013-11-11, 1972👍, 0💬

Can you give an example of what might be best suited to place in the Application_Start and Session_Start subroutines?
Can you give an example of what might be best suited to place in the Application_Start and Session_Start subroutines? The Application_Start event is guaranteed to occur only once throughout the lifetime of the application. It’s a good place to initialize global variables. For example, you might w...
2014-01-21, 1971👍, 0💬

webFarm Vs webGardens
webFarm Vs webGardens A web farm is a multi-server scenario. So we may have a server in each state of US. If the load on one server is in excess then the other servers step in to bear the brunt. How they bear it is based on various models. 1. RoundRobin. (All servers share load equally) 2. NLB (econ...
2013-11-06, 1969👍, 0💬

What is the difference between ASP and ASP.NET?
What is the difference between ASP and ASP.NET? ASP is interpreted. ASP.NET Compiled event base programming. Control events for text button can be handled at client javascript only. Since we have server controls events can handle at server side. More error handling. ASP .NET has better language supp...
2013-11-04, 1968👍, 0💬

What is the best way of making my program efficient?
What is the best way of making my program efficient? By picking good algorithms, implementing them carefully, and making sure that your program isn't doing any extra work. For example, the most microoptimized character-copying loop in the world will be beat by code which avoids having to copy charac...
2015-02-11, 1967👍, 0💬

Describe session handling in webform. How does it work and what are the limits?
Describe session handling in webform. How does it work and what are the limits? Session management in ASP.NET can be done in two ways: Using Cookies Encoding of URLs with Session ID
2014-11-05, 1967👍, 0💬

The Equivalent Html Control for the &lt;select> tag is ...
The Equivalent Html Control for the &lt;select> tag is ... The Equivalent Html Control for the &lt;select> tag is * &lt;HtmlSelectInput> * &lt;HtmlSelect> * &lt;HtmlInputSelect> * &lt;HtmlSelectControl> &lt;HtmlSelect>
2014-06-25, 1967👍, 0💬

What security measures exist for .NET Remoting in System.Runtime.Remoting?
What security measures exist for .NET Remoting in System.Runtime.Remoting? None. Security should be taken care of at the application level. Cryptography and other security techniques can be applied at application or server level.
2013-11-13, 1967👍, 0💬

I have seen function declarations that look like this
I've seen function declarations that look like this: extern int func __((int, int)); What are those extra parentheses and underscores for? They're part of a trick which allows the prototype part of the function declaration to be turned off for a pre-ANSI compiler. Somewhere else is a conditional def...
2015-05-23, 1966👍, 0💬

What method(s) must be used with the Application object to ensure that only one process accesses a variable at a time?
What method(s) must be used with the Application object to ensure that only one process accesses a variable at a time? What method(s) must be used with the Application object to ensure that only one process accesses a variable at a time? * Synchronize() * Lock() and UnLock() * Lock() * Asynchroize()...
2014-08-11, 1966👍, 0💬

How can you assign an RGB color to a System.Drawing.Color object?
How can you assign an RGB color to a System.Drawing.Color object? Call the static method FromArgb of this class and pass it the RGB values.
2013-11-22, 1966👍, 0💬

NET is Compile Time OR RunTime Environment?
NET is Compile Time OR RunTime Environment? .Net’s framework has CLS,CTS and CLR.CTS checks declartion of types at the time when u write code and CLS defines some rules and restrictions.and CLR comile everything at runtime with following benefits: Vastly simplified development Seamless integratio...
2014-03-03, 1965👍, 0💬

<< < 153 154 155 156 157 158 159 160 161 162 163 > >>   Sort: Date