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:642628
More Search Options
RSS Available
Matching Posts
Re: SerializableDictionary
SDictionary In my previous post should read: SerializableDictionary
Posted to
Tips & Tricks
(Forum)
by
george.polevoy
on 3/3/2006
SerializableDictionary
using System; using System.Collections.Generic; using System.Runtime.Serialization; // DESCRIPTION: Simple workaround for a lack of serialization capability in IDictionary objects // Before: Dictionary<string, string> d; d["key"] = "value"; // After: SDictionary<string, string> d; d.target["key"] = "value"; // Dictionary is converted to a List of key value paris prior to serialization. // NOTES: A ~100% memory usage overhead is due to storing the dictionary in a temporary generic collection
Posted to
Tips & Tricks
(Forum)
by
george.polevoy
on 3/3/2006
Re: Dataset + ObjectDatasource + GridView + ASP.NET 2
Say you have a table: (client_id /*primary key guid*/, [client_name, ...] ) I've got an auto-generated DataSet and a GridView updatable in two steps: 1. Select the ObjectDataSource in the designer. Press F4 to display Properties floater if it's not already displayed. Find the UpdateParameters (Collection) ... property, enter the "..." button to open the "Parameter Collection Editor", select the primary key column, ("client_id" in my case). Click the "Show advanced properties" link button (yet can
Posted to
Data Presentation Controls
(Forum)
by
george.polevoy
on 2/22/2006
Re: RoleView - role based page content
Example usage Don't forget to register tag prefix on the page for the code to work <%@ Register TagPrefix="variatron" Namespace="Variatron" %> Example 1 <variatron:RoleView ID="RoleView_Registered" runat="server" RoleFilter="*"> If you registered, you should see this </variatron:RoleView> <variatron:RoleView ID="RoleView_Managers" runat="server" RoleFilter="manager"> This is for managers<br /> </variatron:RoleView> <variatron:RoleView ID="RoleView_Staff" runat
Posted to
Tips & Tricks
(Forum)
by
george.polevoy
on 2/12/2006
NonRepostable. Truly prevent form from being reposted. Just place this control on the page
using System; using System.Web.UI.WebControls; using System.Security.Cryptography; using System.Text; namespace Variatron { public class NonRepostable : HiddenField { protected static string MD5Hash(string ToEncrypt) { MD5CryptoServiceProvider md5 = new MD5CryptoServiceProvider(); byte[] hashedbytes; UTF8Encoding textencoder = new UTF8Encoding(); hashedbytes = md5.ComputeHash(textencoder.GetBytes(ToEncrypt)); md5.Clear(); md5 = null; return Convert.ToBase64String(hashedbytes); } private string ticket_variable_key
Posted to
Tips & Tricks
(Forum)
by
george.polevoy
on 2/11/2006
RoleView - role based page content
/* * RoleView control for use with Role feature * Don't forget to register tag prefix on the page for the code to work Example 1 If you registered, you should see this This is for managers This is for employees Something all users can see By the way, you can register... Example 2 User my personal data new users: register */ using System.Web.UI.WebControls; using System; using System.Collections; using System.Web.Security; namespace Variatron { public class RoleView : Panel { private string
Posted to
Tips & Tricks
(Forum)
by
george.polevoy
on 2/11/2006
Page 1 of 1 (6 items)
TechNet Edge:
Joachim Nässlander on Live Migration
ASP.NET:
T4MVC 2.6: MVC 2 Areas support
ASP.NET:
Script# Update - v0.5.5.0
Channel 10:
Difference between DirectX 10 and DirectX 11
Channel 10:
WHS Power Pack 3 Arrives
Channel 10:
ASUS Brings GUI to BIOS
ASP.NET:
Microsoft AJAX CDN – Now with SSL Support
Channel 9:
TWC9: XAML tools, Silverlight for Live Writer, Surface SDK,
ASP.NET:
PDC09 Talk: Building Amazing Business Applications with Silverlight 4, RIA Services and Visual Studio 2010 – Now in Visual Basic!!
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
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online