I recently noticed that a Need password prompt after resuming from hibernation mode.
You can download MicrosoftFixit50636.msi from Microsoft website (http://support.microsoft.com/kb/949918/en).
I recently noticed that a Need password prompt after resuming from hibernation mode.
You can download MicrosoftFixit50636.msi from Microsoft website (http://support.microsoft.com/kb/949918/en).
How can read the posted grid data line by line?
You can create a Model for Stock and it can be bind to your view. Then you can pass list of stock objects to controller as below.
Stock Model
1 | public class Stock |
View
1 | @model IEnumerable<Stock> |
Controllers
1 | public ActionResult ActionStockNew() |
Here is a simplified example:
1 | public static bool operator ==(ThreeDPoint a, ThreeDPoint b) |
However, what happens when a ThreeDPoint object is null?
You can’t write:
1 | ThreeDPoint a; |
Use object.ReferenceEquals(person1, null) instead of the == operator:
1 | public static bool operator ==(ThreeDPoint a, ThreeDPoint b) |
Razor views are dynamically compiled by the ASP.NET runtime. If you want your views to be built at compile-time you could add the following option to your .csproj file:
1 | <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> |
Download VS.NET 2013 Update 3 online setup file from http://www.microsoft.com/en-US/download/details.aspx?id=43721
Input following command
VS2013.3.exe /layout
You will get the about 1.8G files in download folder.
Click VS2013.exe will install VS.NET 2013 Update 3.
You need to use the xsd.exe tool which gets installed with the Windows SDK into a directory something similar to:
1 | C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin |
And on 64bit computers:
1 | C:\Program Files (x86)\Microsoft SDKs\Windows\v6.0A\bin |
On the first run, you use xsd.exe and you convert your sample XML into a XSD file (XML schema file):
1 | xsd yourfile.xml |
This gives you yourfile.xsd, which in a second step, you can convert again using xsd.exe into a C# class:
1 | xsd yourfile.xsd /c |
You can deserialize xml string to C# object:
1 | StringReader sr = new StringReader(xmlStr); |
You can serialize object to simple xml string.
First, you must declare namespace in YourObject:
1 | public class YourObject |
Then you can start serialize obj to xml string:
1 | MemoryStream ms = new MemoryStream(); |
The perform code is:
1 | public static string GetGmtTimeString(this DateTime now) |
You can iterate and find the one you want:
1 | var classList = $('#divId').attr('class').split(/\s+/); |
Example 1:
Eg: For 7-zip, with 7-zip in the default Program Files folder.
.zip;.rar=C:\Program Files\7-Zip\7zFM.exe
Example 2:
Q-Dir is on the USB Stik and Notepad++ also.
The file extension “txt”, “cpp”, “pl”, “ini”, “php”, “cgi” to be with Notepad++ open.
.txt;.cpp;.pl;.ini;.php;.cgi=%drive%/npp/unicode/notepad++.exe
Or even for portable 7-Zip :
.zip;.rar;.7z;.tar;.iso;.lzh=%drive%/7-Zip/7zFM.exe
%drive% is a placeholder for the drive from which to Q-Dir is started.
In the case of: the Q-Dir path is “M:/Q-Dir/Q-Dir.exe” then would be %drive% a placeholder for “M:”.
This allows you to define yourself,
through the menu :
Extras >> … more options, then tab bar Association.
jQuery Multiple Attribute Selector
input name=value AND name2=value2
is perform following:
1 | $['input[name="value"][name2="value2"]') |
input name=value OR name2=value2
is perform following:
1 | $['input[name="value"] , [name2="value2"]') |