|
|
-
|
|
I just learn from Abhishek Sur blog That future of C# 5.0 introduce two new keywords like "await" and "async" keyword for simplified existing multithreading model
[code]
async Task GetStringsFromUrlAsync(string url)
{
WebClient client = new ......
|
|
-
|
|
Today, I had a requirement of converting a number to hexa decimal number. A quick google search showed me the below simple way
[code]
int i = 10;
string Hexa = i.ToString("X");
[/code]......
|
|
-
|
|
In Asp.net we used to one submit button per one form. Now suppose you have scenario where you need to add more than one submit button in single form, In MVC its simpler with help of “ActionNameSelectorAttribute“. Here is example.
[code]
@using (Htm......
|
|
-
|
|
The DebuggerDisplayAttribute constructor has a single argument: a string to be displayed in the value column for instances of the type. This string can contain braces ({ and }). The text within a pair of braces is evaluated as the name of a field, prope......
|
|
-
|
|
Often in web applications, while validating the data at client side, we often have the scenario of calling a function, which is implemented in server side. For example, we might want to validate the entered user name is already exists in our database. T......
|
|
-
|
|
Both are keyword cause argument passed by reference. There is minor difference between both of then
ref:
ref keyword required that variable must be initialized before passed to function
Out:
Out keyword variable initialization is not required but b......
|
|
-
|
|
Recently learned that when we write linq queries will be converted into corrosponding methods at runtime.
Eg:
[code]
from c in customers
group c by c.Country into g
select new { Country = g.Key, CustCount = g.Count() }
[/code]
will be converted i......
|
|
-
|
|
ControlState is one of the state management techniques used in ASP.NET. It will have the essential properties information about the controls, which will be useful to process events. Both controlstate and viewstate will use same hidden field to store inf......
|
|
-
|
|
I had a tough time due to this issue while working on transaction, searching searching...(Mean while "Did you fixed the lock issue?" , I used reply "No".."You got any solution?"..."Nope, possibly today!!!(Regular dragging method)). After a long time I ......
|
|
-
|
|
Regex class now support time out setting for regular expression finding match if its take long time in .net 4.5. We are able to set timeout setting with regex class in .Net 4.5 like
[code]
Regex regexpr = new Regex("[a-z ]{10}", RegexOptions.Singleli......
|
|