How to change any properties of all controls of a form?
Foreach(control ctrl in form1.controls) { If(ctrl.toSring()==”System.Web.UI.Webcontrols.Tetbox”) ((Textbox)ctrl).Text = “”; }
Foreach(control ctrl in form1.controls) { If(ctrl.toSring()==”System.Web.UI.Webcontrols.Tetbox”) ((Textbox)ctrl).Text = “”; }
DLL hell means deploying the same DLL in your application multiple times.DLL Hell can be overcome by versioning, i e; suppose u install some DLL for the first time, it will be V1.0, again if u install the same , this time it will be V2.0, we can differentiate the… Continue reading
There may be some scenario where you may want to explicitly postback to the server using some clientside javascript. It is pretty simple to do this. ASP.NET already creates a client side javascript method as shown below to support Postbacks for the web controls: function __doPostBack(eventTarget, eventArgument) { if (!theForm.onsubmit… Continue reading
Language Integrated Query (LINQ), is a component released within the .NET 3.5 Framework. It is one of the most powerful features of .NET 3.5. It serves the purpose of querying objects. LINQ comprises a series of operators, which are used to query, filter and project data in arrays, enumerable classes,… Continue reading
SOAP (Simple Object Access Protocol) is a simple XML-based messaging protocol to let applications exchange information over HTTP. It defines a set of rules for structuring messages that can be used for simple one-way messaging but is particularly useful for performing RPC-style (Remote Procedure Call) request-response dialogues. It is not… Continue reading
Languages typically do not require a class to declare inheritance from Object because the inheritance is implicit. Because all classes in the .NET Framework are derived from Object, every method defined in the Object class is available in all objects in the system. Derived classes can and do override some… Continue reading
Question: You have created an ASP.NET server control named Shopping Cart for use by other developers. Some developers report that the Shopping Cart control does not function properly with ViewState disabled. You want to ensure that all instances of the Shopping Cart control work even if ViewState is disabled. What… Continue reading
Array is fixed length and Array is a simple sequence of numbers which are not concerned about each-others positions but linked list is variable length In array values are accessing easy but linked list is some time taken process because search either forward or backward In array updating operations are… Continue reading
ASP (Active Server Pages) and ASP.NET are both server side technologies for building web sites and web applications, ASP.NET is Managed compiled code – asp is interpreted. and ASP.net is fully Object oriented. ASP.NET has been entirely re-architected to provide a highly productive programming experience based on the .NET Framework,… Continue reading
Imagine that we have a database and one table. Stored procedure returns 3 columns of table: ID, name, value. Name and value can be a null in database. How to map or represent such values in .net code? When I map a null value to a string or double variable… Continue reading