15,908,444 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 xszaboj (Top 97 by date)
xszaboj
20-Sep-16 7:35am
View
sorry where are those links in modal window?
xszaboj
19-Sep-16 6:42am
View
Can you provide example excel document?
xszaboj
7-Sep-16 11:50am
View
What is the reason not to use XML dataReader? Can you use XDocument?
xszaboj
7-Sep-16 5:18am
View
Could you please format your code correctly? But it looks like you need to return List<int> right? That means something like return new List<int>(){1,2,3,4,5,6};
xszaboj
26-Aug-16 9:25am
View
http://codepen.io/xszaboj/pen/qNZWdj working example of question code
xszaboj
22-Aug-16 5:51am
View
You should be able to do it through css as well.
Here is an example:
http://www.w3schools.com/cssref/tryit.asp?filename=trycss_sel_visited
xszaboj
6-Jul-16 9:44am
View
in that case try to enable custom errors in wcf config file, and you should get more specif error message then just 400 bad request.
xszaboj
6-Jul-16 8:01am
View
I've tried it on iis and works for me fine as well. Check you configuration if you don't block any request on your firewall maybe?
xszaboj
6-Jul-16 6:44am
View
what is the actual error? It might be something else than the size problem
xszaboj
6-Jul-16 6:42am
View
works like this for me. Only thing I changed was OpenRead("https://www.googleapis.com/oauth2/v1/userinfo?access_token=[AccessToken]"); -> OpenRead("https://www.google.co.uk");
xszaboj
22-Jun-16 16:28pm
View
Sorry, no idea about that :(
xszaboj
22-Jun-16 9:20am
View
Maybe try the writeallbytes path. Can you also be sure it is cvs? Or different encoding then unicode
xszaboj
22-Jun-16 8:23am
View
Hi, yes I can help you, just need more info. What file are you trying to deserialize? Did you tried different encoding? Can you show us how you serialize file into byte[]?
xszaboj
21-Jun-16 11:20am
View
Glad to help ;)
xszaboj
20-Jun-16 8:34am
View
check the solution on github, it is working exactly as you need it
xszaboj
20-Jun-16 6:26am
View
for example like this:
$.get( "test.php", { id: 1 } );
documentation here:
https://api.jquery.com/jquery.get/
one more question for you. How do you host your service? Are you using WEB API? or MVC project? or something else?
xszaboj
20-Jun-16 5:29am
View
here is my demo of your code.
https://github.com/xszaboj/convertToJsonDemo
so if you run it, you can see it return valid json, so problem is somewhere else in your code
xszaboj
20-Jun-16 5:17am
View
ok that looks fine, so when you call this function what kind of data will you get?
I dont believe it is the raw data.
you have to wrap the raw data somewhere, don't you?
xszaboj
19-Jun-16 9:39am
View
it associate id with correct person
xszaboj
18-Jun-16 15:23pm
View
Is this what you wanted?
xszaboj
18-Jun-16 15:20pm
View
where do you get the raw data from?
xszaboj
17-Jun-16 9:43am
View
In that case only thing that you need to do is remove "" around. the array. "[{.....}]" to be [{...}] and then it is valid Json.
JSON.parse('{"NewsByIdResult":[{\"NewsID\":4,\"CompanyID\":0 ,\"CompanyIds\":null,\"CompanyId\":160,\"CompanyIdVal\":null,\"Topic\":\"280\",\"Industry\":83,\"CompanyLegalName\":\"TCS BUSINESS INFORMATION\"}]}')
xszaboj
17-Jun-16 9:09am
View
are you sure that the raw data is in this format?
{"NewsByIdResult":"[{\"NewsID\":4,\"CompanyID\"Blush | :O ,\"CompanyIds\":null,\"CompanyId\":160,\"CompanyIdVal\":null,\"Topic\":\"280\",\"Industry\":83,\"CompanyLegalName\":\"TCS BUSINESS INFORMATION\"}]"}
what about that smile there? DO you have any control about this data?
xszaboj
17-Jun-16 8:27am
View
check the pen now.
http://codepen.io/xszaboj/pen/XKKQjE
xszaboj
17-Jun-16 8:00am
View
check it now, if it is what you want
xszaboj
17-Jun-16 7:51am
View
sorry no idea how gmail chat looks like, I've never used it
xszaboj
17-Jun-16 6:49am
View
Yes, I can help, but how do you want it to work? Do you have multiple users on the page or only one?
xszaboj
17-Jun-16 6:10am
View
displayMessages('919985500220',data.messages);
You said in comment above, that you need to show messages by id, but you didn't said what id so I picked customernumber.
if(messageContainer.customernumber == id)
xszaboj
16-Jun-16 8:48am
View
you would have to create some kind of stream of data from client computer and consume that stream in you web app.
xszaboj
15-Jun-16 11:08am
View
Does it have to be a button? Could be
tag? or radio button? or checkbox? with image as background?
I don't think you can do it with button, using just css. If you could you javascript it would be easy.
xszaboj
13-Jun-16 7:33am
View
Hi, you can download simple demo from github that I setup ;).
Check Program.cs and Service1.cs
xszaboj
13-Jun-16 5:54am
View
Hi, ok and on what line? Or better what piece of code?
xszaboj
10-Jun-16 5:57am
View
Hello, I am not sure what are you trying to do, but could you please give an example of xml file you read? and an example of output file?
xszaboj
17-Dec-15 7:37am
View
I'am not sure but, are you trying to parse query string if so.. try this:
http://stackoverflow.com/questions/11956948/easiest-way-to-parse-querystring-formatted-data
xszaboj
16-Dec-15 11:20am
View
are you trying to do this?
https://developers.google.com/maps/documentation/javascript/examples/geocoding-simple
xszaboj
16-Dec-15 6:08am
View
don't you have typo in your namespace? or try this: http://stackoverflow.com/questions/6760489/parser-error-message-could-not-create-type-xxx
xszaboj
16-Dec-15 6:05am
View
could you please post the html? I will create example in codepen.
xszaboj
14-Dec-15 4:44am
View
and session.Status is object? Also you can always just write simple sql update instead of using ORM if you need something special, but i think it should be problem to update just one value. could you provide more info about Session object and table in db?
xszaboj
9-Dec-15 18:48pm
View
look like config file is missing. try read this thread might help: https://social.msdn.microsoft.com/Forums/vstudio/en-US/ddeaca86-a093-4997-82c9-01bc0c630138/propertiessettingsdefaultsave-does-not-save-a-userconfig-file?forum=csharpgeneral
xszaboj
7-Dec-15 10:51am
View
what is value of console.log(data)?
xszaboj
3-Dec-15 8:04am
View
can you give more specific example of your table? and what you want? I might be able to help
xszaboj
3-Dec-15 7:59am
View
Can I ask what do you need it for?
xszaboj
30-Nov-15 10:31am
View
I've added solution with your comment. Could you please provide some references or explanation why this happen? Add it as solution please. Thank you very much ;)
xszaboj
29-Nov-15 9:37am
View
and what is inner exception?
xszaboj
25-Nov-15 8:20am
View
sorry what is the problem? that in CustomerSubscriptionPackage.RegisterModel some values are not populated?
xszaboj
24-Nov-15 9:55am
View
put here code of a rendered HTML page, not asp page please
xszaboj
24-Nov-15 9:48am
View
well if for example code will be "abcd+efg" you need to url-encode it. Because + means space in url wich is something you dont want. But I don't know if that is your case :). Might be something completly different, but it was first thing on my mind to check.
xszaboj
24-Nov-15 8:37am
View
is your url encoded correctly?
xszaboj
23-Nov-15 4:44am
View
and what exactly is your problem?
xszaboj
11-Nov-15 7:47am
View
No problem, glad that it helped
xszaboj
28-Oct-15 12:42pm
View
can u show us your javascript code?
xszaboj
22-Oct-15 16:35pm
View
ok, get your point. But if you make object Shelf with method Update in it. You can easily implement the logic. Even better would be have parent property readonly and set it only through constructor. So you would have Shelf(string LibraryPath) or Shlef(int LibraryId) what ever you are using :) and Book(ShelfPath/ShelfId).That is another thing that will add you some consistency :) just my thoughts how to improve your code. Criticism is welcome
xszaboj
22-Oct-15 16:00pm
View
Why exactly don't you like the first option? have a parent in your node? (shelf in a book and library in shelf?)
xszaboj
22-Oct-15 15:55pm
View
sorry what is the problem again? You want to call //code code... just when i==4? or you want to make ajax call just once?
xszaboj
22-Sep-15 8:45am
View
and where exactly are you calling showPosition?
xszaboj
2-Sep-15 11:05am
View
I really like it, but sorry cannot accept as a solution, because it is not possible to also update data, only insert new one.
xszaboj
28-Aug-15 9:59am
View
updated, but really think of a drawback here :) just saying.
xszaboj
28-Aug-15 9:41am
View
Yes this is going to work for you, but the problem with this approach is that it will block you UI thread so page will not respond until you get response back. That is very important thing to mention!
xszaboj
28-Aug-15 9:31am
View
ok and what is the problem now?
xszaboj
27-Aug-15 10:16am
View
output value of what exactly?
xszaboj
26-Aug-15 4:31am
View
Well you have to populate the table with some data, why don't you serialize the data? Or do you want to send back modified table?
xszaboj
25-Aug-15 12:02pm
View
Are you sure you specified your table structure correctly? primary key etc?
xszaboj
23-Aug-15 8:06am
View
I guess you are using this library right? https://www.datatables.net/
check their documentation ;) that might help. i've never used it before so I am not able to help you sorry.
xszaboj
21-Aug-15 14:47pm
View
well that error basically tells you what is wrong. There is no method called dataTable(), so I guess that you forgot to add some library that will provide you this method or you are calling it wrong.
xszaboj
21-Aug-15 8:34am
View
No problem, happy to help :)
xszaboj
21-Aug-15 7:43am
View
no problem and what exactly is the condition? when I click first-row check all and when I click first-row again uncheck?
xszaboj
18-Aug-15 7:41am
View
don't use:
$query="select * from js_employment_details where email_id='".$_SESSION['username']."'";
it is really not a good idea ;), your code is vulnerable to sql injection attack. use parameters instead
xszaboj
17-Aug-15 10:55am
View
there is no container_bottom in your code....
xszaboj
17-Aug-15 8:42am
View
In that case do you know how to debug javascript code in a browser? Try to debug if your Add function is called. And if so what about that method inside? I cannot see source in your examples? If add function is not call just add on click event on add buton using jquery
xszaboj
17-Aug-15 8:07am
View
Ok, What exactly is not working? Add() function or Sales_save() ?
xszaboj
16-Aug-15 16:03pm
View
I think that you need to refresh your autocomplete on country change.
xszaboj
14-Aug-15 16:50pm
View
have you tried to debug it in a browser? It is usually better than VS.
xszaboj
14-Aug-15 11:23am
View
Yes, that is true. Class is not best solution, but it was first thing that come on my mind and is simple :). I choose different solution in my demo, you can check it ;).
xszaboj
14-Aug-15 11:04am
View
why is result different than appended element? is that a mistake in answer or is that what is really append to div?
xszaboj
12-Aug-15 10:50am
View
can you provide full paths? 1.path you call from and 2. for controller you want to call?
xszaboj
3-Aug-15 11:18am
View
check out updated solution ;)
xszaboj
15-Jul-15 3:56am
View
Yes you are right, sorry I confused it with visible="false". Then the element is not rendered to page.
xszaboj
14-Jul-15 9:53am
View
What exactly is you question?
How to create dynamically xml with your webservice path?
Or
How this xml file should look like?
Or
How to consume this xml by c++ application?
Or
Something else?
xszaboj
14-Jul-15 9:45am
View
In that case have you tried to google your error?
Here is for example one of explanation for it:
http://stackoverflow.com/questions/15717743/mailbox-unavailable-the-server-response-was-5-7-1-unable-to-relay-error
xszaboj
30-Jun-15 8:43am
View
sorry you cannot copy xml into comment so here is the link with metada enabled.
http://stackoverflow.com/questions/2089304/wcf-how-to-enable-metadata
the piece of config:
serviceMetadata httpGetEnabled="true"
xszaboj
30-Jun-15 5:13am
View
Do you have metadata endpoint?
xszaboj
29-Jun-15 4:17am
View
Maybe problem is this:
Access to the path 'EntityFramework.PowerShell.Utility.dll' is denied.
have you tried to run studio as admin? or check if this file is not set as read only?
xszaboj
22-Jun-15 9:46am
View
Yes, exactly.
If you don't want arabic, you would have to rewrite it all to match your needs.
xszaboj
19-Jun-15 11:34am
View
the difference is stopTimer vs StopTimer
xszaboj
19-Jun-15 7:59am
View
Try to give us more detail about error. ;)
What line, what method etc..
xszaboj
17-Jun-15 4:07am
View
what is ajax model popup click?
xszaboj
15-Jun-15 12:27pm
View
and one more suggestion dont you want to do something more like this?
http://codepen.io/xszaboj/pen/dozvbm
I dont know why you wrap every row into a table is there a reason for that?
xszaboj
15-Jun-15 12:19pm
View
yes i think that the problem is this: $(".UserName", row)
because if you try to debug it. It will return empty array, so you never change anything you just replicate the first row/table.
xszaboj
15-Jun-15 4:21am
View
this is not exactly code of from this div: <div id="dvFollowers">
because if I am correct this is the div you are trying to fill with your data right?
xszaboj
15-Jun-15 4:20am
View
Sorry I wasn't online over weekend. Did you tried to check if Followers is filled with correct data?
xszaboj
11-Jun-15 3:59am
View
Is there any particular reason why you don't want to use loop?
xszaboj
10-Jun-15 3:55am
View
yes, but I meant the generated code. The real html that is generated from template.
xszaboj
8-Jun-15 6:34am
View
I use for example. IrfanView. It has ability to resize more images(batch) in one step. And you can define a lot of different options how the image should be resized.
xszaboj
8-Jun-15 6:13am
View
Ok, but i guess that in your db you have just urls to your images? or do you save blobs?
xszaboj
8-Jun-15 5:27am
View
Did you solved it? I think it might be problem in your OnSuccess method. Could you please provide me the html code of your page? I am interested in this div:
<div id="dvFollowers">
with table and correct + wrong rows
xszaboj
5-Jun-15 7:39am
View
I think this is because you are asking different server(different Origin), you have to allow this ;) just google cross origin requests
xszaboj
4-Jun-15 3:52am
View
switch is not working or method: public void DataExport(string SelectQuery, string fileName) is not working then? can you post the code you actually have?
Show More