Search

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

Matching Posts

  • Re: RaiseEvent in c#

    Try something like this: public class clsDBOperations { public delegate void returnMessage(string message); public event returnMessage myReturnMsg = delegate { }; public void returnDetails(string _firstName, string _lastName) { ... myReturnMsg("Hello"); } } public partial class Home : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { dbOperations dbo = new dbOperations(); dbo.myReturnMsg += dbo_myReturnMsg; dbo.returnUserDetails(); } public void dbo_myReturnMsg
    Posted to C# (Forum) by RichardD on 11/4/2009
  • Re: Writing to the security audit log when using forms authentication?

    The documentation on the EventLog class backs that up: Note: The Security log is read-only. I don't think you'll be able to work around this restriction. The AuditAccountLogon function looked quite promising, but I think it's only available if you're implementing a custom LSA provider, which is way out of my league!
    Posted to Security (Forum) by RichardD on 11/4/2009
  • Re: Using SqlMethods.Like with a variable column name

    Try something like this: using System; using System.Linq; using System.Linq.Expressions; public static class Extensions { public static IQueryable<T> WhereLike<T>(this IQueryable<T> source, string propertyName, string pattern) { if (null == source) throw new ArgumentNullException("source"); if (string.IsNullOrEmpty(propertyName)) throw new ArgumentNullException("propertyName"); var a = Expression.Parameter(typeof(T), "a"); var prop = Expression.Property
  • Re: Writing to the security audit log when using forms authentication?

    Are you really running as an administrator? Don't forget that with Vista and 2008, even if you're logged in as an administrator, you still have to "Run as administrator" to get admin rights. The good news is that this doesn't apply to Windows services - if your service runs as an administrator or LocalSystem, it always gets full admin rights. The registry key permissions are only part of the story. If you do need to modify the permissions on the event log, you'll need to
    Posted to Security (Forum) by RichardD on 11/3/2009
  • Re: Making clustered index and updating guid

    Don't use new Guid() - use the static Guid.NewGuid() method. If you use new Guid() , you'll get an empty GUID ( 00000000-0000-0000-0000-000000000000 ); if you use the method, you'll get a new random GUID. I don't think there's a mapping for the NewID() SQL function, but it's virtually identical to the CLRs NewGuid() function.
  • Re: Writing to the security audit log when using forms authentication?

    You need to register an event source for the security log. Any events you write to that source will then be stored in the security log.
    Posted to Security (Forum) by RichardD on 10/29/2009
  • Re: HttpContext.Current and concurrent users

    HttpContext.Current returns the context for the current thread. Each request is served on its own thread, so multiple requests will not interfere with each other. http://stackoverflow.com/questions/1561036/how-does-httpcontext-current-work-in-a-multi-threaded-environment
    Posted to State Management (Forum) by RichardD on 10/29/2009
  • Re: Orderby a new field in Linq

    Try this: zips = zips.AsEnumerable().OrderBy(o => o.dist); The AsEnumerable call forces LINQ to fetch the records from the database before trying to sort them.
  • Re: WorldPay Integration

    I don't think the dummy form approach would work, or at least not consistently. The only option is to move the WorldPay form outside of your server form. You may have to use CSS to position the form, or you might be able to get away with having a separate page without a server form.
    Posted to Web Forms (Forum) by RichardD on 10/29/2009
  • Re: SSL and user control question

    The HTML output of a user control is part of the page output. If the request for the page is via SSL, all of the HTML will be served over SSL.
    Posted to Security (Forum) by RichardD on 10/29/2009
Page 1 of 35 (344 items) 1 2 3 4 5 Next > ... Last »