Search

You searched for the word(s): userid:709514

Matching Posts

  • Re: relative path for an image is not being found?

    Hi, Try this: <img src="~/images/PostHeaderIcon.png" width="26" height="26" alt="PostHeaderIcon" runat="server" /> Joe
    Posted to Web Forms (Forum) by JMayo on 7/8/2009
  • Re: Should I use linq to sql?

    Hi, A lot of what you see written today is based on LINQ to SQL, which was available before Entity Framework (EF). Since there are many applications already written with LINQ to SQL, it isn't going away any time soon, but should be considered a legacy technology at this point. The way forward is via EF, which is where MS is putting their primary data technology focus on for today and in the future. I think it would be better to start all new work with EF. Joe
    Posted to Architecture (Forum) by JMayo on 7/4/2009
  • Re: return value from LINQ query

    Hi, Try this: 04.data = (From r In dc.tblReunion_Infos _ 05. Where r.ReunionIndex = Request.QueryString("index") _ 06. Select r.ReunionYear, r.ReunionIndex) .FirstOrDefault Your query returns an IQueryable(Of Customer), which is a collection and you need to either iterate through it with a for/for each loop or use a query operator like FirstOrDefault to extract the one item you need. Joe
  • Re: ASP.net MVC LINQ-To-SQL deploy -- cannot access database

    Hi, Do you have your *.dbml in a class library? If so, you'll need to double click on Project Properties, locate the Settings Tab, and change the connection string there. Joe
    Posted to Configuration and Deployment (Forum) by JMayo on 6/18/2009
  • Re: Help: Session Variables and IIS 6

    Hi, It sounds like you need to either configure a state server or use SQL session state. The default session state is InProc, meaning that it's in memory. Since IIS recycles the app periodically, you loose your in-memory state. Here's a link to show you what to do: http://msdn.microsoft.com/en-us/library/ms178586.aspx Joe
    Posted to Configuration and Deployment (Forum) by JMayo on 6/8/2009
  • Re: Connection String?

    That message is often an indicator that one program is using the file. Often, when one application accesses a file, the OS will put a file lock on it. This means that any other program trying to access that file will fail with a message similar to what you see there. Here are a few steps you can try: 1. Check to see if you have any programs open that is using the *.mdf file. If so, close them and try again. 2. If that is not the case or it doesn't work, shut down and restart VS and try again
  • Re: Why use an Abstract Class or Interface?

    Hi Luke, It's all about flexibility and giving you, the developer, a choice in what works best. Here's a few important facts to keep in mind when making your design choices. Interfaces don't have implementation The interface just says that you can have X number of classes that meet the contract of the interface (i.e. if calling code asks for a reference to an object, you can pass it as the interface and then the calling code is guaranteed to know that the object you passed has those methods
    Posted to Architecture (Forum) by JMayo on 6/6/2009
  • Re: applicaion logic question

    Hi Asif, It sounds like you need to check daily to know when anyone has exceeded the number of days (6 or 7) to perform an action. Apparently, you have a start date of the action already saved and your logic would check to see if it was 7 days past that start date. If I'm wrong, please clarify. There are a couple approaches that might help: Windows Scheduler or Windows Service. With the Windows Scheduler, you can set when you want your program to run, which is perhaps daily, and you can check
    Posted to Getting Started (Forum) by JMayo on 6/6/2009
  • Re: Connection String?

    Peter, Are you on Vista? If so, are you running Visual Studio as Administrator? If not, then shut down VS, click on the Start menu, navigate to VS (might be on the first menu), right-click on VS and select Run as Administrator. You'll get a UAC prompt for permissions, and just click on Continue and then try it again. You need to run VS as administrator on Vista. Joe
  • Re: Connection String?

    Hi, Here's a tip for getting VS to build the connection string for you: Open Server Explorer Right-click on Data Connections and select Add Connection; shows the Add Connection window Click the Change button, select the Microsoft SQL Server Database File option, and Click OK to go back to the Add Connection window Click Browse, navigate to your *.mdf, and select it Leave the Log On option set to Windows Click the Test Connection button; it should succeed; if it doesn't something else is going
Page 1 of 29 (282 items) 1 2 3 4 5 Next > ... Last »