Click here to Skip to main content
15,666,286 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Getting error while running Pin
Richard Deeming9-Oct-14 6:59
mveRichard Deeming9-Oct-14 6:59 
QuestionHow to maintain scroll position in chrome in Asp .Net Pin
Member 98439578-Oct-14 18:52
Member 98439578-Oct-14 18:52 
AnswerRe: How to maintain scroll position in chrome in Asp .Net Pin
Dominic Burford10-Oct-14 0:39
professionalDominic Burford10-Oct-14 0:39 
GeneralRe: How to maintain scroll position in chrome in Asp .Net Pin
Member 984395710-Oct-14 0:44
Member 984395710-Oct-14 0:44 
Questionregex replace with double quote Pin
jkirkerx8-Oct-14 13:30
professionaljkirkerx8-Oct-14 13:30 
AnswerRe: regex replace with double quote Pin
Richard Deeming9-Oct-14 1:47
mveRichard Deeming9-Oct-14 1:47 
GeneralRe: regex replace with double quote [EDIT] fixed my regex Pin
jkirkerx9-Oct-14 8:05
professionaljkirkerx9-Oct-14 8:05 
QuestionGreybox popup not show properly after postback Pin
Member 98439577-Oct-14 19:35
Member 98439577-Oct-14 19:35 
when the page loads first time, the links work as they should, opening in a Greybox popup(In the Academic Calendar).

Domain Name- http://cpsmau.com/


However, if I do a partial postback (go to september month) , the AJS Greybox functionality is lost and clicking on the link it show on other page not on graybox popup.

Can any one help me?

How do we re-initialize the AJS object on every asynchronous postback.

string script = @"window.addEvent('domready', function() { new AJS(); })";

ScriptManager.RegisterClientScriptBlock(this.Page, this.GetType(), System.Guid.NewGuid().ToString(), script, true);

This script is not working.

My page code is.........

protected void Calendar1_DayRender(object sender, DayRenderEventArgs e)
{
DataTable dt = command.ExecuteQuery("SELECT sys_id,date, value,value3 FROM com WHERE branchCode=" + ddlSchool.SelectedValue);
if (dt.Rows.Count > 0)
{
for (int i = 0; i < dt.Rows.Count; i++)
{
if (e.Day.Date.CompareTo(Convert.ToDateTime(dt.Rows[i]["date"].ToString())) == 0)
{
if (dt.Rows[i]["value3"].ToString() == "Holiday")
e.Cell.BackColor = System.Drawing.Color.DarkRed;
else
e.Cell.BackColor = System.Drawing.Color.Green;
e.Cell.ForeColor = System.Drawing.Color.LightYellow;

e.Cell.Controls.Clear();
e.Cell.Controls.Add(new LiteralControl("<a id='A1' href='../Common/HolidayAndEventsDetail.aspx?id=" + dt.Rows[i]["sys_id"].ToString() + "', onclick='return window.open(this.href, this.target);' rel='gb_page_center[500,400]' target='_blank' style='display:block;color:white;'>" + e.Day.DayNumberText + "</a>"));
e.Cell.ToolTip = dt.Rows[i]["value"].ToString();
}
}
}
}
QuestionPiro box add two iframe after asynchronous postback. Pin
Member 98439576-Oct-14 21:00
Member 98439576-Oct-14 21:00 
QuestionGray box not working after Asynchronus postback Pin
Member 98439576-Oct-14 20:54
Member 98439576-Oct-14 20:54 
QuestionButton click not trigger second time in jquery Modal popup Pin
dineshkanagaraj6-Oct-14 3:31
dineshkanagaraj6-Oct-14 3:31 
AnswerRe: Button click not trigger second time in jquery Modal popup Pin
jkirkerx6-Oct-14 11:46
professionaljkirkerx6-Oct-14 11:46 
QuestionWant to send message to only connected client SignalR Pin
Tridip Bhattacharjee5-Oct-14 21:05
professionalTridip Bhattacharjee5-Oct-14 21:05 
QuestionLog-in form question Pin
Member 87616674-Oct-14 8:46
Member 87616674-Oct-14 8:46 
AnswerRe: Log-in form question Pin
jkirkerx7-Oct-14 7:30
professionaljkirkerx7-Oct-14 7:30 
GeneralRe: Log-in form question Pin
Member 87616677-Oct-14 9:17
Member 87616677-Oct-14 9:17 
GeneralRe: Log-in form question Pin
jkirkerx7-Oct-14 9:50
professionaljkirkerx7-Oct-14 9:50 
GeneralRe: Log-in form question Pin
Member 87616677-Oct-14 10:38
Member 87616677-Oct-14 10:38 
GeneralRe: Log-in form question Pin
jkirkerx7-Oct-14 10:56
professionaljkirkerx7-Oct-14 10:56 
GeneralRe: Log-in form question Pin
Member 87616677-Oct-14 11:37
Member 87616677-Oct-14 11:37 
GeneralRe: Log-in form question Pin
jkirkerx7-Oct-14 11:56
professionaljkirkerx7-Oct-14 11:56 
GeneralRe: Log-in form question Pin
Member 87616677-Oct-14 12:04
Member 87616677-Oct-14 12:04 
QuestionHow can i Post Radio Button List with Dynamic names to controller Pin
Mujtaba 103885433-Oct-14 18:24
professionalMujtaba 103885433-Oct-14 18:24 
QuestionHow to find in useful/unnecessary files from website folder ??? Pin
Abhishek kumar1213-Oct-14 6:07
Abhishek kumar1213-Oct-14 6:07 
AnswerRe: How to find in useful/unnecessary files from website folder ??? Pin
ZurdoDev3-Oct-14 6:53
professionalZurdoDev3-Oct-14 6:53 

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.