Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
I

Ian McCaul

@Ian McCaul
About
Posts
64
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Web Service Method Call Fails
    I Ian McCaul

    I thought the crossdomain xml files had to be at the root of the site?

    WPF csharp wcf

  • Using Sharepoint Object Model in Visual Studio Windows Service
    I Ian McCaul

    This is not true. SharePoint web applications can be set to use any available port. 80 is the default, but you can create web applications and site collections on different ports as well. When constructing the SPSite object then you need to specify the correct url (with port unless its 80 then you dont need to include the port). The problem I think the user is facing is he is not compiling as 'Any CPU', I have also seen this happen when UAC is turned on and you dont run VS as Admin.

    SharePoint help csharp sharepoint visual-studio

  • How to implement gmail like video chat in asp.net.
    I Ian McCaul

    Off the top of my head I dont believe there is anything built into asp.net that will do this. However if your interested Silverlight 4 will have this functionality and it should be out in the next couple of months.

    .NET (Core and Framework) csharp asp-net tutorial lounge

  • where are SQL server database files located?
    I Ian McCaul

    First and foremost. Never add tables to the master database. Create a new database and add it there. For express the default data location is usually C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data. Also, you cannot see specific tables in Windows Explorer, only the databases.

    ASP.NET database sql-server sysadmin question

  • Failed to create the configuration database
    I Ian McCaul

    This looks like it is possibly a permission issue. Make sure the account you are running this as has local admin rights on the server and that the account you use to connect to SQL server has db creator rights.

    SharePoint windows-admin database sysadmin tools help

  • Access WMP Playlist without WMP Player [modified]
    I Ian McCaul

    Does anyone know how to access a media player playlist and its songs without having to instantiate the AxWindowsMediaPlayer? [EDIT] I am aware of the wpl location and parse the xml, but doesnt help with the auto playlists.

    modified on Tuesday, September 1, 2009 5:19 PM

    C# xml help tutorial question

  • Using two or more Where in a query in EF
    I Ian McCaul

    Try this

    var docs = Documents.Where(c=>c.Title.Contains("string") || c.Subject.Contains("string"));

    LINQ question database

  • SCSF Smart Client application takes time to load
    I Ian McCaul

    SCSF uses reflection very heavily. Because of this reason performance is hit when trying to do what would seem the simplest of things. It is a very heavy framework and unless you really need it and are concerned about performance I would suggest an alternative.

    .NET (Core and Framework) sysadmin help

  • How to copy assembly from GAC to local drive ?
    I Ian McCaul

    Yes through the command prompt.

    C# dotnet tutorial question

  • Dynamically Creating WebServices
    I Ian McCaul

    The CodeDom will allow you to compile the code into an assembly, that assembly should contain the webmethods. What you will need to generate is the asmx or svc file associated with the service, this could be done via a template. The posters approach could work, but it could generate a lot of problems without an accurate code checker on the server. The codedom can generate the necessary code files and those could be stored in the DB to be assembled at any time possibly. I have never used the codedom but I know it has these capabilities. As for System.Web.Host, I have no idea about this as I have never used it.

    ASP.NET csharp database question sql-server visual-studio

  • Dynamically Creating WebServices
    I Ian McCaul

    I am wondering maybe using CodeDom to create the web service assembly and then creating the svc file. Then it would need to be posted to iis?? Just a quick thought I had about this subject the other day actually. I maybe wrong but this could possibly be an approach.

    ASP.NET csharp database question sql-server visual-studio

  • How to Change ConnectionString to an "ADO.NET Entity Data Model" at runtime
    I Ian McCaul

    I believe this can be done in the constructor of the context when its used. Take a look ObjectContext Constructor[^]

    LINQ question csharp help tutorial

  • How to make sure that collection doesn't contain a particular element?
    I Ian McCaul

    Ahh, ok try this

    var items =
    from c in collection
    where ?? && ??
    select c;

    LINQ csharp linq tutorial question learning

  • How to make sure that collection doesn't contain a particular element?
    I Ian McCaul

    !CollectionName.Contains(object);

    LINQ csharp linq tutorial question learning

  • Cannot Edit DataGridView when bound to custom LINQ query
    I Ian McCaul

    The DataGridView will be in ReadOnly mode when you use anonymous types. So what I recommend is defining only those 2 columns in the DataGridView and set AutoGenerateColumns to false and go ahead and use select p;

    LINQ help csharp database linq question

  • join query with group and condition
    I Ian McCaul

    Try this.

    var sumEDA =
    from a in context.accounts
    join ed in context.entriesdetail on a.Acode equals ed.acode
    join e in context.entries on ed.eid equals e.eid
    where e.edate > Convert.ToDateTime("1/1/2009")
    group g by ed.acode
    select new { g.Sum(ed.EDAmount) };

    LINQ csharp database linq

  • To Henry Minute, Original Griff, fly904, stancrm, Computafreak, Guffa, DaveyM69, J4amieC, Tom Deketelaere and Dave Kreskowiak
    I Ian McCaul

    path = directory + @"\something.bat";
    StreamWriter sw = System.IO.File.CreateText(path);

    C# csharp question dotnet algorithms tools

  • Stored Procedures or queries
    I Ian McCaul

    Performance wise stored procedures will usually have the best performance because its query is actually being ran on the database server, as opposed to linq where the query is ran on the client.

    LINQ csharp linq performance

  • Query from using a List
    I Ian McCaul

    You may just be able to do a .Contains() i.e.:

    List[int] matchingParams = GetMatchingParams();
    MyDataTable data = GetMyDataTable(); //Has an integer column we want to match to, lets call it intMatch
    var results = from rows in data
    where matchingParams.Contains(rows.intMatch)
    select rows;

    LINQ database docker regex question

  • Linq query to get all the records
    I Ian McCaul

    From what I can see there is nothing wrong with that statement. You should be getting all records. Are you sure the GridView isnt within a fixed height table/div? Once the gridview fills with rows it may be rolling off the bottom of the table/div and is basically being trimmed.

    LINQ csharp database linq question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups