16,012,173 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 .NET 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 anil_kumar_bhakta (Top 22 by date)
anil_kumar_bhakta
26-Jun-22 7:22am
View
this also lost the functionality of select2.
anil_kumar_bhakta
20-Jun-22 14:05pm
View
Console responses are as below: -
....
System.ArgumentNullException: Value cannot be null. (Parameter 'items')
at Microsoft.AspNetCore.Mvc.Rendering.MultiSelectList..ctor(IEnumerable items, String dataValueField, String dataTextField, IEnumerable selectedValues, String dataGroupField)
at Microsoft.AspNetCore.Mvc.Rendering.SelectList..ctor(IEnumerable items, String dataValueField, String dataTextField, Object selectedValue)
at Microsoft.AspNetCore.Mvc.Rendering.SelectList..ctor(IEnumerable items, String dataValueField, String dataTextField)
at CallSite.Target(Closure , CallSite , Type , Object , String , String )
at IDESK.Models.CustomerMaster.Views_CustomerMaster__Customer.<executeasync>b__38_6() in D:\OCCL\IDESK\IDESK\Views\CustomerMaster\_Customer.cshtml:line 58
at Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext.GetChildContentAsync(Boolean useCachedResult, HtmlEncoder encoder)
at Microsoft.AspNetCore.Mvc.TagHelpers.RenderAtEndOfFormTagHelper.ProcessAsync(TagHelperContext context, TagHelperOutput output)
at Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner.<runasync>g__Awaited|0_0(Task task, TagHelperExecutionContext executionContext, Int32 i, Int32 count)
at IDESK.Models.CustomerMaster.Views_CustomerMaster__Customer.ExecuteAsync() in D:\OCCL\IDESK\IDESK\Views\CustomerMaster\_Customer.cshtml:line 32
at Microsoft.AspNetCore.Mvc.Razor.RazorView.RenderPageCoreAsync(IRazorPage page, ViewContext context)
at Microsoft.AspNetCore.Mvc.Razor.RazorView.RenderPageAsync(IRazorPage page, ViewContext context, Boolean invokeViewStarts)
at Microsoft.AspNetCore.Mvc.Razor.RazorView.RenderAsync(ViewContext context)
at Microsoft.AspNetCore.Mvc.ViewFeatures.ViewExecutor.ExecuteAsync(ViewContext viewContext, String contentType, Nullable`1 statusCode)
at Microsoft.AspNetCore.Mvc.ViewFeatures.ViewExecutor.ExecuteAsync(ViewContext viewContext, String contentType, Nullable`1 statusCode)
at Microsoft.AspNetCore.Mvc.ViewFeatures.ViewExecutor.ExecuteAsync(ActionContext actionContext, IView view, ViewDataDictionary viewData, ITempDataDictionary tempData, String contentType, Nullable`1 statusCode)
at Microsoft.AspNetCore.Mvc.ViewFeatures.PartialViewResultExecutor.ExecuteAsync(ActionContext context, PartialViewResult result)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<invokenextresultfilterasync>g__Awaited|29_0[TFilter,TFilterAsync](ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResultExecutedContextSealed context)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.ResultNext[TFilter,TFilterAsync](State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeResultFilters()
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<invokenextresourcefilter>g__Awaited|24_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeFilterPipelineAsync()
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<invokeasync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
at Microsoft.AspNetCore.Routing.EndpointMiddleware.<invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext
anil_kumar_bhakta
20-Jun-22 13:56pm
View
The 'required' attrubute was added for testing. Without required it also behave the same.
In Model, it is already marked as required like below: -
...
[Display(Name = "CUST_GROUP")]
[Required(ErrorMessage = "Please enter Customer Group")]
[MaxLength(20)]
public string CUST_GROUP { get; set; }
...
"Also, you're removing the selected attribute from all of the list options every time the list changes. The user will never be able to select anything from the list!"
I think it is required when user select the option. If user select any of the listed item and again select the placeholder it is going to validadte. But my concern is that when user press 'save' button it must be validate. I also set the control break in my controller it goes and modelstate invalidated then it come back to partialview and validation message not displaying. However it works perfect without Select2.
anil_kumar_bhakta
2-Jan-20 6:26am
View
Thanks for your guidance. But my question is that the same code is running well before 12:00 pm. I am able to get the result after this time period which i am observing since last 15 days.
I am also able to browse the same link at anytime.
anil_kumar_bhakta
23-Dec-18 6:27am
View
you are right. but when we go for element inspect from browser data shown. I think this data is being loaded by the function "fetchPrice()". Here "fetchPrice()" how works i do not know.
anil_kumar_bhakta
28-Feb-17 9:35am
View
Very true. Just check the below link:
https://voidnish.wordpress.com/2011/02/11/datetimepicker-focus-issue/
anil_kumar_bhakta
6-Jan-17 4:56am
View
It is Windows Form. Input length is already defined. I am not selecting the tex. it is being selected automatically.
anil_kumar_bhakta
19-Aug-16 8:00am
View
No one is responding!
anil_kumar_bhakta
27-Jan-15 0:14am
View
I fully agree with you. But how to load blank report in bankgroundworker. Please guide me.
anil_kumar_bhakta
25-Jan-15 11:06am
View
yes. it is the same activity.
anil_kumar_bhakta
10-Mar-14 0:22am
View
Already tried but no improvement.
anil_kumar_bhakta
26-Jan-13 12:49pm
View
Thanks a lot, Tharak MTR! I have again tried it and it's also working like charm!
anil_kumar_bhakta
26-Jan-13 12:01pm
View
Hi Mike,
It's working like charm! Thanks a lot.
anil_kumar_bhakta
26-Jan-13 12:01pm
View
Solution 2 is working fine for me. But your query is not giving the desired result. thanks for trying.
anil_kumar_bhakta
26-Jan-13 10:47am
View
Thanks for trying. But this is not the correct answer. Please see the result again. It's fine for "COF" and "PL" because "from_date" is consecutive. But in case of "SL" this is not consecutive.
anil_kumar_bhakta
8-Aug-11 7:51am
View
I've already set this property. but we can move there by control like TAB. I mean, the disabled column should not selected also.
anil_kumar_bhakta
17-Jun-11 12:10pm
View
no idea please
anil_kumar_bhakta
17-Jun-11 12:10pm
View
no idea please
anil_kumar_bhakta
22-Apr-11 6:59am
View
By the way, we resolve the problems with slightly changes in this statement.
Thanks a lot.
anil_kumar_bhakta
22-Apr-11 4:52am
View
thanks. but your expression "added = cmdSeek.ExecuteScalar();" is wrong due to cast type. i already said the SP is working fine in SSMS.
anil_kumar_bhakta
19-Apr-11 3:54am
View
Very nice!
anil_kumar_bhakta
20-Oct-10 13:47pm
View
thanks. i have trace out the exact problem. actually my "select statement" is as below: -
"select field1,field2, field3 as ABC ....". in my report designer the field "field3" appears but data of this is not showing.
Show More