Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
ASP.NET Forums
›
Search
Search
You searched for the word(s): userid:71238
More Search Options
RSS Available
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
Posted to
Data Access and ObjectDataSource Control
(Forum)
by
RichardD
on 11/4/2009
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.
Posted to
SQL Server, SQL Server Express, and SqlDataSource Control
(Forum)
by
RichardD
on 10/29/2009
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.
Posted to
Data Access and ObjectDataSource Control
(Forum)
by
RichardD
on 10/29/2009
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 »
Channel 9:
TWC9: XAML tools, Silverlight for Live Writer, Surface SDK,
Channel 9:
C9 Conversations: Brian Beckman on Complexity [C9 Conversations: Brian Beckman on Complexity]
Channel 10:
Black Friday Deals on Windows 7 Machines
Channel 10:
Holiday Shopping on Bing Cashback = Big Online Savings
Channel 10:
Black Friday Deals at the Microsoft Store
Channel 10:
Incredible Black Friday Deal: Windows 7 Notebook for $197
ASP.NET:
Presenting in Europe Next Week
TechNet Edge:
AlignIT IT Manager Podcast #30 - Straight Talk about Windows 7
WindowsClient:
You know your post rate has gone down...
Silverlight:
Geek Profiles – Scott Guthrie
Channel 9:
C9 Lectures: Dr. Erik Meijer - Functional Programming Fundamentals Chapter 9 of 13
TechNet Edge:
Managing Your Virtual World - Tech Focus November 2009 Part 2
ASP.NET:
Silverlight and RIA Services: Implementing Search
Channel 9:
C9 Lectures: Brian Beckman - Covariance and Contravariance in Physics 1 of 1
Channel 9:
Set Your Data Free
Channel 9:
Implementing a Silverlight SharePoint WebPart with Visual Studio 2010
WindowsClient:
New WPF Showcase Addition: Enterprise
Channel 9:
Reactive Extensions API in depth: Contract
WindowsClient:
Concluding "New WPF Features" Series
WindowsClient:
Introduction to TestApi – Part 5: Managed Code Fault Injection APIs
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online