February 1st, 2012 08:33 AM
You may have a look of ANTLR (http://www.antlr.org)
January 24th, 2012 08:15 AM
declare NegativeNumberException class as public
January 14th, 2012 07:37 PM
if you use windows authentication, and set impersonate="true", then System.Security.Principal.WindowsIdentity.GetCurrent().Name.ToString() should return the impersonated user name
January 13th, 2012 12:40 PM
try
<identity impersonate="true" />
in your config, and config your IIS as using Windows Authentication, no anonymous login
January 11th, 2012 02:56 PM
Don't know if this meets your need:
on page1.aspx:
var _newWindow = null;
function openWindow() {
_newWindow = window.open("page2.aspx");
January 10th, 2012 04:05 PM
Your command contains pipe ("|"), so the best you can achieve through c# is maybe sth. like this:
Process p = new Process();
p.StartInfo.UseShellExecute = true;
...
January 10th, 2012 02:25 PM
try this:
http://answers.microsoft.com/en-us/winphone/forum/wp6n-sync/active-sync-windows-7/742ff7c5-4bf8-46ea-9010-bc18c22d1ea9
January 10th, 2012 01:34 PM
try this:
LinkButton VaerdiEdit = e.Row.Cells[0].Controls[0] as LinkButton;
another way is to specify the CommandArgument in aspx:
<asp:Button ... CommandArgument="<%#...
January 10th, 2012 10:08 AM
The CommandArgument will be automatically set only for ButtonField column. Since you are using ItemTemplate, you need to specify the CommandArgument manually. You may set it in gridview's...
January 6th, 2012 08:39 AM
then you need to figure out what is the maximum file size your system will accept and use a byte[] buffer to store partial string you get from your text file, process it, then clear it and read in...
January 6th, 2012 08:30 AM
another choice is sql server. store your strings in a table and use sql LIKE to search the matches.
January 5th, 2012 08:40 AM
These 2 statements will eat up your memory if your files are very big:
string[] newText = File.ReadAllLines(fileName);
string[] oldText = File.ReadAllLines(folderPrior + newFileName);
You can...
January 5th, 2012 08:35 AM
you need to read some book on .net socket programming
January 4th, 2012 04:21 PM
first use this code to disable browser cache:
Response.Cache.SetExpires(DateTime.UtcNow.AddMinutes(-1));
Response.Cache.SetCacheability(HttpCacheability.NoCache); ...
January 4th, 2012 04:06 PM
Regex regex = new Regex(@"^(\s)*(\d ){6}\d(\s)*$");//note there's a blank space after the first '\d'
bool isValid = true;
string[] ts = textBox1.Text.Split(new...
January 4th, 2012 03:57 PM
have a look of MEF framework that's bundled with .net 4.0 framework
January 4th, 2012 03:43 PM
If you feed the text from a file, then it's sth. like this:
Regex regex = new Regex(@"^(\s)*(\d ){6}\d(\s)*$");//note there's a blank space after \d
bool isValid =...
December 20th, 2011 01:02 PM
you need to correctly reference these 2 dlls:
PylonC.NET.dll
Pylon.NETSupportLibrary.dll
in your project
December 20th, 2011 10:47 AM
You don't need to use Bitmap pic = new Bitmap(Project1.Properties.Resources.Picture);
Project1.Properties.Resources.Picture should be Image type. Say if you want to display it in a picturebox,...
December 19th, 2011 12:52 PM
just figured out a better version without the need to trim, and also fixed a bug:
using System.Text.RegularExpressions;
public string GetMatches()
{
Regex regex = new...
December 19th, 2011 11:33 AM
using System.Text.RegularExpressions;
public string GetMatches()
{
Regex regex = new Regex(@"\$[a-zA-Z\.]+[',]*");
string t = @"efgh = '$EXPCH.nmo' AND tree = $Name,...
December 13th, 2011 08:58 AM
try this api:
http://sourceforge.net/projects/xmlpullparser/develop
December 9th, 2011 03:24 PM
well it depends. what if the file size is huge, say, 2gb?
December 9th, 2011 11:16 AM
No way. Entity framework is not that smart to figure out any change you manually made on your database.
December 9th, 2011 08:36 AM
oh RS485, familiar name... are you using modBus protocol?