Add the below code into any page replacing the username and password. var user = Membership.GetUser(“UserName”); user.ChangePassword(user.ResetPassword(), “NewPassword”);

Source code Download from CodeProject Introduction As the name of the tip implies, this is a quick hack to add […]

Check the below code snippet. CurrencyManager cm = (CurrencyManager) this.BindingContext[this.gridDataBoundGrid.DataSource, this.gridDataBoundGrid.DataMember]; DataRow dr = ((DataRowView) cm.Current).Row; this.label1.Text = dr[“Col”].ToString(); Reference […]

You can have .NET compile and minify your less files on the fly for development and testing. This uses MVC4 […]

When adding graphics and icons to your XAML based app (Silverlight, WPF, WP7, WP8 or WinRT) one design choice I […]

<script type=”text/javascript”> var scrollTop; Sys.WebForms.PageRequestManager.getInstance().addbeginRequest(BeginRequestHandler); Sys.WebForms.PageRequestManager.getInstance().addendRequest(EndRequestHandler); function BeginRequestHandler(sender, args) { var elem = document.getElementById(‘ScrollList’); if (elem !== null) { scrollTop […]