15,667,370 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 Javascript questions
View Python questions
View C++ questions
View Java 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 Hasan Habib Surzo (Top 18 by date)
Hasan Habib Surzo
8-Sep-16 6:13am
View
public HttpResponseMessage GetWords()
{
var results = db.Words.ToList();
return Request.CreateResponse(HttpStatusCode.OK, results, new XmlMediaTypeFormatter());
}
still problem.
Please check with google chrome.
should i start any service or register anything in WebApiConfig.cs?
also I update following package:
Microsoft.AspNetCore.Mvc.Formatters.Xml
Error :
This XML file does not appear to have any style information associated with it. The document tree is shown below.
<error>
<message>The request is invalid.
if I try
[Route("api/WordsApi/GetWords")]
public IHttpActionResult GetWords()
{
var results = db.Words.ToList();
return Content(HttpStatusCode.OK, results, Configuration.Formatters.XmlFormatter);
}
Error:
This XML file does not appear to have any style information associated with it. The document tree is shown below.
<error>
<message>An error has occurred.
Hasan Habib Surzo
8-Sep-16 2:45am
View
public IHttpActionResult GetWords()
{
//Your code to get the result object
IEnumerable<<word>> word = db.Words.ToList();
return Content(HttpStatusCode.OK, word, Configuration.Formatters.XmlFormatter);
}
still not working for Xml but it works for JSON.
Hasan Habib Surzo
28-May-15 6:24am
View
I try this but not get any result. could you please share some real working example. i try many developers c# and vb.net code using google but none of them work properly.
Hasan Habib Surzo
7-Oct-14 2:17am
View
Reason for my vote of 2 \n Nice try!!!
Hasan Habib Surzo
27-Nov-13 8:17am
View
Deleted
CRYSTAL REPORT 2008 WITH SP0 IS WORKING FINE.
YOU CAN DOWNLOAD A TRIAL VERSION OR YOU CAN DOWNLOAD USING TORRENT.
Hasan Habib Surzo
24-Oct-13 3:39am
View
Can you do one thing, please delete your exe file from bin directory and rerun the software first from vs. then check. also check your crystal report is embedded or not in properties.
Hasan Habib Surzo
24-Oct-13 2:24am
View
Can you please share the code. From your description it is not clear. also you can check custom variable in CR. Need to know about your CR call procedure.
Hasan Habib Surzo
29-Aug-13 4:20am
View
Before submit this ans i test it with crystal report. So If you think this is not going to work, please share your solution.
Hasan Habib Surzo
29-Aug-13 4:09am
View
you are right. this is the solution
Hasan Habib Surzo
29-Aug-13 4:07am
View
sorry. I just read the job again and find where is my mistake. sorry for that.
Hasan Habib Surzo
29-Aug-13 4:01am
View
sorry My mistake
Hasan Habib Surzo
29-Aug-13 2:58am
View
as Session("ItemTable") veriable used here put
dt = Session("ItemTable") after else. I update the code.
Hasan Habib Surzo
29-Aug-13 2:26am
View
Please send me a image with rate so that i can test it.
Here is my email
surzo0001@gmail.com
Hasan Habib Surzo
28-Aug-13 16:27pm
View
is it a mobile app or desktop app?
Hasan Habib Surzo
28-Aug-13 1:40am
View
Reason for my vote of 5 \n Nice
Hasan Habib Surzo
26-Aug-13 10:08am
View
can you share your files?
Also please try date input as '01/Jan/2013' instead of '01/01/2013'
Hasan Habib Surzo
26-Aug-13 9:12am
View
Deleted
it is not a problem where you use it. when you try to send datetime to string it must be in between '' like '26/08/2013' otherwise compiler not recognize it as datetime. also there are typing mistake in your code
wherestring += " AND it.[PromoEvent_To] >= " + DateTime.Parse(txtPromoEventToTo.Text) + ""
in this line you type txtPromoEventToTo.
Hasan Habib Surzo
26-Aug-13 9:06am
View
it is not a problem where you use it. where you try to send datetime to sql string it must be in between '' like '26/08/2013' otherwise SQL not recognize it as datetime. also there are typing mistake in your code
wherestring += " AND it.[PromoEvent_To] >= " + DateTime.Parse(txtPromoEventToTo.Text) + ""
in this line you type txtPromoEventToTo.
Show More