15,887,267 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 AlwzLearning (Top 23 by date)
AlwzLearning
24-May-18 14:38pm
View
Thank you for reply and sorry to bug you .
Well i have been a .net developer and angular is new to me.
So I am trying to understand , Microsoft provides system.io namespace which provides support with files and directories and i use streamreader/writer to read the contents of a file located at particular location.. Do I not have anything similar in Angular ?
AlwzLearning
24-May-18 12:53pm
View
The issue I am running into is, Ansible is creating a log file and I have to show that log file into web application say like in some text area.
any guidance would help
AlwzLearning
24-May-18 1:34am
View
Well I tried this:
this.file = new File(["Hello World"],"D:\Hello.txt",{type: "text/plain"})
console.log(this.file);
this.fileReader = new FileReader();
this.fileReader.onload = () => {
console.log(this.fileReader.result);
};
this.fileReader.readAsText(this.file);
console.log(this.fileReader);
However i am still looking to take filename. I am not sure how to provide filename.
AlwzLearning
1-Sep-17 18:24pm
View
Yep. I raised a support ticket with them. Thank you
AlwzLearning
28-Aug-17 17:35pm
View
sorry for confusion. I meant I was looking for Kendo matrix where I can bind only cell values like below:
Year 2015 Year 2016 Year 2016 MarketTypeCount 2 2 3 RebateCount bind bind bind ClaimCount
AlwzLearning
13-Aug-17 13:45pm
View
Never mind. I was binding it wrongly. I was able to bind it successfully.
Thank you
AlwzLearning
13-Aug-17 13:25pm
View
Hi Graeme_Grant, I again need your help. The class "Response" to which the json was mapped , I am trying to bind that class to view in MVC but it is not setting the values.
Am I not supposed to use the same class as model in view ? How should I map those results to the view.
Thank You :)
AlwzLearning
13-Aug-17 3:42am
View
Thank You
AlwzLearning
12-Aug-17 22:24pm
View
Deleted
Thank You so much for beautiful answer,you made my day :) it saved my time and your clear steps helped me in quick understanding too .
I was wondering what could be the JSON settings and how are they useful , any example would be great.
Thank You so much again.
AlwzLearning
12-Aug-17 22:21pm
View
Thank you so much for the beautiful answer. I knew I was not creating class structure correctly. Your JSONConverted class is awesome. Thank You again.
While I was trying to understand , I had few questions like :
1. what would be JSON settings ? can you give some example like what settings can be set and how they are useful
2. While using tool , is there a chance we can miss some property if it is null.
3. I am trying to set up a Project using MVC and want your advise for same : The project I am working on is all about consuming apis' and I would like to know what is the best practice for where to keep apis .. shall I keep it as a different project and refer that project in mvc or I can keep in same project as mvc
AlwzLearning
19-Jun-17 18:36pm
View
use PIVOT .. it transposes columns and rows.
AlwzLearning
19-Jun-17 18:31pm
View
I would recommend using joins rather than In and Subquery .
Reason: it will execute subquery first and will then scans through each record to check if the record u are looking for exists and pulls the results accordingly.
On other hand , when you use join with where condition , it will picks only where condition records and will fetch results from join accordingly.
AlwzLearning
2-Jun-17 17:45pm
View
I would suggest , check your mappings with source columns and destination columns are correct .
right click -> Edit -> Mappings and check if available columns and destination column are mapped correctly.
AlwzLearning
22-May-17 15:11pm
View
can you improvise your question ?
AlwzLearning
16-May-17 16:16pm
View
There are many ways you can do that.
Do you have any dropdown or textbox requesting order ID ?
Steps would be
1) eg. you can store the order Id they selected in hidden field
2) then read that value in your controller .. I see your LINQ query is not filtering it so you can add where clause here
public ActionResult GetOrders()
{
using (dbNorthwindEntities db = new dbNorthwindEntities())
{
//var orders = db.Orders.OrderBy(o => o.OrderID).ToList();
var orders = db.Orders.Include(o => o.Customer).Include(o => o.Employee).Include(o => o.Shipper).OrderBy(o => o.OrderID).ToList();
return Json(new { data = orders }, JsonRequestBehavior.AllowGet);
}
}
It is simple try to do your research on filtering using parameters.
AlwzLearning
16-May-17 16:03pm
View
if you want to see the product details of selected order.. send that selected order as your parameter to your datasource. are you doing it ?
AlwzLearning
1-Dec-16 17:45pm
View
ya sorry I realized it later, while looking at debugger settings.
Thank You !
AlwzLearning
1-Dec-16 17:12pm
View
Thank You for quick response .
Now i got it . But just curious why it shows in hexadecimal format and not in integer directly like it does for List or any other collections.
AlwzLearning
27-Jun-16 19:38pm
View
Can we do Pivot with LINQ to SQL ?
AlwzLearning
23-May-16 20:16pm
View
Work Thank you. I marked solution as accepted.
AlwzLearning
23-May-16 1:28am
View
OK i tried this but it binds the dropdown back to original months. so what I am doing is if(!ispostback)
binddropdown
if (session has value)
setting dropdown .
Is this correct ? I will try again and will update you accordingly . Thank you for help
AlwzLearning
23-May-16 1:07am
View
ok got it. Thankyou .
AlwzLearning
23-May-16 1:05am
View
Hi. It is smallInt in DB and we are storing it as 1,2,3..but while displaying have to show it as jan, feb , march.
Show More