CodePaste Logo
New Snippet New Snippet Recent Snippets Recent Snippets My Snippets My Snippets Web Code Search Snippets Search
Sign inor Register
Format:
Recent snippets for: Mehul Harry
C#
using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
 
public partial class Features_ImportExport : System.Web.UI.Page
{
    const string DocumentUrl = @"~/Content/Demo/SampleImportDocument.rtf";
    const string ContentFolder = @"~/UploadImages/Imported";
by Mehul Harry   May 30, 2011 @ 10:04pm
210 Views
no comments
 
C#
public partial class _Default : System.Web.UI.Page
{
    private bool mInserted = false;
 
    protected void Page_Load(object sender, EventArgs e) {
        mInserted = false;
    }
    protected void ASPxGridView1_CustomJSProperties(object sender, ASPxGridViewClientJSPropertiesEventArgs e) {
        e.Properties["cpIsInserted"] = mInserted.ToString();
    }
by Mehul Harry   January 08, 2010 @ 4:08pm
619 Views
no comments
 
    <dxwgv:ASPxGridView ID="ASPxGridView1" runat="server" AutoGenerateColumns="False"
        DataSourceID="AccessDataSource1" KeyFieldName="CategoryID" 
        OnCustomJSProperties="ASPxGridView1_CustomJSProperties" 
        onrowinserted="ASPxGridView1_RowInserted">
        <ClientSideEvents EndCallback="function(s, e) {
    if (s.cpIsInserted == 'True') alert('Inserted!');
}" />
by Mehul Harry   January 08, 2010 @ 4:07pm
1041 Views
no comments
 
C#
    protected void ASPxButton1_Click(object sender, EventArgs e)
    {
        object key = ASPxGridView1.GetRowValues(2, "CategoryID");
        ASPxGridView1.Selection.SelectRowByKey(key);
 
    }
by Mehul Harry   January 06, 2010 @ 11:49am
409 Views
no comments
 
C#
        public const string SafeUrlCharacters = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_.~";
by Mehul Harry   December 15, 2009 @ 4:13pm
333 Views
no comments
 
C#
        /// <summary>
        /// Encrypts a string at the current user's scope using DPAPI.
        /// </summary>
        /// <param name="toEncrypt">The string to encrypt.</param>
        /// <param name="key">The key used to encrypt it.</param>
        /// <returns>
        /// The encrypted bytes that only the current user, with the specified key,
        /// can decrypt again.
        /// </returns>
        /// <seealso cref="CR_CodeTweet.ByteExtensions.Decrypt" />
by Mehul Harry   December 15, 2009 @ 4:07pm
314 Views
no comments
 
C#
        /// <summary>
        /// URL-encodes a string for use with OAuth.
        /// </summary>
        /// <param name="toEncode">
        /// The string to encode.
        /// </param>
        /// <returns>
        /// A URL-encoded string where all of the encoded characters are upper-case.
        /// </returns>
        /// <remarks>
by Mehul Harry   December 15, 2009 @ 3:01pm
386 Views
no comments
 
C#
        protected void ASPxGridView3_BeforePerformDataSelect(object sender, EventArgs e)
        {
            Session["OrderID"] = (sender as ASPxGridView).GetMasterRowKeyValue();
        }
 
        protected void ASPxGridView2_BeforePerformDataSelect(object sender, EventArgs e)
        {
            Session["CustomerID"] = (sender as ASPxGridView).GetMasterRowKeyValue();
        }
by Mehul Harry   December 08, 2009 @ 12:05pm
Tags:
333 Views
no comments
 
brought to you by:
West Wind Techologies



If you find this site useful and use it frequently please consider making a donation to support this free service.
Donate