Skip to content

Instantly share code, notes, and snippets.

@aggieben
Created October 30, 2009 19:04
Show Gist options
  • Save aggieben/222632 to your computer and use it in GitHub Desktop.
Save aggieben/222632 to your computer and use it in GitHub Desktop.
ScriptLink.Register(Page, "jquery-1.3.2.js", false);
ScriptLink.Register(Page, "jquery-ui-1.7.2.custom.min.js", false);
ScriptLink.Register(Page, "jquery.timepickr.js", false);
ScriptLink.Register(Page, "jquery.dataTables.js", false);
string scriptBlock =
@"
$('#discrepancy-results').dataTable();
";
CssRegistration.Register("jquery-ui-1.7.2.custom.css");
CssRegistration.Register("ui.timepickr.css");
CssRegistration.Register("jquery.timepickr.css");
CssRegistration.Register("timepickr.ui-helper.css");
CssRegistration.Register("ListSearch.css");
beginDateText = FindControl("BeginDate") as TextBox;
beginTimeText = FindControl("BeginTime") as TextBox;
endDateText = FindControl("EndDate") as TextBox;
endTimeText = FindControl("EndTime") as TextBox;
keywordText = FindControl("KeywordSearch") as TextBox;
resultsList = FindControl("ResultsList") as AspListView;
if (Page.IsPostBack)
{
ScriptManager.RegisterStartupScript(resultsList, resultsList.GetType(), UniqueID, scriptBlock, true);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment