15,993,795 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 Ehsan Sajjad (Top 130 by date)
Ehsan Sajjad
2-Jan-19 0:23am
View
how does it looks in rendered html ?
Ehsan Sajjad
28-Nov-18 23:16pm
View
error is pretty clear, you have more than 1 constructor overload defined multiple times. remove one of them.
Ehsan Sajjad
25-Nov-18 0:59am
View
can you show what is the format of date coming as input in the textbox ?
Ehsan Sajjad
18-Nov-18 23:41pm
View
i had saw while searching but thought there might be more better approach, but i think i need to stick to this library for now. Thanks
Ehsan Sajjad
31-Jul-18 10:07am
View
var textValue = ActiveTabIndex[1].TextBoxValue;
Ehsan Sajjad
7-May-18 11:19am
View
Thanks @Bill and yes it is not yet out as part of C# 8
Ehsan Sajjad
7-May-18 8:14am
View
in most of the cases yes, otherwise it does not makes sense to have abstract class, but mind that there are no hard and fast rules, but in general practice interfaces is preferred in situation where there is no default behavior needed but just contract.
Ehsan Sajjad
10-Apr-18 3:47am
View
well expalained. 5ed
Ehsan Sajjad
29-Mar-18 2:26am
View
any exceptions you see? have you tried putting a breakpoint and see in debug mode?
Ehsan Sajjad
24-Mar-18 9:08am
View
you forgot to tell what is the problem ?
Ehsan Sajjad
19-Mar-18 13:18pm
View
No, i am not getting what you are trying to ask, you can post a new thread about that
Ehsan Sajjad
9-Mar-18 14:09pm
View
good explained, 5ed
Ehsan Sajjad
15-Feb-18 8:11am
View
can you show the Entity class implementation, it could be something in it.
Ehsan Sajjad
13-Feb-18 9:21am
View
You need to call it where you want to actually invoke the stored procedure, currently in your controller action
Ehsan Sajjad
3-Feb-18 13:44pm
View
or may be setinterval
Ehsan Sajjad
3-Feb-18 13:42pm
View
5ed
Ehsan Sajjad
3-Feb-18 5:31am
View
do you see that alert ?
Ehsan Sajjad
3-Feb-18 3:14am
View
Check the browser console for any js errors
Ehsan Sajjad
2-Feb-18 8:12am
View
can you log on console newItem value and see how it looks like?
Ehsan Sajjad
11-Jan-18 7:44am
View
never mind, this works for the example posted in question but i was actually looking for something more generic, like your regex is looking for 5 occurrences of : sign and it would not be exactly 5 in every case, can be more or less, but country would be at end.
Ehsan Sajjad
10-Jan-18 10:15am
View
ok, thanks for suggesting the $ thing again, i think this will keep me going for now and your answer is valid as per my need for now, so accepting it, thanks once again :)
Ehsan Sajjad
10-Jan-18 10:08am
View
ok great, so let's say in another example i don't have country name at end, in that case this would fail ?
Ehsan Sajjad
10-Jan-18 10:02am
View
i am limited here to only use regex, your suggestion would help i think, do you mean putting $ will is forcing it to just grap the end of line match ?
Ehsan Sajjad
10-Jan-18 10:00am
View
the problem is country name can be any
Ehsan Sajjad
3-Jan-18 5:35am
View
your questions is not clear enough that what is the actual issue
Ehsan Sajjad
4-Oct-17 6:12am
View
it is working fine for me in online fiddle, there is possibly something else in your js or html disturbing the behavior
Ehsan Sajjad
3-Jul-17 4:07am
View
it is because you probably have one to many relationship with details table from main table.
Ehsan Sajjad
2-Jul-17 5:17am
View
any errors or what is happening when you run above code?
Ehsan Sajjad
17-Jun-17 13:32pm
View
so the above does not works? any errors/exceptions ?
Ehsan Sajjad
15-Jun-17 19:39pm
View
what problem are you facing ?
Ehsan Sajjad
31-May-17 10:04am
View
you are open to sql injection, use parameterized queries, do not do string concatenation.
Ehsan Sajjad
23-May-17 11:43am
View
so what happens when you run the above code?
Ehsan Sajjad
20-Apr-17 7:45am
View
have you inspected the dev tools console for js errors?
Ehsan Sajjad
20-Apr-17 7:36am
View
thanks Afzaal for letting me know :) i am not familiar much with codeproject forums :)
Ehsan Sajjad
20-Apr-17 7:34am
View
is the autocomplete in
$(document).ready()
?
Ehsan Sajjad
20-Apr-17 7:29am
View
and also check browser console for any javascript errors
Ehsan Sajjad
20-Apr-17 7:28am
View
please put a break point in action method and see if it is getting called
Ehsan Sajjad
17-Apr-17 8:45am
View
5ed
Ehsan Sajjad
22-Mar-17 16:11pm
View
there is no join like this and i have never heard of it, interviewer might be checking you what you will say
Ehsan Sajjad
15-Mar-17 5:19am
View
you don't need to include it directly in select, instead project it's specific properties as you did but i can see it is commented out which is :
Administrator = a.Administrator.FullName
Ehsan Sajjad
13-Mar-17 8:10am
View
any exception coming in the controller when SaveChanges is called ?
Ehsan Sajjad
13-Mar-17 8:07am
View
don't use ViewBag, use ViewModel as i suggested above
Ehsan Sajjad
12-Mar-17 13:14pm
View
put
@
before the code, i missed that
Ehsan Sajjad
12-Mar-17 8:41am
View
for the time being you can write the above code in view to keep going, but viewmodel should be the place to do this.
Ehsan Sajjad
10-Mar-17 15:08pm
View
and here : https://www.codeproject.com/Articles/1114208/Beginners-Guide-for-Creating-GridView-in-ASP-NET-M
Ehsan Sajjad
10-Mar-17 15:07pm
View
have a look here :https://www.codeproject.com/Articles/1118363/GridView-with-Server-Side-Filtering-Sorting-and-Pa
Ehsan Sajjad
2-Mar-17 3:42am
View
i am looking, will update you soon
Ehsan Sajjad
1-Mar-17 5:08am
View
isn't it doable via xaml, i think it is doable via xaml but i am not getting the exact syntax of how to do bindings.
Ehsan Sajjad
1-Mar-17 5:01am
View
that is not my question, i want to specify particular element properties of my template when using it
Ehsan Sajjad
27-Feb-17 6:07am
View
do we still need contatenation when using parameterzied query?
Ehsan Sajjad
23-Feb-17 3:54am
View
can you post the exception details and specifically on which line it is occuring?
Ehsan Sajjad
21-Feb-17 7:48am
View
what is value in the path variable at that time when exception is coming ?
Ehsan Sajjad
15-Feb-17 4:09am
View
show the code by updating the question, how are you doing that?
Ehsan Sajjad
15-Feb-17 3:48am
View
how are you calling it ?
Ehsan Sajjad
7-Feb-17 6:32am
View
you should not be updating your model if it is your DTO class, better approach is to create a ViewModel.
Ehsan Sajjad
4-Feb-17 13:29pm
View
please post the relevant code of your aspx page and codebehind, otherwise nobody can help you as your question stands right now.
Ehsan Sajjad
25-Jan-17 13:21pm
View
have you tried anything yet?
Ehsan Sajjad
24-Jan-17 7:32am
View
you have two classes with name Product, so you would need to use fully qualified name to tell which Product class is meant to be used.
Ehsan Sajjad
25-Dec-16 14:11pm
View
for which column you want to add dropdown list?
Ehsan Sajjad
17-Dec-16 15:24pm
View
WebMethods are normally static methods, it would not work if it is not made static according to my knowledge, try adding static keyword in method signatures, hope it helps
Ehsan Sajjad
15-Dec-16 5:52am
View
what you can do is have another calcs table where the pre calculated data is there, and just select it top use then
Ehsan Sajjad
14-Dec-16 11:52am
View
how the data looks like in the datatables?
Ehsan Sajjad
13-Dec-16 9:23am
View
you question right now is too broad, please be more specific, what have you tried, where you are actually having problem
Ehsan Sajjad
12-Dec-16 10:25am
View
do you have controls directly in the tabpage or you have put a user control inside the tabpage, if yes then you would need to iterate the controls inside the user control
Ehsan Sajjad
6-Dec-16 16:40pm
View
you just want to set the selectedindex of combobox to same as gridview selected index?
Ehsan Sajjad
6-Dec-16 16:18pm
View
do you have items in combobox?
Ehsan Sajjad
6-Dec-16 8:57am
View
show the controller code
Ehsan Sajjad
6-Dec-16 6:29am
View
if you have added reference to DynamicLinq, then add the using on top the class, you should be able to use the Where method which takes string as input
Ehsan Sajjad
5-Dec-16 16:19pm
View
your query where clause part should not be string literal, it should be like : `var result = filtered.Where(query);`
Ehsan Sajjad
5-Dec-16 15:07pm
View
thanks. (y)
Ehsan Sajjad
5-Dec-16 11:53am
View
you need to show how your tried code looks like.
Ehsan Sajjad
2-Dec-16 7:32am
View
what is happening right now with this way?
Ehsan Sajjad
30-Nov-16 15:41pm
View
your question is not understandable.
Ehsan Sajjad
30-Nov-16 15:33pm
View
your question is too broad, it cannot be answered in the state it is right now, please add more information relevant to your question
Ehsan Sajjad
30-Nov-16 14:54pm
View
please provide more details, show relevant code
Ehsan Sajjad
30-Nov-16 14:53pm
View
what is the datatype of it in sql server?
Ehsan Sajjad
28-Nov-16 11:25am
View
the above information is not enough to figure out what you did wrong
Ehsan Sajjad
26-Nov-16 9:43am
View
That method can be in in a non generic class but the field cannot
Ehsan Sajjad
25-Nov-16 11:58am
View
is the code in your generic abstract class defined above?
Ehsan Sajjad
15-Nov-16 10:41am
View
why you are doing at Application_Start method, there is seperate class RouteConfig.cs, do it in there
Ehsan Sajjad
6-Nov-16 15:18pm
View
there are many but i don't think free one out there any
Ehsan Sajjad
21-Oct-16 2:20am
View
is it asp.net mvc?
Ehsan Sajjad
20-Oct-16 18:12pm
View
why not use StopWatch class provided by .Net framework?
Ehsan Sajjad
3-Oct-16 10:14am
View
you need to add a new property in the class for that,
Ehsan Sajjad
30-Sep-16 7:24am
View
you are adding jquery multiple times, please avoid that, that is most probably the reason for it
Ehsan Sajjad
30-Sep-16 6:44am
View
have you checked the dll is there which contains the DataAccessLayer implementation?
Ehsan Sajjad
29-Sep-16 8:34am
View
can you show the controller action, it looks like you have ValidateAntiFreogeryToken attribute on it
Ehsan Sajjad
28-Sep-16 7:53am
View
your question is too broad in scope, please provide more details, are you using ado.net or entity framework as Data Access Layer?
Ehsan Sajjad
21-Sep-16 11:10am
View
you want to send 5 ajax calls from browser?
Ehsan Sajjad
31-Jul-16 8:00am
View
well explained, upvoted :)
Ehsan Sajjad
31-Jul-16 7:52am
View
i think there is nothing wrong in the code
Ehsan Sajjad
31-Jul-16 7:50am
View
can you show the relevant code?
Ehsan Sajjad
31-Jul-16 7:47am
View
the error is coming on which line?
Ehsan Sajjad
23-Jun-16 16:40pm
View
that is the expected behaviour you have multiple items against a invoice number, you need to write logic at front end for displaying it one time may be grouping them
Ehsan Sajjad
10-May-16 6:36am
View
if it is singleton, it will only have one single object
Ehsan Sajjad
5-May-16 6:05am
View
this does not make sense to me, why you need to add a property for just getting the selected value from the control
Ehsan Sajjad
4-May-16 16:40pm
View
that line is not causing that exception
Ehsan Sajjad
4-May-16 15:29pm
View
have you looked at : http://stackoverflow.com/questions/29173681/specifically-getting-the-system-temp-path-in-c-sharp
Ehsan Sajjad
4-May-16 10:41am
View
it happens when copy pasted :D
Ehsan Sajjad
4-May-16 8:11am
View
oh, i corrected it, i noticed that after adding the reply to your comment. Thanks for pointing out :)
Ehsan Sajjad
4-May-16 6:54am
View
for example ??
Ehsan Sajjad
4-May-16 5:49am
View
can you show your c# class against the json you created?
Ehsan Sajjad
3-May-16 8:26am
View
there is typo as well, you are missing a closing bracket:
options.success = function (changeZeitraum) {
$("#z").empty();
});
Ehsan Sajjad
3-May-16 8:11am
View
and put it in document.ready function
Ehsan Sajjad
3-May-16 8:11am
View
can you check the console for any errors?
Ehsan Sajjad
2-May-16 13:48pm
View
this information is not enough to help you out
Ehsan Sajjad
2-May-16 7:18am
View
there are third party libraries out which can be used for this
Ehsan Sajjad
2-May-16 7:16am
View
can you show sample results of both?
Ehsan Sajjad
1-May-16 15:36pm
View
Thanks KARTHIK
Ehsan Sajjad
1-May-16 11:05am
View
what is exact value in the login.Email when you debug and what is in the table?
Ehsan Sajjad
23-Dec-15 5:57am
View
have you tried that before asking question?
Ehsan Sajjad
22-Nov-15 10:15am
View
due to outer join you may have null in art where rows have not matched
Ehsan Sajjad
16-Nov-15 11:45am
View
what is the question?
Ehsan Sajjad
13-Nov-15 4:12am
View
Have a look at CSVHelper google it
Ehsan Sajjad
12-Nov-15 13:03pm
View
your question is too broad, please show what you tried and be specific
Ehsan Sajjad
11-Nov-15 13:19pm
View
PLease add relevant code what you have tried and where you are stuck, your question is too broad
Ehsan Sajjad
11-Nov-15 13:18pm
View
your question is too broad, show some effort
Ehsan Sajjad
5-Nov-15 6:05am
View
any errors on console. what do you mean by not working, only saying not working does not helps to understand what could be wrong.
Ehsan Sajjad
10-Oct-15 4:25am
View
check in the web.config file what have you set?
Ehsan Sajjad
10-Oct-15 4:13am
View
it is connection string problem, it may be wrong.
Ehsan Sajjad
1-Oct-15 3:58am
View
post the relevant code only don't post all the code
Ehsan Sajjad
30-Sep-15 3:43am
View
i don't think so.
Ehsan Sajjad
23-Sep-15 1:32am
View
the answer to it, you should not use Domain/ Data Model which is mapped to database table in View, you should use ViewModel according to requirements in your View and appply Compare, Required etc attributes on ViewModel, not Domain Model. I hope it helps.
Ehsan Sajjad
22-Sep-15 13:23pm
View
You have to create a new class with properties that you need to use in View which is called ViewModel and when it is posted in action map it's properties to your geenrated model Client class before doing DB operations, so your DataBase Model and View Model will be different.
Ehsan Sajjad
22-Sep-15 9:29am
View
give complete url in url property like : "url : localhost/SomeProject/Service1.svc/Get_myHours",
Ehsan Sajjad
22-Sep-15 5:15am
View
you are not passing parameters of the service method from client side
Ehsan Sajjad
22-Sep-15 2:55am
View
use anonymous type here or create a column type according to your requirement
Ehsan Sajjad
22-Sep-15 1:33am
View
Have you tried executing query in Sql Server Management Studio?
Ehsan Sajjad
18-Sep-15 3:48am
View
Can you show your model class as well?
Ehsan Sajjad
18-Sep-15 3:42am
View
Your question is not clear to me.
Show More