15,903,203 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by BabyOreo (Top 7 by date)
BabyOreo
1-Apr-13 3:34am
View
Yes, the script file is included in the solution. Anyway to make it centralized?
BabyOreo
28-Mar-13 21:53pm
View
What do you mean? can provide example?
BabyOreo
28-Mar-13 21:47pm
View
i have tried that, still getting the same error.
BabyOreo
28-Mar-13 9:53am
View
Sorry..I'm new to java script..where to add script tag?
Can you guys provide the example?
Edit: i had put the script tag in header section but not working. i can see <script type="text/javascript" src="../Javascript.js"></script> in my page source. Is it the only thing i should see to make sure it loaded?
BabyOreo
4-Feb-13 19:06pm
View
The data in db looks like 0x82FF520001000000000000000000AF05002DAF050000000000000000000000000000000000
0000000000000000000000000000000000000000000000000086010000000054040F0000000F
000000000000008304010085FF08000500000881028304010085FF0800050000088102830401
0085FF3D00050000082020202020
and what i expect to see is(in table):
QUARTERLY APM/ASM & MANUAL (DIESET)
ITEM CHANGE/CLEAN CHANGE REMARKS
1 PUNCH OK
2 DIESET OK
…..
BabyOreo
17-Jan-13 4:17am
View
Sorry. I mean i have missing comma.
BabyOreo
5-Dec-12 2:08am
View
Following code solve my 2nd issue:
protected void GridView1_Sorting(object sender, GridViewSortEventArgs e)
{
DataTable dt = ((DataSet)Session["myDataSet"]).Tables[0];
dt.DefaultView.Sort = e.SortExpression + " " + GetSortDirection(e.SortExpression);
GridView1.DataSource = dt;
GridView1.DataBind();
}
private string GetSortDirection(string column)
{
string sortDirection = "DESC";
string sortExpression = ViewState["SortExpression"] as string;
if (sortExpression != null)
{
if (sortExpression == column)
{
string lastDirection = ViewState["SortDirection"] as string;
if ((lastDirection != null) && (lastDirection == "DESC"))
{
sortDirection = "ASC";
}
}
}
ViewState["SortDirection"] = sortDirection;
ViewState["SortExpression"] = column;
return sortDirection;
}
Show More