15,896,063 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 waynetan123 (Top 56 by date)
waynetan123
17-Nov-15 19:25pm
View
I need it to crop automatically upon page load. thanks
waynetan123
17-Nov-15 4:24am
View
bitmap but doesn't work. first time doing cropping thus not much experience thanks
waynetan123
14-Oct-15 20:08pm
View
can you show me what should I change in my codes. I need to rename sheet1 sheet2 as well according to what I have set in CS. thanks
waynetan123
7-Oct-15 20:58pm
View
In the DS there are actually 3 tables retrieve but why isit not displaying in my gridview? It only not displays after I added addional set of data into the tables, in the case where I remove the added on it will display fine
waynetan123
7-Oct-15 4:55am
View
it will pass the column name. eg column1 if column name is column1
waynetan123
7-Oct-15 3:01am
View
sry I cant pass 1 as param when select all is check it does not work
waynetan123
7-Oct-15 2:39am
View
I get what you are trying to do but I do have more than 1 parameters to be passed so I don't think this can work.
waynetan123
7-Oct-15 2:15am
View
lets say in column1 there are 4 names but user can select maybe tom and mary which It will pass into the parameter like this 'tom,'mary' however if user click on select all it will pass into the param 'column1' which are my current code logic
waynetan123
7-Oct-15 2:04am
View
The reason why I am creating dynamic query is because I will be passing in selections from a front end website. Thus users are able to select all or they can select the conditions they want. thus if they select specific condition it will then be passed into a string to be placed in a parameter but as for select all it will pass in the column name which passing in the column name does not work as it does not all me to retrieve all data . thanks
waynetan123
7-Oct-15 1:56am
View
lets say if im want to have all rows, I will be passing in the column name into the parameter to get all the rows but it does not when I tried but it the even if I do not want all rows it shld pass in the required conditions into the parameter
waynetan123
7-Oct-15 1:49am
View
If I have lets say where Column1 = Column1 and Column2 = Column2 it will return me lesser rows as compared to the actual table. I tried as explain in my question thanks
waynetan123
7-Oct-15 1:41am
View
Please refer to my updated questions thanks
waynetan123
7-Oct-15 1:41am
View
Please refer to my updated questions thanks
waynetan123
7-Oct-15 1:36am
View
Hi I have more than 4 columns but only 4 columns requires the where condition
waynetan123
7-Oct-15 1:28am
View
The reason being is actually Im passing in parameters thus sometimes it can be based on condition and sometimes it can be select all. How do I use the where 1 = 1? I need the in clause actually
waynetan123
4-Oct-15 22:53pm
View
problem solved thanks
waynetan123
4-Oct-15 22:51pm
View
even trying your method the problem is the same during debug which gridview2 did not take in the function whereas gridview1 did. please advice
waynetan123
4-Oct-15 22:42pm
View
Hi please take a look at my updated codes. I have tried duplicating but its only works for the 1st grid view. the 2nd grid view is not working as it is not taking in the JS Function. thanks
waynetan123
4-Oct-15 21:25pm
View
so I have to include another script manager? because it will have to read the serial no input. please advice because I tried doing
function OnScrollDiv1(Scrollablediv) {
document.getElementById('DivHeaderRow1').scrollLeft = Scrollablediv.scrollLeft;
document.getElementById('DivFooterRow1').scrollLeft = Scrollablediv.scrollLeft;
}
function OnScrollDiv2(Scrollablediv) {
document.getElementById('DivHeaderRow2').scrollLeft = Scrollablediv.scrollLeft;
document.getElementById('DivFooterRow2').scrollLeft = Scrollablediv.scrollLeft;
}
But the pages doesn't load. always loading
The other way I tried is
function OnScrollDiv1(Scrollablediv) {
document.getElementById('DivHeaderRow1').scrollLeft = Scrollablediv.scrollLeft;
document.getElementById('DivFooterRow1').scrollLeft = Scrollablediv.scrollLeft;
document.getElementById('DivHeaderRow2').scrollLeft = Scrollablediv.scrollLeft;
document.getElementById('DivFooterRow2').scrollLeft = Scrollablediv.scrollLeft;
}
waynetan123
4-Oct-15 20:48pm
View
Hi Manas_Kumar, How about this part on
function OnScrollDiv(Scrollablediv) {
document.getElementById('DivHeaderRow').scrollLeft = Scrollablediv.scrollLeft;
document.getElementById('DivFooterRow').scrollLeft = Scrollablediv.scrollLeft;
}
please advice thanks
waynetan123
30-Sep-15 22:58pm
View
It consists of Unexpected character "\", label "ss" is a duplicate, only assignment call increment decrement ... can be used as a statement, newline in constant, invalid expression term ')', invalid expression term ", ) expected. Multiples of all these errors. thanks
waynetan123
30-Sep-15 2:51am
View
It underlines most of the codes
waynetan123
29-Sep-15 5:52am
View
Hi thanks for the reply, due to restrictions is there other ways todo it without the need to download additional software or use other commercial products?
waynetan123
29-Sep-15 3:33am
View
Do I need to add any references because once I added I receive 290 errors
waynetan123
28-Sep-15 5:29am
View
Hi, how can I do so with gridview? lets say I got gridview1 and gridview2.thanks
waynetan123
27-Sep-15 21:27pm
View
cant work for me
waynetan123
27-Sep-15 1:25am
View
Hi I updated my codes but still does not work. please help to see my updated codes thanks
waynetan123
27-Sep-15 0:49am
View
what documentation are you referring to?
waynetan123
27-Sep-15 0:32am
View
still cant
waynetan123
27-Sep-15 0:09am
View
In debug !=null is true even when I did not check any item. please suggest alternative thanks
waynetan123
25-Sep-15 11:53am
View
thanks for the help once again
waynetan123
25-Sep-15 7:50am
View
what should I replace with for fnSomeDemoFunction(this);?
waynetan123
25-Sep-15 7:31am
View
ohh so I need to create an additional function with the exact same codes but just to change .change to .each?
waynetan123
25-Sep-15 7:13am
View
Hi, I think there is a need to have the change statement or else there will be problems checking the box.
$(function () {
$("#Checkboxlist1 :checkbox").change(function () {
$("#Checkboxlist1 :checkbox:checked").each(function () {
var ischecked = true;
var val = $(this).val();
//alert(val);
if (val == "Select All") {
$("#Checkboxlist1 :checkbox").attr('disabled', 'disabled');
$(this).removeAttr('disabled');
$("#Checkboxlist1 :checkbox").prop("checked", false);
$(this).prop("checked", true);
$("#Checkboxlist2 :checkbox").removeAttr('disabled');
return;
}
// other if else statement here..
});
});
This is the rough concept but it still doesn't work
waynetan123
25-Sep-15 5:47am
View
thanks for your previous help all these while
waynetan123
25-Sep-15 5:07am
View
I have solved my problem but another problem arise...
waynetan123
25-Sep-15 4:53am
View
yup I did that approach previously. Do you think there is a need to set value="" in apsx?
waynetan123
25-Sep-15 4:49am
View
Do I have to put hfServerValue.Value = Page.IsPostBack.ToString().ToLower(); under if (!postback) or If(Postback) under pageload or just under pageload will do?
waynetan123
25-Sep-15 4:47am
View
Hi, I tried it. no error during debug but it does not do anything ( $("#Checkboxlist1 :checkbox").attr('disabled', 'disabled');
$("#Checkboxlist1 :checkbox[value='Select All']").removeAttr('disabled');
$("#Checkboxlist1 :checkbox[value='Select All']").prop("checked", true);) did not run on page load
waynetan123
25-Sep-15 4:35am
View
yes sure. I have updated my question with another approach I tried but it still reloads during postback e.g when I click on submit button
waynetan123
25-Sep-15 4:34am
View
Deleted
yes sure. I have updated my question with another approach I tried but it still reloads during postback
waynetan123
25-Sep-15 3:52am
View
It still reloads during postback e.g when I click on submit button
waynetan123
25-Sep-15 3:48am
View
sorry still the same error. From my research I roughly found out that if (postback) cant be used in javascript
waynetan123
25-Sep-15 3:44am
View
Hi I'm still receiving the same error
waynetan123
25-Sep-15 3:25am
View
Hi! Here the error I received-0x800a1391 - JavaScript runtime error: 'IsPostback' is undefined @ if (!IsPostback)
waynetan123
25-Sep-15 3:18am
View
Does not work:(
waynetan123
25-Sep-15 3:08am
View
Do I need to change $(window).ready(function () ?
waynetan123
25-Sep-15 3:00am
View
Cheers! Actually I have posted a new question http://www.codeproject.com/Questions/1033138/How-do-I-change-the-settings-of-this-function-to-m?arn=0. Please feel free to help me out:)
waynetan123
24-Sep-15 23:16pm
View
Hi, managed to solved my problem thanks:)
waynetan123
24-Sep-15 22:24pm
View
Deleted
As my "select all" is true by default. thus is it possible to disable all other list items by default other than select all? which would help to solve my above issue
waynetan123
24-Sep-15 22:16pm
View
Deleted
Hi again, I realise something that if "Select All" in Checkboxlist1 is checked and I straight away checked maybe lets say food it does not disable the rest of the codes as I did not click on uncheck "Select All" which bypass the else statement. However if I were to put disable all during the if checked food and same goes for drinks it will have errors as when I check on food it disables all and enable chicken and spinach but it I check on drink it will disable chicken and spinach which I have checked (food). Hope to seek your advice on this thanks
waynetan123
24-Sep-15 20:18pm
View
thanks for the highlight. I will sort it out myself. thanks again.
waynetan123
24-Sep-15 9:58am
View
Hi, I added under the if statement of 'Food' but there is only a popup alert showing food
waynetan123
24-Sep-15 9:49am
View
when I checked on Food, The popup alert was Food
waynetan123
24-Sep-15 9:37am
View
Hi there I'm sincerely asking a question after trying to code multiple times. Its not like I did not try coding. My code logic is right just that im unsure why am I facing the error.
waynetan123
24-Sep-15 9:36am
View
Hi, I have removed the loop and the .click as have updated the codes in my question but it still does not work. (e.g I check on 'Food' in checkboxlist1 it does not remove the disable in 'spinach' and 'chicken' in checkboxlist2
Show More