ClientIDMode is comes with framework 4 or latter. it prevent control renaming functionality in asp.net. Read more →
Updated sql questions
Difference between @@IDENTITY, SCOPE_IDENTITY, IDENT_CURRENT In most of our application scenario, we need to get latest inserted row information through SQL query. And for that, we have multiple options like: @@IDENTITY SCOPE_IDENTITY IDENT_CURRENT All three functions return last-generated identity values. However, the scope and session on which last is defined in each of these functions differ. Compare @@IDENTITY It returns… Read more →
Memory management in .Net
main concern for any application whether application is window based or web based. In .Net, CLR has garbage collector that executes as a part of our program and responsible for reclaiming the memory of no longer used objects. Garbage collector free the memory for objects that are no longer referenced and keeps the memory for future allocations. Advantage of Garbage… Read more →
WCF
Core WCF Assemblies System.Runtime.Serialization.dll System.ServiceModel.dll Core WCF Namespace System.Runtime.Serialization System.ServiceModel System.ServiceModel.Configuration System.ServiceModel.Description System.ServiceModel.MsmqIntegration System.ServiceModel.Security WCF Hosting(Assembly involve in WCF) Read more →
HTTP Request Methods: GET and POST
Two HTTP Request Methods: GET and POST Two commonly used methods for a request-response between a client and server are: GET and POST. GET – Requests data from a specified resource POST – Submits data to be processed to a specified resource The GET Method Note that query strings (name/value pairs) is sent in the URL of a GET request:… Read more →
jQuery library method that load data from server
The jQuery library has a full suite of Ajax capabilities. The functions and methods therein allow us to load data from the server without a browser page refresh. $.ajax() Performs an asynchronous HTTP (Ajax) request basically this is a method of jquery which internally uses xmlhttprequest object of JavaScript as asynchronous communicator which supports cross browser also. There is lots of… Read more →
Attribute and Properties in jquery
What actually is Attributes? Attributes carry additional information about an HTML element and come in name=”value” pairs. we can set an attribute for HTML element and define it while writing the source code. <input id=”test” value=”test” type=”test”> here, “type”,”value”, “id” are attributes of the input elements. What is Property? Property is a representation of an attribute in the HTML… Read more →
updated questions in .Net topic
— Check if my model is valid from inside the razor view? Gets the model state dictionary object that contains the state of the model and of model-binding validation. if (ModelState.IsValid){} —write validation in view <div> @using (Html.BeginForm(“Create”, “Client”, FormMethod.Post, new { @class = “form-horizontal”, role = “form” })) { <div> <div>@Html.LabelFor(m => m.Name) <span>@Html.ValidationMessageFor(model => model.Name)</span></div> <div>@Html.TextBoxFor(m => m.Name,… Read more →
AutoEventWireup in asp.net
AutoEventWireup=”false” Required! You should manual set handler for each page event. AutoEventWireup=”true” Noneed to set handler for page event it is automatically searched and fired, it takes time. Read more →
questions about sql server (database)
Hints Specifies that query optimizer enforce a join strategy between two tables. Join hints are specified in the FROM clause of a query. Join hints enforce a join strategy between two tables. If a join hint is specified for any two tables, the query optimizer automatically enforces the join order for all joined tables in the query, based on the… Read more →