open a new window with button inside an ajax update panel
Get link
Facebook
X
Pinterest
Email
Other Apps
-
ScriptManager.RegisterClientScriptBlock(UpdatePanel1, UpdatePanel1.GetType(), "Any Name you Like", "Window.open('default.aspx','','height=100,width=100');", true);
Name spaces to include: using System; using System.Text; using System.Threading; ---------------------------------------------- Progress bar class: class progressBar { /// <summary> /// An ASCII progress bar /// </summary> public class ProgressBar : IDisposable, IProgress<double> { private const int blockCount = 40; private readonly TimeSpan animationInterval = TimeSpan.FromSeconds(1.0 / 8); private const string animation = @"▀▀▀▀▄▄▄▄";//@"▀▀▀▀▄▄▄▄" @"|/-\"; ...
To get the current value: SELECT IDENT_CURRENT('Table Name') As currentValue To get the Identitity seed: SELECT IDENT_SEED('Table Name')As identitySeed To get the Identity Increement SELECT IDENT_INCR('Table Name') As IdendityIncreement
Ever wonder how to auto complete your textbox with the data in your database....? Well you can use the cumbersome ajax code or simply use the .net ajax toolkit controll. Here is how you can use it.... (Before starting make sure you installed the ajax tool kit package in your visual studio) 1. Add a textbox on your page 2. Add the 'AutoComplete' Extender from the smart tag. 3. Add a script manager any where above it. 4.Again in the smart tag click the 'Add autocomplete page method' a new web method in the .cs(code source page) page will appear. we can use that method as given in the below example. eg: [System.Web.Services.WebMethodAttribute(), System.Web.Script.Services.ScriptMethodAttribute()] public static string[] GetCompletionList(string prefixText, int count, string contextKey) { List<string> name = new List<string>(); Strin...
Comments
Post a Comment