Click here to Skip to main content
15,891,248 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: to display checkboxes on the right side using template field Pin
Satish Mahapatra2-Mar-09 21:56
Satish Mahapatra2-Mar-09 21:56 
GeneralRe: to display checkboxes on the right side using template field Pin
scar_face2-Mar-09 22:11
scar_face2-Mar-09 22:11 
GeneralRe: to display checkboxes on the right side using template field Pin
Satish Mahapatra2-Mar-09 22:26
Satish Mahapatra2-Mar-09 22:26 
GeneralRe: to display checkboxes on the right side using template field Pin
scar_face2-Mar-09 22:53
scar_face2-Mar-09 22:53 
GeneralRe: to display checkboxes on the right side using template field Pin
Satish Mahapatra2-Mar-09 22:57
Satish Mahapatra2-Mar-09 22:57 
GeneralRe: to display checkboxes on the right side using template field Pin
scar_face2-Mar-09 23:58
scar_face2-Mar-09 23:58 
GeneralRe: to display checkboxes on the right side using template field Pin
Satish Mahapatra3-Mar-09 0:05
Satish Mahapatra3-Mar-09 0:05 
Questionpopupcalender sample Pin
venkata saibabu2-Mar-09 20:10
venkata saibabu2-Mar-09 20:10 
this is my code:

protected void Page_Load(object sender, System.EventArgs e)
{
if (!Page.IsPostBack)
{
this.TextBox1.Text = System.DateTime.Now.ToShortDateString();
this.pnlCalendar.Attributes.Add("style", "DISPLAY: none; POSITION: absolute");
}
else
{
string id = Page.Request.Form["__EVENTTARGET"].Substring(0,Page.Request.Form["__EVENTTARGET"].IndexOf(":"));
if (id != this.ID)
{
this.pnlCalendar.Attributes.Add("style","DISPLAY: none; POSITION: absolute");
}
else
{
this.pnlCalendar.Attributes.Add("style","POSITION: absolute");
}

}
Page.RegisterClientScriptBlock("Script_Panel" + this.ID, " function On"+this.ID+"Click() { if("+this.ID+"_pnlCalendar.style.display == \"none\") "+this.ID+"_pnlCalendar.style.display = \"\"; else "+this.ID+"_pnlCalendar.style.display = \"none\"; } ");
this.Button1.Attributes.Add("OnClick","On"+this.ID+"Click()");

}

and for changing the date:

protected void Calendar1_SelectionChanged(object sender, System.EventArgs e)
{
this.TextBox1.Text = Calendar1.SelectedDate.ToShortDateString();
this.pnlCalendar.Attributes.Add("style", "DISPLAY: none; POSITION: absolute");


}

now iam getting the error as below :please can any one help me to run properly my code:


Length cannot be less than zero.
Parameter name: length


error is generated at this lines:


Source Error:


Line 23: else
Line 24: {
Line 25: string id = Page.Request.Form["__EVENTTARGET"].Substring(0,Page.Request.Form["__EVENTTARGET"].IndexOf(":"));
Line 26: if (id != this.ID)
Line 27: {
AnswerRe: popupcalender sample Pin
Christian Graus2-Mar-09 21:18
protectorChristian Graus2-Mar-09 21:18 
QuestionRedirecting to a page in google marker Pin
venu6562-Mar-09 20:04
venu6562-Mar-09 20:04 
Questiondeleting rows in gridview.. Pin
scar_face2-Mar-09 19:57
scar_face2-Mar-09 19:57 
AnswerRe: deleting rows in gridview.. Pin
Satish Mahapatra2-Mar-09 20:30
Satish Mahapatra2-Mar-09 20:30 
GeneralRe: deleting rows in gridview.. Pin
scar_face2-Mar-09 21:44
scar_face2-Mar-09 21:44 
GeneralRe: deleting rows in gridview.. Pin
Satish Mahapatra2-Mar-09 21:54
Satish Mahapatra2-Mar-09 21:54 
GeneralRe: deleting rows in gridview.. Pin
scar_face2-Mar-09 22:04
scar_face2-Mar-09 22:04 
AnswerRe: deleting rows in gridview.. Pin
justintimberlake3-Mar-09 22:40
justintimberlake3-Mar-09 22:40 
QuestionAssemblyinfo.cs is not found Pin
.NET- India 2-Mar-09 19:49
.NET- India 2-Mar-09 19:49 
QuestionGoogle Map:Problem with Gmarker Pin
0905v492-Mar-09 19:28
0905v492-Mar-09 19:28 
AnswerRe: Google Map:Problem with Gmarker Pin
Christian Graus2-Mar-09 21:19
protectorChristian Graus2-Mar-09 21:19 
QuestionLogin failed for user 'C60536-52290\IUSR_ADSTESTSERVER'. Pin
sbua2-Mar-09 19:16
sbua2-Mar-09 19:16 
QuestionDeployment issue when deploying webapplication.... Pin
siva4552-Mar-09 18:21
siva4552-Mar-09 18:21 
AnswerRe: Deployment issue when deploying webapplication.... Pin
Christian Graus2-Mar-09 18:29
protectorChristian Graus2-Mar-09 18:29 
GeneralRe: Deployment issue when deploying webapplication.... Pin
siva4552-Mar-09 18:35
siva4552-Mar-09 18:35 
AnswerRe: Deployment issue when deploying webapplication.... Pin
Noel Ablon2-Mar-09 20:39
Noel Ablon2-Mar-09 20:39 
GeneralRe: Deployment issue when deploying webapplication.... Pin
siva4552-Mar-09 21:40
siva4552-Mar-09 21:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.