15,886,031 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 Avishek Pat (Top 6 by date)
Avishek Pat
23-Jan-13 3:10am
View
When you're dragging or dropping then is your counter is getting incremented for each iteration ? like for first drop its 1 for second iteration its 2 and so on ? And you are sure the page is not making any postback event ?
Please let me know the same so I can share some more other options.
Avishek Pat
23-Jan-13 3:07am
View
The values ware coming into the respected variable ? And what datatype you have decleared in the database for @Manglik ? Please make sure you are not mistaking in any casting issue
Avishek Pat
23-Jan-13 1:22am
View
Try to get the data from the controls in individual string variable and then pass the variable accordingly with proper casting. And add break point while testing the same.
Avishek Pat
22-Jan-13 23:12pm
View
Are you refreshing your page in each drag and drop? If so then the counter will reset so you cannot take a count the number of iteration values for each movement. I suggest you not to do the refresh operation instead of that you can call an ajax call operation if you require some server side operation after each drop. Else you can put the iteration values in session so the iteration values wont get resetted.
Please let me know if that helps.
Avishek Pat
22-Jan-13 5:00am
View
If you found this answer as useful then please mark is as correct.
:)
Avishek Pat
22-Jan-13 4:49am
View
<script>
$(function() {
var drop-cnt = 0;
var iteration-cnt = @Model.DataIteration;//Replace the @Model.DataIteration with your logic to get the mysql fetched value
$( "#draggable" ).draggable();
$( "#droppable" ).droppable({
drop: function( event, ui ) {
if(drop-cnt <= iteration-cnt){
$( this )
.addClass( "ui-state-highlight" )
.find( "p" )
.html( "Dropped!" );
}
}
else{
//unbinding the events
$('#draggable').unbind('draggable');
$('#droppable').unbind('droppable');
}
});
});
This might work for you. Please let me know what are the outcomes for this.
Show More