Saturday, August 18, 2012

Hello friends following is a list of some important things you must know while developing an web application:

Call Javascript Function From Code Behind

Page.ClientScript.RegisterStartupScript(this.GetType(), "sometext""JavaScriptFunctionName();", true);

RunTime JavaScript
void Confirm(string msg)
        Response.Write("Your Javascript code");

Subtract two Date Objects

string time = "2012-05-01 00:00:00";
TimeSpan ts = DateTime.Now.Date.Subtract(DateTime.Parse(time).Date);

Call javascript function from code behind UpdatePanel

ScriptManager.RegisterClientScriptBlock(UpdatePanel1, UpdatePanel1.GetType(), "Success", "FunctionName();", true);

Hide/Suppress blank section in Crystal Report

  • First of all goto Section Expert And Select The Section Which You Want To Suppress Like:

  • A popup window will open now write "isnull({FieldName})" in formula editor like :

Crystal Report Numeric Field To String Formula

·         Replace (cstr({FieldName},0,''),',' ,'')

   Problem: Error in File CrystalReport.rpt:Access to report file denied. Another program may be using it
·         Solution: Remove The Line Below From Your Web.Config File
o    <identity impersonate="true"/>


DotNet Developer Services India said...

java scipt with code behind is very nice as well as screen shot. by this information reader fully understand your post.

Get Custom Prfessional ASP.Net Development Services By Expert ASP.Net Developers

Post a Comment