Posts

Showing posts from August, 2013

Create Random Character string in Asp.net

Create Random Character string in Asp.net  Use these Namespaces using System.Security.Cryptography; using System.Text; protected void Page_Load( object sender, EventArgs e)         {             Response.Write(GetUniqueKey(15));         }         public static string GetUniqueKey( int maxSize)         {             char [] chars = new char [62];             chars =             "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890" .ToCharArray();             byte [] data = new byte [1];      ...

Telerik Radwindow Open on Button Click

Image
Telerik Radwindow Open on Button Click Step 1: Design web form .aspx page < div >             < asp : ScriptManager ID ="ss" runat ="server"></ asp : ScriptManager >             < telerik : RadWindow ID ="modalPopup" runat ="server" Width ="250px" Height ="100px"   VisibleTitlebar ="false"   Modal ="true" VisibleStatusbar ="false"   EnableShadow ="true"   >                 < ContentTemplate >                                        < p style =" text-align : center ; ">             ...

Insert,Upadate and delete in Telerik RadGrid

Image
Insert,Upadate and delete in Telerik  RadGrid Step 1:Database design Table Creation. CREATE   TABLE  [dbo] . [GridView] (       [id] [int]  IDENTITY ( 1 , 1 )   NOT   NULL,       [name] [varchar] ( 50 )   NULL,       [age] [int]  NULL,       [salary] [decimal] ( 18 ,  0 )   NULL,       [country] [varchar] ( 50 )   NULL,       [city] [varchar] ( 50 )   NULL,   CONSTRAINT  [PK_GridView]  PRIMARY   KEY   CLUSTERED (       [id]  ASC ) WITH  ( PAD_INDEX    =   OFF ,   STATISTICS_NORECOMPUTE    =   OFF ,   IGNORE_DUP_KEY   =   OFF , ALLOW_ROW_LOCKS    =   ON ,   ALLOW_PAGE_LOCKS    =   ON )   ON  [PRIMARY...