15,886,873 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 sachin.vishwa90 (Top 47 by date)
sachin.vishwa90
16-Nov-18 7:12am
View
you need to mention what you have tried?
basically you will have to create a separate thread for each method and run your thread so your code shouldn't be waiting for each other.
sachin.vishwa90
16-Nov-18 6:42am
View
that's one hell of a bad code, your code file in question is way more complex, highlight or share the code where you have tried multi threading.
read this https://blogs.msdn.microsoft.com/tmarq/2010/04/14/performing-asynchronous-work-or-tasks-in-asp-net-applications/
sachin.vishwa90
23-Aug-18 10:44am
View
The other protocol means, SOAP protocol. But as you said your site will be in PHP then go for webapi. its lightweight and fast.
sachin.vishwa90
9-Feb-18 9:27am
View
good catch
sachin.vishwa90
10-Oct-17 8:02am
View
well, in that case you will have to first form the ImageList HTML and inject the formed HTML in the string.format code. hope you understand it
sachin.vishwa90
10-Oct-17 3:13am
View
hi, that can easily be done too. all you have to do is select the path of those images as well in your select statement as below.
select new
{
c.id,
c.Author,
c.BlogTitle,
c.BlogDescription,
c.ImagePath
}).OrderByDescending(d => d.id)
and then bind this path to the src tag in the string.
sb.Append(string.Format("....<img src='{3}' .....",x.Author, x.BlogTitle,x.BlogDescription,x.ImagePath));
hope that helps. may be you have to check the path of image, whether it is relative or absolute path.
sachin.vishwa90
5-Oct-17 2:38am
View
you have used linq statement to select the records from database. so how this linq works is it, whatever you write here in c# code it internally creates a sql statement and when you write .ToList() then it actually fires the sql statement. in earlier case this statement was created but not executed. as soon as you wrote .ToList() it executed the query and brought you data.
for readmore i will post soon.
sachin.vishwa90
4-Oct-17 14:18pm
View
lol, i was about to reply the same, but do you know why you have to use .ToList there?
sachin.vishwa90
4-Oct-17 10:09am
View
it is possible, if you are using cookies and javascript.
sachin.vishwa90
21-Jul-17 6:53am
View
can you show us what the final html rendered in browser?
sachin.vishwa90
27-Jun-17 2:49am
View
inform me too, if you find any simpler one. best of luck
sachin.vishwa90
26-Jun-17 10:42am
View
you can do that by adding some header in your response, basically you have to append something unique in your response and your javascript code should keep on looking for that unique thing in your response and as soon as it finds do the UI changes.
are you facing any issue using cookie?
sachin.vishwa90
26-Jun-17 9:34am
View
i thing you didn't get the question properly. applicant should not be able to perform activity on browser while code is processing on server side. it means show the loader or disable the button when the postback has happened and hide or enable the button when postback completes(when browser received the response)
sachin.vishwa90
22-Jun-17 9:38am
View
how frequent does your data in listview changes? does your list view shows only name?
sachin.vishwa90
22-Jun-17 9:30am
View
best reply to such questions
sachin.vishwa90
2-May-17 10:19am
View
http://stackoverflow.com/questions/6365255/jquery-onclick-event-for-li-tags
to bind the events on list
http://stackoverflow.com/questions/10517315/checking-if-all-form-inputs-are-empty-with-jquery
above link to check all the inputbox are empty or not
sachin.vishwa90
2-May-17 10:03am
View
if you use this code as it is it will not work.
this is a kind of algorithm. you have to be very precise with your syntax
sachin.vishwa90
24-Apr-17 1:40am
View
after several call with non-technical customer care guys. i finally solved this. Now email are shooting like bullet.
sachin.vishwa90
13-Apr-17 13:04pm
View
I wish they hire few skilled technical peoples to help. i had spend my good plenty of hours talking to them which went useless.
sachin.vishwa90
10-Apr-17 2:36am
View
as advised try to put the outcome html in div and keep your content there only.
i believe you have this button on the same page
after click of this button you want the
partial view to appear in modalpopup.
and you have given the partial view code too.
if that is the case in in the success method you have to invoke only the modal function. I reckon you don't need to update the modal
try removing the below code
// refreshes partial view
$('#modalMarkup').html(result);
and return false;
also you will have to use $scope.apply function after you update the http://jimhoskins.com/2012/12/17/angularjs-and-apply.html refer this.
$('#modalMarkup').html(result);
$('#modalMarkup').modal('show');
$scope.apply();
sachin.vishwa90
30-Mar-17 1:55am
View
are you getting any error or exception?
sachin.vishwa90
29-Mar-17 5:56am
View
code please?
sachin.vishwa90
29-Mar-17 3:02am
View
have you tried doing anything?
sachin.vishwa90
23-Mar-17 5:29am
View
what have you tried?
sachin.vishwa90
17-Mar-17 10:07am
View
you have asked more question than the one who has posted this question :P
sachin.vishwa90
16-Mar-17 4:27am
View
is this script running after the element generated or is it in your section?
if it is in head section and try to put script at bottom of your page.
you can try jquery syntax too. first you have to see what is the Id of element and what is the Id in your document.getElementById(..).
sachin.vishwa90
16-Mar-17 3:19am
View
have you checked what is value in the hidden field control in your html view?
may be you will have to use Bind instead of Eval.
sachin.vishwa90
14-Mar-17 8:21am
View
did you check if you are getting value from first gridview? is your ADO code returning you proper data?
And it is preferable to use updatepanel for such scenarios. other wise changes will happen and pageload event will reset the things again, due to which you will not see the new changes.
sachin.vishwa90
14-Mar-17 2:57am
View
There are few steps which you have to check.
1)put debugger in your javascript code where you are making an ajax call, check you are getting appropriate data in your script.
2)Put debugger in your action method and check you are getting appropriate data in your action method.
3) Make sure you are returning the object which is needed in your view
ex return Json(responseObject,JsonRequestBehavior.AllowGet); or JsonResult(responseObject,JsonRequestBehavior.AllowGet);
so key is debug your code and you will get the proper answer why it is giving you 500 error.
sachin.vishwa90
14-Mar-17 2:47am
View
good question
sachin.vishwa90
14-Mar-17 2:40am
View
hi, Page Load event will occur each and every time, whenever postback happens. However you can avoid the entire page load by having Update Panel in your aspx pages.
try to drill down the update panel functionality and use that in your aspx page.
Are you purposely want to avoid the pageload?
http://ajax.net-tutorials.com/controls/updatepanel-control/
sachin.vishwa90
14-Mar-17 1:53am
View
you can keep it very simple by having viewModel, which will consist of all the property needed in your view, this will also include the properties which you want on your post back.
check below link it will definitely help you
https://www.aspsnippets.com/Articles/Bind-Populate-DropDownList-from-database-using-Model-in-ASPNet-MVC-Razor.aspx
sachin.vishwa90
14-Mar-17 1:53am
View
Deleted
you can keep it very simple by having viewModel, which will consist of all the property needed in your view, this will also include the properties which you want on your post back.
check below link it will definitely help you
https://www.aspsnippets.com/Articles/Bind-Populate-DropDownList-from-database-using-Model-in-ASPNet-MVC-Razor.aspx
sachin.vishwa90
14-Mar-17 1:50am
View
hey chap, this is one of the solution which would definitely help him.
sachin.vishwa90
10-Mar-17 1:06am
View
you know you can debug the view as well. now you need to observe what is the value in your model.P_CategoryID, because the same value will be posted from your view. And one more thing you will observe in your code while inserting value in your table you are using following,
CategoryAdminPanel cat = new CategoryAdminPanel(); //create new object
cmd.Parameters.AddWithValue("@category", cat.Cat_ID); // putting value from cat object, since it doesnot have any value with it.
where as you should be picking categoryId from your product model as product.P_CatedoryID;
check if that works.
sachin.vishwa90
10-Mar-17 0:55am
View
have you mentioned the server address in your connection string?
sachin.vishwa90
10-Mar-17 0:37am
View
you need to check what is value in the cat.Cat_ID when your model is posted. i suspect that the value in cat.Cat_ID is not there is your dbo.Catagories table. thats why you are getting this error.
if that is the case then your model is not posting proper value from view. That is the problem here.
for more clarity post your view's code as well
sachin.vishwa90
6-Mar-17 5:28am
View
you are making your life hard, you can use existing bootstrap framework for designing you application. if you have application which is already designed then go for table approach.
sachin.vishwa90
1-Mar-17 5:34am
View
db.users.aggregate([{$match:{"_id":"yourUserId"}},{$unwind:"$roles"},{$project:{"$roleName._Id":1}},{$lookup:{from:"userRole",localField:"_id",foreignField:"_id",as:"userPermissions"}}])
can you try this query?
sachin.vishwa90
1-Mar-17 5:08am
View
hi, That query was just an skeleton to show you for join the two document and pass the result to next operator, may be you will have to use $unwind operator after join.
check the link which was shared in my solution. by the time i will check data posted by you.
sachin.vishwa90
28-Feb-17 8:53am
View
mark it solved
sachin.vishwa90
28-Feb-17 8:50am
View
I will use that, thanks for guiding me. cheers
sachin.vishwa90
10-Feb-17 4:02am
View
for getting the value it seems you have to generate own legand template by using
"legend.labels.generateLabels" function. This function will return the label html. in that HTML you can have your custom attribute with desired value.
After that on click function -> legantItem you can read the custom attribute value.
This is what i can suggest. Give it a try
sachin.vishwa90
20-Jan-17 10:48am
View
you don't need to change the awesome grid script, in fact, you have to use the functionality given by awesome grid. this change will be on the view only. you can never show the progress from controller until and unless you are hitting the controller action again and again to update the view.
sachin.vishwa90
6-Jan-14 1:50am
View
instead of converting this to array you can convert it to list " .ToList() "
sachin.vishwa90
22-Aug-13 10:43am
View
Reason for my vote of 5 \n the code is simple with complex effect
sachin.vishwa90
18-May-13 0:46am
View
Reason for my vote of 5 \n this topic is explained so easily. thanx alot bro
Show More