using System;
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
namespace IndianHoliday
{
/// <summary>
/// Summary description for Ashwani.
/// </summary>
public class Ashwani : [Link]
{
string str1;
private void Page_Load(object sender, [Link] e)
{
SqlCommand cmd= new SqlCommand("SELECT advercharacter
from adrequesttable",cn);
[Link]();
SqlDataReader dr = [Link]();
if ([Link]())
{
str1=(dr[0].ToString());
}
[Link]();
myfucntion(str1);
}
#region Web Form Designer generated code
override protected void OnInit(EventArgs e)
{
//
// CODEGEN: This call is required by the [Link] Web Form
Designer.
//
InitializeComponent();
[Link](e);
}
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
[Link] += new [Link](this.Page_Load);
}
#endregion
#region global veriable
SqlConnection cn = new
SqlConnection([Link]["Con"]);
SqlCommand cmd = new SqlCommand();
SqlDataAdapter da = new SqlDataAdapter();
protected [Link] TextBox1;
DataSet ds = new DataSet();
#endregion
public void myfucntion(string s)
{
string str = "\n";
str += "<script language=JavaScript>\n";
str += " var i=0\n";
str += " myMsg='" + s +"
'\n";
str += " function scrollMsg() {\n";
str += " frontPart = [Link](i,[Link])\n";
str += " backPart = [Link](0,i)\n";
str += " [Link] = frontPart + backPart\n";
str += " if (i<[Link])\n";
str += " {\n";
str += " i++}\n";
str += " else{\n";
str += " i = 0}\n";
str += " setTimeout('scrollMsg()',100)}\n";
str += "[Link]=scrollMsg()\n<" + "/" + "script>\n";
[Link] = str;
RegisterClientScriptBlock("script",str);
[Link]();
}
}
}