Posts

Display Canvasjs Line Chart using Data from Database

Image
Aspx Page: <% @ Page Language ="C#" AutoEventWireup ="true" CodeBehind ="Canvasjs.aspx.cs" Inherits ="BloggerCont.Canvasjs" %> < html xmlns ="http://www.w3.org/1999/xhtml"> < head runat ="server">     < script src ="jquery-1.7.1.js" type ="text/javascript"></ script >     < script src ="canvasjs.min.js" type ="text/javascript"></ script >     < script type ="text/javascript">         $(document).ready( function () {             Disp();         });         function Disp() {             var dataPts = [];             var var1;         ...

Superscript In Asp.Net Textbox without using Richtextbox

Instead of Use  mc⁴ Code to mc<sp>4</sp>. <! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> < html xmlns ="http://www.w3.org/1999/xhtml"> < head runat ="server">     < title ></ title >     < script src ="Js/jquery.min.js" type ="text/javascript"></ script >      < script type ="text/javascript">          $.fn.superScript = function () {              var chars = '+−=()0123456789AaÆᴂɐɑɒBbcɕDdðEeƎəɛɜɜfGgɡɣhHɦIiɪɨᵻɩjJʝɟKklLʟᶅɭMmɱNnɴɲɳŋOoɔᴖᴗɵȢPpɸrRɹɻʁsʂʃTtƫUuᴜᴝʉɥɯɰʊvVʋʌwWxyzʐʑʒꝯᴥβγδθφχн ნ ʕⵡ' ,         sup = '⁺⁻⁼⁽⁾⁰¹²³⁴⁵⁶⁷⁸⁹ᴬᵃᴭᵆᵄᵅᶛᴮᵇᶜᶝᴰᵈᶞᴱᵉᴲᵊᵋᶟᵌᶠᴳᵍᶢˠʰᴴʱᴵⁱᶦᶤᶧᶥʲᴶᶨᶡᴷᵏˡᴸᶫᶪᶩᴹᵐᶬᴺⁿᶰᶮᶯᵑᴼᵒᵓᵔᵕᶱᴽᴾᵖᶲʳᴿʴʵʶˢᶳᶴᵀᵗᶵᵁᵘᶸᵙᶶᶣᵚᶭᶷᵛ ⱽ ᶹᶺʷᵂˣʸᶻᶼᶽᶾꝰᵜᵝᵞᵟᶿᵠᵡ...

Drop/Clear all procedure in sql server

declare @procName varchar ( 500 ) declare cur cursor for select [name] from sys . objects where type = 'p' open cur fetch next from cur into @procName while @@fetch_status = 0 begin     exec ( 'drop procedure ' + @procName )     fetch next from cur into @procName end close cur deallocate cur

Delete Complete Table and Information in SQL Server Using Stored Procedure

DECLARE   @Sql   NVARCHAR ( 500 )   DECLARE   @Cursor   CURSOR SET   @Cursor   =   CURSOR   FAST_FORWARD   FOR SELECT   DISTINCT   sql   =   'ALTER TABLE ['   +   tc2 . TABLE_NAME   +   '] DROP ['   +   rc1 . CONSTRAINT_NAME   +   ']' FROM   INFORMATION_SCHEMA.REFERENTIAL_CONSTRAINTS   rc1 LEFT   JOIN   INFORMATION_SCHEMA.TABLE_CONSTRAINTS   tc2   ON   tc2 . CONSTRAINT_NAME = rc1 . CONSTRAINT_NAME OPEN   @Cursor   FETCH   NEXT   FROM   @Cursor   INTO   @Sql WHILE   ( @@FETCH_STATUS   =   0 ) BEGIN Exec   SP_EXECUTESQL   @Sql FETCH   NEXT   FROM   @Cursor   INTO   @Sql END CLOSE   @Cursor   DEALLOCATE   @Cursor GO EXEC   sp_MSForEachTable   'DROP TABLE ?' GO

select all checkbox in table using jquery

Image
< html > < head > < script type ="text/javascript" src ="Jquery.1.10.2.js"></ script >    < script type ="text/javascript">        $(document).ready( function () {            $( '#selectall' ).click( function (event) {                if ( this .checked) {                    $( '.chkval' ).each( function () {                        this .checked = true ;                    });                }  ...

Clear Browser Cache using Asp.net c#

A  web cache  is a Process for the temporary storage of  web documents , such as  HTML pages  and  images , to reduce  bandwidth  usage,  server  load. Use this function all the Button Click Event Automatically Clear the cache memory.      public void RemoveCache()         {             HttpContext context = HttpContext .Current;             IDictionaryEnumerator enumerator = context.Cache.GetEnumerator();             while (enumerator.MoveNext())             {                 context.Cache.Remove(enumerator.Key.ToString());          ...