16,008,299 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 M.Kamran Asim (Top 14 by date)
M.Kamran Asim
4-Apr-20 8:51am
View
Thanks Wendelius for your response. UDT at schema level is working fine. I tested already. But due to some store procedure in production its not possible to move types from packages to schema level. Therefore I have to find solution for package types
M.Kamran Asim
10-Dec-18 15:04pm
View
Try updatesourcerrigger = propertychanged
M.Kamran Asim
25-Nov-18 23:43pm
View
Can you elaborate more. your requirements are confusing. Please if you can share source code, expected input and response.
As I understand you only need data which you had fill during operation, but you are receiving default values of other properties. For example in your BaseCustomerModel you dont want customerId, but you are receiving 0 value in response object, where 0 is meaningful to you.
This is default behavior of CLR, that it will initialize object with default value, but still if you dont need default value of int, double, float etc, make it nullable and ignore nullable in response.
M.Kamran Asim
15-Nov-18 4:00am
View
AllUSStates Property is in wrong place. Why you are using US_State class for multi purpose. US_State act only as a Model, which is signature how you keep data.
while AllUSStates holds data of States. This property is supposed to be part of ViewModel, but in your case it is supposed to be part of windows.cs.
So Move this property to mainwindow, and keep US_State simple. This class will only hold attributes (Public properties).
M.Kamran Asim
14-Nov-18 23:23pm
View
Problem in your code is Get_States is private variable. You need to create public property. Binding only happens with public property. For complete solution see my posted Solution
M.Kamran Asim
14-Nov-18 3:01am
View
Did you configure CommandTimeout settings. It seems your command timeout is less than actual execution time of store procedure.
M.Kamran Asim
14-Nov-18 2:56am
View
Can you try AssemblyVersion and AssemblyFileVersion in Project AssemblyInfo.cs which is located in Properties->AssemblyInfo.cs.
M.Kamran Asim
13-Nov-18 3:11am
View
In above example I placed it in code behind of your window/userControl. It seems you are using window. So declare public property USStates in window code behind.
and on load method of window fill this property.
If you check xaml binding of combobox it says
Bind to USStates which is off course public property, but
Search in relatvie source which i guided as type of window and Find this type in Ancestor. means that in xaml document search its parent until you reach to type of window, and then search for the proerty USStates .
Lastly i mentioned as UpdateSourceTrigger=PropertyChanged. means if property changed, then trigger, so that I can update.
Therefore when you set USStates on windows load, chages will be automatically reflected to items source.
But I will suggest you to spend some time on MVVM (Mvvmlight is very simple and basic package)
M.Kamran Asim
9-May-14 9:40am
View
I think Microsoft provides huge language flavor, each with special/generic purpose. for example f# recent release provide you some awesome solutions for business logic. similarly C# has almost covered 90% functionality of java + those whose are not available in java.(for that you have to import some 3rd party plugins).
One thing that i hate in java is, there frameworks changes very rapidly (open source). so you have spent enough time to learn specific framework. Next day you fill find better options.
Although both are very powerful. Its depends on you. and begin working on one of these
M.Kamran Asim
21-Apr-14 4:28am
View
Nice work. this is perfect solution. 2 thing you must know about this scenario.
1. slider contains double value.
2. Windows background is actually Brush (Solid, Linear, Radial), So you can't bind Brush value to double value directly. For that you need converter. first comment provided by pheonyx is right.
M.Kamran Asim
27-Feb-14 4:53am
View
its better to use firstOrDefault instead of hardcoding index in List.
But still make sure, .ToString() will through error, if firstOrDefault reutun Null.
Also there is no need to use .ToString, as List Items are already string.
M.Kamran Asim
29-Jul-13 5:41am
View
what do mean by MDI. Have you not seen many professional including Microsoft still use MDI. if you detail study why microsoft exclude MDI? Simple answer is that, now a days different pattern MDI are available, and microsoft is unable to set one of these as default. If you look into Microsoft VS 2010 and VS2012, you will find different MDI (although they are same MDI tabControl style).
Just MDI does not mean ugly patten used by previous application.
What do you say, IS tab layout is not example of MDI???? If still not then study WPF pro books
Please do not devot solution, if you have not enough understanding. Here i provided solution just to provide understanding about professional application. Also here we don't discuss MDI.
M.Kamran Asim
22-Jul-13 0:54am
View
Dear Sampath,
Thanks for your valuable information. I think here is not metadata publish issue. Thing which create problem is GenericCollection<t> Class. When I use List or ObservableCollection instead of GenericCollection<t>, metadata publish successfully.
I resolve issue by removing DataContract attribute from GenericCollection<t>.
I dont know why i get problem, when applying DataContract attribute on GenericCollection<t>.
For your information, I want to clear return type
Actual return type of mentioned operation is ResponseObject<genericcollection<userinfo>>
Where ResponseObject is generic and has DataContractAtrribute, with ResultSet is Datamember of Generic type like
[DataContract]
public ResponseObject<t>
{
[DataMember]
public T ResultSet
{get;set;}
}
So has issue due to ResponseObject<> has DataContract also GenericCollection<t> has DataContract. ??
Once again still I have not find any reason, why metadata failed on applying DataContract on GenericCollection<t>
M.Kamran Asim
5-Jun-13 5:33am
View
Thanks dude!
If you see question, I already implement this approach, but still issue, as HttpContext.Current is always null, if you have not enabled AspnetCompatibality.
So thats the point where Service was trying to read second option, and failed.
I have posted solution, please go through,
Thanks for your support.
Show More