CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Silent Sojourner

Page 1 of 3 1 2 3

Search: Search took 0.04 seconds.

  1. Replies
    1
    Views
    1,548

    Re: Building Custom Script Interpreter

    You may have a look of ANTLR (http://www.antlr.org)
  2. Re: set the outputpath and assemblyname appropriately to point at the correct...

    declare NegativeNumberException class as public
  3. Replies
    5
    Views
    6,553

    Re: Problem using impersonation

    if you use windows authentication, and set impersonate="true", then System.Security.Principal.WindowsIdentity.GetCurrent().Name.ToString() should return the impersonated user name
  4. Replies
    5
    Views
    6,553

    Re: Problem using impersonation

    try
    <identity impersonate="true" />

    in your config, and config your IIS as using Windows Authentication, no anonymous login
  5. Re: rendeing a "loading" page while another page loads in background

    Don't know if this meets your need:

    on page1.aspx:



    var _newWindow = null;

    function openWindow() {
    _newWindow = window.open("page2.aspx");
  6. Replies
    7
    Views
    8,122

    Re: DSQuery in C#?

    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;
    ...
  7. Replies
    18
    Views
    16,602

    Re: Microsoft activesync Issue

    try this:

    http://answers.microsoft.com/en-us/winphone/forum/wp6n-sync/active-sync-windows-7/742ff7c5-4bf8-46ea-9010-bc18c22d1ea9
  8. Replies
    5
    Views
    1,766

    Re: CurrentRowIndex problem in Gridview

    try this:

    LinkButton VaerdiEdit = e.Row.Cells[0].Controls[0] as LinkButton;

    another way is to specify the CommandArgument in aspx:

    <asp:Button ... CommandArgument="<%#...
  9. Replies
    5
    Views
    1,766

    Re: CurrentRowIndex problem in Gridview

    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...
  10. Re: System.outofmemoryexception, how to handle

    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...
  11. Replies
    4
    Views
    1,727

    Re: HashSet of strings - subsets

    another choice is sql server. store your strings in a table and use sql LIKE to search the matches.
  12. Re: System.outofmemoryexception, how to handle

    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...
  13. Replies
    1
    Views
    749

    Re: Code explaining

    you need to read some book on .net socket programming
  14. Re: need back button listener method

    first use this code to disable browser cache:


    Response.Cache.SetExpires(DateTime.UtcNow.AddMinutes(-1));
    Response.Cache.SetCacheability(HttpCacheability.NoCache); ...
  15. Replies
    5
    Views
    8,616

    Re: Validation Code

    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...
  16. Replies
    1
    Views
    1,278

    Re: A dynamic DLL plugin system

    have a look of MEF framework that's bundled with .net 4.0 framework
  17. Replies
    5
    Views
    8,616

    Re: Validation Code

    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 =...
  18. Replies
    4
    Views
    1,204

    Re: help reading a windows form

    you need to correctly reference these 2 dlls:

    PylonC.NET.dll
    Pylon.NETSupportLibrary.dll

    in your project
  19. Replies
    1
    Views
    4,700

    Re: Bitmap Resolution setting help

    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,...
  20. Replies
    6
    Views
    1,119

    Re: Help in extracting string

    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...
  21. Replies
    6
    Views
    1,119

    Re: Help in extracting string

    using System.Text.RegularExpressions;

    public string GetMatches()
    {
    Regex regex = new Regex(@"\$[a-zA-Z\.]+[',]*");
    string t = @"efgh = '$EXPCH.nmo' AND tree = $Name,...
  22. Re: XmlDocument load function is giving Out of Memory Exception For large XML file(13

    try this api:

    http://sourceforge.net/projects/xmlpullparser/develop
  23. Re: Reading text file by character

    well it depends. what if the file size is huge, say, 2gb?
  24. Replies
    4
    Views
    1,944

    Re: Displaying Data from SQL Express db

    No way. Entity framework is not that smart to figure out any change you manually made on your database.
  25. Re: Multithreading for multiple serial ports

    oh RS485, familiar name... are you using modBus protocol?
Results 1 to 25 of 62
Page 1 of 3 1 2 3





Click Here to Expand Forum to Full Width

Featured