15,886,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 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 FoxRoot (Top 200 by date)
FoxRoot
3-Dec-17 9:17am
View
Thank you Life Saver! :)
FoxRoot
3-Dec-17 9:04am
View
Couldn' t handle. Is there any way split with spacess, so I can check the number of whitespacess
FoxRoot
3-Dec-17 8:48am
View
Sorry. Codeproject editor removed my extra spaces :)
public int[] countSpaces(string input)
{
// Do some stuff.
}
The method body is here. I will send a sentence which has 1 or more spacess after each word. Than the method returns an int array that contains how many spaces are there after each word.
Thanks!
FoxRoot
8-Feb-17 4:53am
View
Thank you. I am going to read after some sleep :)
FoxRoot
8-Feb-17 4:53am
View
Thanks for your interest. I am using Razor.
FoxRoot
7-Feb-17 4:29am
View
Thanks. I am using VS2010, MVC 3
FoxRoot
7-Feb-17 4:29am
View
Thanks :) However, I have no access install something on server:/
FoxRoot
17-Apr-16 14:23pm
View
Thank you.
FoxRoot
17-Apr-16 14:23pm
View
My project is already non-commercial project.
FoxRoot
24-Mar-16 5:23am
View
Sure, I will learn. But I have to finish this project.
FoxRoot
17-Oct-15 7:05am
View
blabla.com/Blog/Category/AnythingElse
blabla.com/Image/AnythingElse
And I want to Add
blabla.com/Comment/AddComment
MyProject is the name of project. Nothing more.
FoxRoot
17-Oct-15 7:03am
View
Thanks for your help. I tried that before asking. However this just blot out other url's. There is something wrong.
FoxRoot
17-Sep-15 7:48am
View
How can i use this?
https://api.codeproject.com/Help/Api/GET-V1-Articles_tags_minRating_page
FoxRoot
17-Sep-15 6:30am
View
because I want to remove li tags.
FoxRoot
17-Sep-15 6:30am
View
Thank you.
FoxRoot
17-Sep-15 6:30am
View
Thanks. It works fine. I used second solution.
FoxRoot
17-Sep-15 6:30am
View
Thanks. It works fine.
FoxRoot
16-Sep-15 7:39am
View
Thank you! You helped me so much. Really thank you!
Things I got;
Remote Address:[::1]:8541
Request URL:http://localhost:8541/Blog/Comment
Request Method:POST
Status Code:200 OK
Response Headers
view parsed
HTTP/1.1 200 OK
Server: ASP.NET Development Server/10.0.0.0
Date: Wed, 16 Sep 2015 11:03:01 GMT
X-AspNet-Version: 4.0.30319
X-AspNetMvc-Version: 3.0
Cache-Control: private
Content-Type: text/html; charset=utf-8
Content-Length: 27115
Connection: Close
Request Headers
view source
Accept:application/json, text/javascript, */*; q=0.01
Accept-Encoding:gzip, deflate
Accept-Language:tr-TR,tr;q=0.8,en-US;q=0.6,en;q=0.4
Connection:keep-alive
Content-Length:48
Content-Type:application/json; charset=UTF-8
Host:localhost:8541
Origin:http://localhost:8541
Referer:http://localhost:8541/Blog/2/Csharp-Baslikli-Test/2011-11-11
User-Agent:Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.93 Safari/537.36
X-Requested-With:XMLHttpRequest
Request Payload
view source
{CommentText: "qqqq", AdSoyad: "q", EMail: "q"}
AdSoyad: "q"
CommentText: "qqqq"
EMail: "q"
And my controller code is:
[HttpPost]
public ActionResult Comment(Comment inputModel)
{
if (ModelState.IsValid)
{
//Insert To DB
return Json(new Comment { CommentText = "Smthng???" });
}
else
{
string errorMessage = "<div class=\"validation-summary-errors\">The following errors occurred:<ul>";
foreach (var key in ModelState.Keys)
{
var error = ModelState[key].Errors.FirstOrDefault();
if (error != null)
{
errorMessage += "<li class=\"field-validation-error\">" + error.ErrorMessage + "</li>";
}
}
errorMessage += "</ul>";
return Json(new Comment { CommentText = errorMessage });
}
}
FoxRoot
16-Sep-15 7:04am
View
Deleted
Thank you! You helped me so much. Really thank you!
Things I got;
Remote Address:[::1]:8541
Request URL:http://localhost:8541/Blog/Comment
Request Method:POST
Status Code:200 OK
Response Headers
view parsed
HTTP/1.1 200 OK
Server: ASP.NET Development Server/10.0.0.0
Date: Wed, 16 Sep 2015 11:03:01 GMT
X-AspNet-Version: 4.0.30319
X-AspNetMvc-Version: 3.0
Cache-Control: private
Content-Type: text/html; charset=utf-8
Content-Length: 27115
Connection: Close
Request Headers
view source
Accept:application/json, text/javascript, */*; q=0.01
Accept-Encoding:gzip, deflate
Accept-Language:tr-TR,tr;q=0.8,en-US;q=0.6,en;q=0.4
Connection:keep-alive
Content-Length:48
Content-Type:application/json; charset=UTF-8
Host:localhost:8541
Origin:http://localhost:8541
Referer:http://localhost:8541/Blog/2/Csharp-Baslikli-Test/2011-11-11
User-Agent:Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.93 Safari/537.36
X-Requested-With:XMLHttpRequest
Request Payload
view source
{CommentText: "qqqq", AdSoyad: "q", EMail: "q"}
AdSoyad: "q"
CommentText: "qqqq"
EMail: "q"
And my controller code is:
[HttpPost]
public ActionResult Comment(Comment inputModel)
{
if (ModelState.IsValid)
{
//Insert To DB
return Json(new Comment { CommentText = "Smthng???" });
}
else
{
string errorMessage = "<div class=\"validation-summary-errors\">The following errors occurred:<ul>";
foreach (var key in ModelState.Keys)
{
var error = ModelState[key].Errors.FirstOrDefault();
if (error != null)
{
errorMessage += "<li class=\"field-validation-error\">" + error.ErrorMessage + "</li>";
}
}
errorMessage += "</ul>";
return Json(new Comment { CommentText = errorMessage });
}
}
FoxRoot
16-Sep-15 6:54am
View
alert(data.CommentText); this line of code does not work also.
FoxRoot
16-Sep-15 6:53am
View
Comment page's response is in wrong place.
I am doing add comment stuff in Blog/Read however after clicking comment button it returns Blog/Index which is main page of the site. So I can not see anything about comment. And also there is a breakpoint on comment action and it is not fired.
FoxRoot
16-Sep-15 6:40am
View
There is a Comment page and it's status is Ok: Status Code:200 OK
I am going crazy. What is wrong :(
FoxRoot
16-Sep-15 6:24am
View
Thank you! I typed console.dir(comment); now it is full. However, it does not hit to controller action. What am I missing? I think Ajax part of code does not work :/
FoxRoot
16-Sep-15 6:17am
View
Thank you for your interest. Now it does not do anything even refresh. Does not show anything on chrome console. What am I missing?
FoxRoot
16-Sep-15 6:16am
View
No :/
FoxRoot
16-Sep-15 4:48am
View
<script type="text/javascript">
$("#commentCreate").click(function (e) {
e.preventDefault();
alert("Here");
var comment = getComment();
Console.dir(comment);
if (comment == null) {
alert("Specify a name please!");
return;
}
var json = JSON.stringify(comment);
$.ajax({
url: '/Blog/Comment',
type: 'POST',
dataType: 'json',
data: json,
contentType: 'application/json; charset=utf-8',
success: function (data) {
console.log(data);
$.each(data, function (i, obj) {
$("#resultMessage").html(obj.CommentText);
});
}
});
});
</script>
I removed return part of code. The script does not work I think. Because it does not alert "here"... So weird.
FoxRoot
16-Sep-15 4:47am
View
Thank you for your interest and patience. I am really go crazy.
Removed onclick. Ok. Chrome Console is open. No response, nothing happens.
FoxRoot
16-Sep-15 4:28am
View
I have changed personCreate to commentCreate. Let me update question. Please check the updated. I am really in trouble :/
FoxRoot
16-Sep-15 4:19am
View
Thank you. Stil just refreshs the page.
FoxRoot
16-Sep-15 4:01am
View
Stil refresh the page. Does not hit to controller action.
<form class="form-horizontal" id="getComment">
<script type="text/javascript">
$("#personCreate").click(function () {
var comment = getComment();
function getComment() {
var commentText = $("#CommentText").val();
var nameSurname = $("#NameSurname").val();
var email = $("#EMail").val();
return (namesurname == "") ? null : { CommentText: commentText, NameSurname: namesurname, EMail: email };
}
Console.dir(comment);
if (person == null) {
alert("Specify a name please!");
return;
}
var json = JSON.stringify(comment);
$.ajax({
url: '/Blog/Comment',
type: 'POST',
dataType: 'json',
data: json,
contentType: 'application/json; charset=utf-8',
success: function (data) {
console.log(data);
$.each(data, function (i, obj) {
$("#resultMessage").html(obj.CommentText);
});
}
});
});
</script>
<div class="form-group">
<label class="col-sm-3 control-label">Ad Soyad <span class="text-danger">*</span></label>
<div class="col-sm-9">
<input type="text" name="AdSoyad" id="AdSoyad" class="form-control" >
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">Email <span class="text-danger">*</span></label>
<div class="col-sm-9">
<input type="text" name="EMail" id="EMail" class="form-control" >
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">Yorumunuz</label>
<div class="col-sm-9">
<textarea class="form-control" rows="6" name="CommentText"></textarea>
</div>
</div>
<div class="form-group">
<div class="col-sm-12">
FoxRoot
16-Sep-15 3:52am
View
I resolved Uncaught type error. But it does not hit controller action. Just refresh the page.
FoxRoot
16-Sep-15 3:46am
View
Thank you so much. But I am getting 'Uncaught TypeError: Cannot read property 'validate' of undefined'. As I got before.
FoxRoot
8-Jun-15 6:26am
View
Thank you for your response. But .Net 4.0 is also on prod server.
FoxRoot
27-May-15 17:11pm
View
Thank you for the response Sergey. I am updating the question. Please have a look.
FoxRoot
13-Apr-15 1:06am
View
Thanks for the reply. Now It works :)
FoxRoot
10-Apr-15 6:27am
View
Thanks for the reply. I have 2 question.
I am using HttpContext.Current.Session["kullanici"] = kontrol; this line of code to set session. How about cookies? There is a problem with 'Response'.
And secondly how can i set cookie time?
FoxRoot
10-Apr-15 4:31am
View
How much time does a cookie have to expire? I can't manage session. There is no problem on local server, but I think there is a problem on IIS.
FoxRoot
18-Mar-15 2:23am
View
Thanks Ryan. I have posted below what happened.
FoxRoot
18-Mar-15 2:22am
View
Thanks Sergey.
I applied both solutions (You and Ryan). Didin't solve the issue. That problem occurs only my last project. As I mentioned before, While I was typing so fast I opened CTRL + Alt + E. Maybe I have changed something. I reseted it to defaults. But nothing changed. So, it seems that, the only solution is to copy the codes and paste to new project :)
Thank you both.
FoxRoot
8-Dec-14 3:05am
View
Thank you. But, could you explain more?
FoxRoot
8-Dec-14 3:05am
View
Go home Assoc. Prof. you are drunk :) Thank you for the information. It is totaly crap. I searched during 5 days. After your answers it is ok. I will try to create my own 'vectors'.
FoxRoot
8-Dec-14 3:03am
View
Thank you. So helpful :)
FoxRoot
8-Dec-14 3:03am
View
Thanks Richard. Could you explain more? Actually, we create the instance of an object. Than, we use it. How would I create a class as vector?
FoxRoot
10-Nov-14 9:12am
View
public void Doldur ()
{
for (int i = 1; i <=8; i++) {
for (int j = 1; j <=8; j++) {
aktar[grid[i+1][j+1]]= Character.toString((char) (i+64))+ " " + Character.toString((char) (j+48));
}
}
for (int i = 0; i < aktar.length; i++) {
System.out.println(aktar[i]);
}
}
Now it works. Thanks for the psuedo code :) Have a nice day.
FoxRoot
10-Nov-14 8:48am
View
Most elements of the new array is either null or -1. Some of them are same as old array. Something is still wrong.
FoxRoot
10-Nov-14 8:37am
View
Thank you for the answer but, there are 64 items. 7*7=49. What about others. If a fit every element into 1d array, I will be able to assign the true values(ie. converting ascii is not problem for me.)
FoxRoot
10-Nov-14 8:34am
View
Deleted
< a href="http://www.codeproject.com/Answers/840730/How-to-get-the-old-index-of-an-element-of-an-array">question
FoxRoot
10-Nov-14 8:34am
View
Thank you for the resources. I started reading :)
Sergey, I explained in the question. Comments are a little bit non-sense :)
http://www.codeproject.com/Answers/840730/How-to-get-the-old-index-of-an-element-of-an-array
.
FoxRoot
10-Nov-14 8:21am
View
I am going to search about pull processing. I have to study more and more :) Now, I have a big problem with java and it makes me crazy. Could you check my question please?
FoxRoot
10-Nov-14 8:16am
View
I clicked it while scrolling :)) than I couldn't edit it. I am so stupid nowadays :) sorry.
FoxRoot
10-Nov-14 8:10am
View
public String[] demo= new String[64];
public void FillIt ()
{
for (int i = 0; i < 8; i++) {
for (int j = 0; j < 8; j++) {
demo[grid[i, j]] = "a"; // Same error here.
}
}
}
FoxRoot
10-Nov-14 8:06am
View
Thanks. Your explanation is so clear. But;
public int[] demo= new int[64];
public void FillIt()
{
for (int i = 0; i < 8; i++) {
for (int j = 0; j < 8; j++) {
demo[grid[i, j]] = 1; // Error here
}
}
}
FoxRoot
10-Nov-14 8:03am
View
Clearly, I know what puseudo code is. However;
public final static int[][] demo= new int[8][8];
for (int i = 0; i < 8; i++) {
for (int j = 0; j < 8; j++) {
demo[grid[row, col]] = 0; // What to type here? I filled by zeros stil not working.
}
}
FoxRoot
10-Nov-14 7:43am
View
Could you re-write it in Java please? Because I am newbie
and have some problems.
FoxRoot
10-Nov-14 7:42am
View
I tried this. But it doesn' t work at all. I think I need ArrayList or Generic type. However, couldn't resolve.
FoxRoot
10-Nov-14 7:39am
View
Sergey, thank you for the answers at all (From the past to the present :) )
Because, I just thought that: the event will be periodically. So timer should be a good option :)
FoxRoot
10-Nov-14 6:31am
View
Thank you for the answer. Awesome :)
FoxRoot
29-Sep-14 18:48pm
View
Hi sergey. Again me :)
Could you explain more ?
FoxRoot
29-Sep-14 18:46pm
View
Editions are done via web app and these editions are not shown in desktop app till it is restarted.
FoxRoot
28-Nov-13 2:35am
View
Thanks, that helped so much.
FoxRoot
26-Nov-13 11:13am
View
Thank you so much. I Applied the solution into my solution. One more question; How can I change the X button. I want to use Yes Or no.
FoxRoot
26-Nov-13 10:51am
View
I didint understand. I have no knowledge aobut JS. So the code is so complex for me. I am in trouble
FoxRoot
26-Nov-13 10:27am
View
Thank you for the responce. However, I can't apply this solutions to my MVC application. It works with URL.Action. How can I use this?
FoxRoot
26-Nov-13 10:24am
View
It deletes. No problem. I want to achieve, first ask to user; "Are you sure? Do you want to delete this item?" If user clicks Yes, the item will be deleted. If user clicks NO, the item wont be deleted.
FoxRoot
22-Nov-13 2:39am
View
Thank you hero :) I was searching for this during 2 days. I copied and pasted (this is the first time) the code than I put breakdown and watched everyline to see what happens. Now I will delete the code and try to write by myself :) Thanks again.
FoxRoot
22-Nov-13 2:37am
View
Locating is storing into a specific folder :) Sorry for the bad explanation. Thanks for the response. The answer is on the first solution.
FoxRoot
22-Nov-13 2:36am
View
I got the url. I will read and try to learn more. Thanks for the response.
FoxRoot
22-Nov-13 2:35am
View
Sergey, sorry for my bad explanations. I haven't sleept for 2 days and continued coding a mvc4 project. Coding is my love but I stil have a long way to walk. And I should add this; English is not my mother tonguee :) Thanx for the response. Er Daljeet Singh has already added the solution. You are the help angel. Take care :)
FoxRoot
6-Nov-13 10:42am
View
Did you check the image? http://o1311.hizliresim.com/1h/5/u7ugl.jpg
FoxRoot
5-Nov-13 9:58am
View
http://o1311.hizliresim.com/1h/5/u7ugl.jpg This is the output of requirements.
FoxRoot
5-Nov-13 9:50am
View
I have a table 'Calendar' in DB. It keeps the teacherID, DayID and Content.
For example I am a teacher and my ID is 1 and Today's Id 2 Content is Hello. My Id is again 1 tomorrow's id is 3 and Content is 'MVC Rocks!'
You are also a teacher and your ID is 2 and Today's Id 2 Contet is Hi.
so, calendar table should carry the followings in DB.
1 1 2 'Hello'
2 1 3 'MVC ROCKS'
3 2 2 'Hi'
If Until here is Ok I want to continue, what I wanted to do.
FoxRoot
10-Oct-13 9:00am
View
I gave an eye to the article, that is what I am looking for. I wiil look deeper now. Thanks
FoxRoot
10-Oct-13 8:59am
View
Got it. Thanks for the responce. Have a nice day.
FoxRoot
10-Oct-13 8:52am
View
What will ı store in the new table? The old values?
FoxRoot
10-Oct-13 8:47am
View
How? Could you explain more ?
FoxRoot
4-Oct-13 10:07am
View
I had added your blog to mostvisiteds. I will read the past posts and follow the future ones.
FoxRoot
4-Oct-13 9:50am
View
Got it. This will help too much. Thank you Jameel. Have a nice day.
FoxRoot
4-Oct-13 9:11am
View
What is the advantage of this way? And how could I interact between two projects? When I need a data in my view, how can I get the data?
FoxRoot
4-Oct-13 9:03am
View
What about same project but different folder? Because I haven't worked two projects in same project before.
FoxRoot
4-Oct-13 8:59am
View
It will be a CRM project. Yes it is large and getting larger. I will keep in mind. Thanks. Have a nice day.
FoxRoot
4-Oct-13 6:43am
View
And One more question. Where should I create ViewModelClass? İn views folder or models folder?
FoxRoot
4-Oct-13 6:40am
View
Thanks for the awesome explanation. I was thinking about oop. I was not using properties get set. Again thank you :) I will use this manner anymore.
FoxRoot
3-Oct-13 3:48am
View
public class kisiBLL: BaseMethod< kisi >
FoxRoot
3-Oct-13 3:48am
View
Deleted
public class kisiBLL: BaseMethod<kisi>
FoxRoot
3-Oct-13 2:10am
View
Thanks for your reponse. But why should I do? Before that project, I was using same repository class with no changes. the type of _objectContext was ObjectContext and I was assigning dataentities same as above. I just jumped from MVC3 to MVC4. and I am using VS12 instead of VS10. So should I change it again? and why should I do this?
Thanks.
Emre.
FoxRoot
2-Oct-13 9:01am
View
public Repository()
{
_objectContext = new PaneliumEntities();
}
Error 1 Cannot implicitly convert type 'Panelium.Models.PaneliumEntities' to 'System.Data.Objects.ObjectContext' E:\ZirvePaneliumProjesi\Panelium\Panelium\Models\Repository.cs 30 Panelium
FoxRoot
2-Oct-13 8:56am
View
Sorry. I have forgotten very important stuff. Before I have used two major Model Class named as BaseMethod.cs and Reprisotry.cs. I have included these classes. However, now I am getting another error.
FoxRoot
2-Oct-13 8:48am
View
I had written smilar code in MVC3 application(on VS 2010). When I typed db.Add.. intelisense offers me AddObject with two parameters.
This time I am on MVC4 application (on VS 2012).
May this be the cause of the problem.
FoxRoot
2-Oct-13 8:47am
View
I changed. Erorrs are still going on.
FoxRoot
2-Oct-13 8:44am
View
.Net framework 4.5
MVC 4 Blank Application.
FoxRoot
2-Oct-13 8:43am
View
Posted the updated code.
FoxRoot
2-Oct-13 8:21am
View
Thanks for your responce. However, stil same error.
FoxRoot
2-Oct-13 7:27am
View
Sorry, my fault.
Error 1 'Panelium.Models.PaneliumEntities' does not contain a definition for 'AddObject' and no extension method 'AddObject' accepting a first argument of type 'Panelium.Models.PaneliumEntities' could be found (are you missing a using directive or an assembly reference?) E:\ZirvePaneliumProjesi\Panelium\Panelium\Models\KisiBLL.cs 20 Panelium
Error 2 'Panelium.Models.PaneliumEntities' does not contain a definition for 'DeleteObject' and no extension method 'DeleteObject' accepting a first argument of type 'Panelium.Models.PaneliumEntities' could be found (are you missing a using directive or an assembly reference?) E:\ZirvePaneliumProjesi\Panelium\Panelium\Models\KisiBLL.cs 18 Panelium
FoxRoot
2-Oct-13 5:10am
View
Could you draw your wish on paint :) I didin't understand. A row consists of textboxes? or just one textbox.
FoxRoot
2-Oct-13 4:58am
View
Use cascade iteration. For under for. And insert into the database every time in the related for scope.
FoxRoot
2-Oct-13 4:58am
View
Deleted
Use cascade iteration. For under for. And insert into the database every time in the related for scope.
FoxRoot
2-Oct-13 4:54am
View
You want this?
When you add a student, newly recorded student should be in the gridview. Am I right?
FoxRoot
30-Sep-13 9:36am
View
Thank you for your consideration :) However, company started to use microsoft produts, so I have formatted my pc and the backup is in my external hdd. Tomorrow, I will post the html and if you have e-mail I can post the whole project as a zip.
FoxRoot
30-Sep-13 9:30am
View
I imported bootstrap folder (http://getbootstrap.com/getting-started/ downloaded from here) into my project solution. I referenced necessary css and js files. Now it works.
So I will accept your solution and also my comment will help the users that couldnt solve the problem by your way.
Have a nice day.
Emre.
FoxRoot
30-Sep-13 9:27am
View
I tested my product in chrome, firefox, safari, ie and also opera. Product failed on all of the browsers. Nowadays, I am working on a mvc project.
FoxRoot
30-Sep-13 4:30am
View
Sadly, no.
FoxRoot
28-Sep-13 7:58am
View
Thanks Akinmade, I am not sure, I have referenced it.
FoxRoot
12-Sep-13 3:01am
View
I accepted as solution. thanks again :)
FoxRoot
12-Sep-13 2:28am
View
Thanks Sergey. Again you and again clear explanations :)
FoxRoot
12-Sep-13 2:25am
View
Other answer is totaly helpful. So I am apologizing and deleting this post. I was not aiming to repost. I just aimed to comparision and how can it be done via different questions.
Can I delete this post?
FoxRoot
11-Sep-13 9:13am
View
No. Actually, I hate reposting. This one is different. I am asking for an advice. Which one is better. The other one is about the migration itself.
Thanks for your consideration. Have a nice day.
FoxRoot
11-Sep-13 9:03am
View
4
FoxRoot
11-Sep-13 8:58am
View
this is asp.net to silverlight. Our project is written as silverlight we wwant to move to ASP.NET
FoxRoot
11-Sep-13 8:30am
View
Deleted
this is asp.net to silverlight. Our project is written as silverlight we wwant to move to ASP.NET
FoxRoot
11-Sep-13 8:27am
View
That is logical. Check the content of the cell.
İf cellcontent = 0
{
You will not show
}
else
{
list the cells
}
FoxRoot
11-Sep-13 8:22am
View
I have no access :)
FoxRoot
11-Sep-13 8:21am
View
So you don't want zeros? Namely, if the cell is zero you don't want to see. Am I right?
and the first advice that I took from CodeProject; "don't say "I" think as the user of system".
FoxRoot
11-Sep-13 8:17am
View
blank page ?
FoxRoot
11-Sep-13 8:12am
View
Check the zeros first than publish. Take a look to your DB.
FoxRoot
13-Aug-13 9:15am
View
what about blanks ? for example "this is an example .pdf"
FoxRoot
12-Aug-13 10:41am
View
http://m1308.hizliresim.com/1d/d/rdm5j.jpg that is what I am actually talking about.
FoxRoot
12-Aug-13 10:35am
View
No errors. It's just waiting. I tried to add a autocomplete from database stil same. It is just waiting. I am copying the codes(ie autocomplete or lightbox), work outside the project.
Namely, when I moved the related files into the project folder either acordion menu or lightbox(and for now autocomplete) does not work.
That made me crazy.
Thank you for your consideration.
FoxRoot
2-Aug-13 9:32am
View
Reason for my vote of 5 \n Because it helped me so much.
FoxRoot
2-Aug-13 9:23am
View
I completed the acordion Jitendra. Thank you for all. Could you take a look;
http://k1308.hizliresim.com/1d/2/r1d4s.jpg
now, the next mission is embedding youtube videos under youtube icon(buttons). However, I want to use lightbox. Do you have any suggestions.
FoxRoot
2-Aug-13 6:31am
View
Thank you Jitendra Kumar Sabat. This helped me too much. I am trying to create an accordion object. I will share the results. Have nice days.
FoxRoot
2-Aug-13 6:23am
View
is this same as object oriented. Namely in c# when I used 'this' selector I sign a particular object.
For exampla; this.name = "Turan Emre";
if this is same as c#, thank you so much. You solved all the questions in my mind.
I am still junior. I have a lot of questions and codeproject solves them. Thanks everyone.
FoxRoot
2-Aug-13 4:49am
View
Now it is working.Awesome.
Thanks for all.
FoxRoot
2-Aug-13 3:37am
View
Tried this. This code hides the link itself :) not the panels. Therefore, I cant see the links anymore.
Thanks for the answer.
FoxRoot
2-Aug-13 3:31am
View
Thanks for the answer. I am updating the question. İt is a little bit messy.
FoxRoot
19-Jan-13 9:11am
View
Thanks for all! That was the last day for submission of my graduation project. I feel like spartacus(Infact I am fat :))
FoxRoot
18-Jan-13 20:39pm
View
Sergey, I updated my code as follows. However, stil does not work.
String run= GraduationProject.class.getProtectionDomain().getCodeSource().getLocation().getPath()+"\\site\\site.html";
Runtime.getRuntime().exec("cmd /c start "+run);
FoxRoot
18-Jan-13 20:30pm
View
I am just beginner :) You are so helpful.
I completed my graduation project with your and TorsentH's answer :) Thanks a lot.
FoxRoot
18-Jan-13 20:10pm
View
Thanks for your consideration Sergey. How can I use this? I posted my code, wher should I locate this and how ? I am sorry, I am asking too much.
FoxRoot
18-Jan-13 7:43am
View
Thank you TorstenH. I solved with this link.
FoxRoot
18-Jan-13 2:09am
View
I am sorry TorstenH. Still couldn't find anything.
FoxRoot
18-Jan-13 2:09am
View
I am sorry, I am using the file path as C:Users/Emre/....
But, when we move the project to another pc, it wont work. There was a code in .net we use Application.StartupPath+"\resources.rar" and this works any pc. I am asking is there a code doing sama things for java?
FoxRoot
9-Dec-12 12:07pm
View
I can't use node. So I can't solve the problem. I am trying more than 4 days
FoxRoot
9-Dec-12 7:07am
View
I tried your suggestion. The surface is okey. However now I can't control the buttons. I should use node.
FoxRoot
8-Dec-12 15:22pm
View
I have created the surface . But I want to create as 2 dimensional array. [8][8] not [64] because I can't control when I used [64].
FoxRoot
8-Dec-12 15:07pm
View
Deleted
How :)
FoxRoot
7-Dec-12 14:32pm
View
Actually I have problem to create a 8*8 pictureboxeed panel. For example my software just creates 1 dimensional 1*18 pictureboxed panel.
FoxRoot
7-Dec-12 12:36pm
View
Thank you for your consideration. Buttos are okey however I have problems creating the surface.
FoxRoot
25-Nov-12 10:02am
View
Great! Thank you again :)
FoxRoot
25-Nov-12 8:54am
View
Thanks you so much! It works great. Have a nice day.
FoxRoot
25-Nov-12 8:44am
View
string data = File.ReadAllText(path); in this, I am takin The File does not exist in the current context. Should I import something?
FoxRoot
25-Nov-12 8:44am
View
Should I import something ?
FoxRoot
25-Nov-12 8:43am
View
Deleted
string data = File.ReadAllText(path); in this, I am takin The File does not exist in the current context. Should I import something?
FoxRoot
25-Nov-12 8:33am
View
Firstly; System.IO.File.ReadAllLines this does not exist on my IDE(VS2010) and also I need to read words by words.
FoxRoot
25-Nov-12 8:31am
View
But I want to read words by words. My text content is like that;
Cat Car Apple and so on
it should read words by words.
FoxRoot
22-Nov-12 11:53am
View
Thanks Teacher :) I will go on with JDBC. What does hibernate mean ?
FoxRoot
22-Nov-12 7:08am
View
Thanks :) Torsent I am very far away your skills, talends, experiences. I am just beginner :) Thank you for all.
FoxRoot
14-Nov-12 5:12am
View
I solved :) I am very happy :)
FoxRoot
14-Nov-12 4:56am
View
I have one 1 question but I am confused. Because it will come to easy for you but I am researching more than 1 montyh :(
Could you have a check
http://www.codeproject.com/Questions/480960/HowpluscanplusIplusopenplusaplushtmlplusfilepluswi
I am using netbeans
FoxRoot
14-Nov-12 4:28am
View
Got it. Thank you Nelek. Have a nice day
FoxRoot
13-Nov-12 15:43pm
View
Thanks Sergey. This will be a homework for me. I will develop my solution and post it again :) Have a nice day. I really like CodeProject members.
FoxRoot
13-Nov-12 15:43pm
View
Deleted
Thanks Sergey. This will be a homework for me. I will develop my solution and post it again :) Have a nice day. I really like CodeProject members.
FoxRoot
13-Nov-12 12:12pm
View
Sergey can you check my solution and comment on it?
FoxRoot
12-Nov-12 18:28pm
View
Thanks for your consideration Sergey. But I am trying too much. I can't resolve . So I am asking. You said do it by yourself. However, I can't do it by myself.
FoxRoot
12-Nov-12 10:55am
View
Thank you Nelek. You are a good teacher. I will pay more attention then If I can't solve it again, I will post "what I did."
Have a nice day.
FoxRoot
12-Nov-12 10:47am
View
Thank you Nelek But I couldn't do it. Could you write the code itself. I will get a look and understand clearly.
FoxRoot
24-Oct-12 9:40am
View
ProgramFox I am an computer engineering student. Maybe I am new at programming but please don't tell me what is a link and how does it behave :)
Thank you for your helps. You are helpful person.
FoxRoot
21-Oct-12 11:34am
View
Yes I know the answer but I couldn't understand the link that you posted.
FoxRoot
21-Oct-12 11:21am
View
No. When the user clicked on the button, the html file should be seen on the browser. When I cliked on the html file it is opened on the browser. I want this.
FoxRoot
21-Oct-12 11:11am
View
My website is not dynamic. I just want to open an html file and I am using netbeans.
FoxRoot
21-Oct-12 10:42am
View
Thanks Nitesh but I should use a CheckedListBox.
FoxRoot
10-Oct-12 18:09pm
View
That is the point! Thank you so much Sergey!
FoxRoot
10-Oct-12 16:50pm
View
Actually I just want this. When a checkbox was checked I want to add something to something. and then İf this checkbox is re-checked(namely empty) I want to restore the past data.
I cant handle the logic(the if and else) and I dont know to check the boxes :(
FoxRoot
10-Oct-12 16:24pm
View
That was a good example :)
Sergey actually I am trying different methods. But some of them does not work some of them syntax error. I cant manage the code .Actually I don't know how to use checked list boxes and its properties.
FoxRoot
10-Oct-12 15:57pm
View
Sergey thanks for your consideration. However, I couldnt understand. I am new at this topics.
FoxRoot
10-Oct-12 15:51pm
View
Wes Aday I can see now. That is not important so much. I have much more array elemnts. Think there are 10 is the 4th element of array(0,1,2,3,10,20,30,40,50)
FoxRoot
10-Oct-12 15:48pm
View
"Secondly, price[5] through price[8] are outside the bounds of the array as you have presented here."
Wes Aday x and price are different variables. I couldn't understand your sentence.
ıf this manner is wrong could you give me better structure please?
FoxRoot
7-Oct-12 10:20am
View
I want to direct from classpath
("C:\\Users\\EMRE\\Documents\\NetBeansProjects\\GraduationProject\\src\\graduationproject\\Developers.html");
FoxRoot
7-Oct-12 10:11am
View
TorstenH. I am sory for very very late response. I was at my village :) and no internet connection. I started to my project again and I will re built my database(also ER) again. Absoultely I will have questions :)
Thanks for your considerations. Take care.
Sincerely TuranEmre
FoxRoot
7-Oct-12 10:02am
View
private void btnDevelopersActionPerformed(java.awt.event.ActionEvent evt) {
}
I want to open this file(developers.html)However I cant find a solution method
FoxRoot
15-Aug-12 10:30am
View
Still couldnt solve the error. I am takng the same error message. I started not believing to add an image into database is not possible :)
FoxRoot
15-Aug-12 6:31am
View
Thank you thank you so much :) Now I can open filechoser. When I saw that filechoser panel a stupid smile sit on my face :) But stil can not upload to database. So I will do what you suggest. I will post to forums just the link :)
Thanks Andrei, have nice day.
FoxRoot
15-Aug-12 5:46am
View
Sorry I forgot. Thank you for your consideration.
FoxRoot
15-Aug-12 5:46am
View
Firstly, I cant put a browse button to seach around computer(Filechoser) covers all my panel. and second that is my first database-image event. It comes difficult. I am trying more than 3 days. Actually that is so simple I want to add a name a surname and an image. This must not be so difficult. See this time I am taking another error. "The column position '1' is out of range. The number of columns for this ResultSet is 0". Andrei there is no picture box or filechoser on my form. You can check the link in my question. That really depressed me. I should do that.
FoxRoot
15-Aug-12 5:37am
View
Thank you so much Andrei. But stil have problems I cant handle :(
FoxRoot
15-Aug-12 2:01am
View
Thanks Andrei very informative solution but this is an desktop application. I couldn't understand the examples. Do I need a picturebox, a filechooser? and where should I start ?
FoxRoot
15-Aug-12 1:59am
View
TorstenH thank you for comment but I have problem again. I am reading data line by line and printing the data via messagebox(JOptionPane) again line by line. But I want to put them in a table with spesific column names. For example; Recorded Users(Table Name(Not very important)) User Name, User PassWord, Date Recorded(Column Names).
FoxRoot
13-Aug-12 3:26am
View
Is it simple like that? I have created the java forms. How could I create tables ?
FoxRoot
13-Aug-12 3:24am
View
Thanks but I have problems about table manner. For example in my project I have courses and instrutctors. I will assign more than 1 courses to 1 instructor. sometimes I will need to represent some special tables such as courses which has over 50% success rate and etc.
Namely I have very big problems with this.
FoxRoot
7-Aug-12 8:03am
View
Thanks best ever teacher :)
FoxRoot
7-Aug-12 5:04am
View
Ok TorstenH. I did it. I have one more question :)
FoxRoot
7-Aug-12 4:03am
View
Thanks Rajesh. I solved.
FoxRoot
7-Aug-12 3:40am
View
I am sorry. I mean that I am working with jFrame. Namely I want to get data via textboxes and save them into database. That is all that I want to.
FoxRoot
7-Aug-12 3:25am
View
TorstenH you helped me too much. But you don't understand me. I am asking question after I made research.
So please be more serious. English is not my mother tonque.
FoxRoot
7-Aug-12 3:06am
View
I have already read this article. However, ı am working with interface. This does not help. Thanks.
FoxRoot
7-Aug-12 2:43am
View
Thanks Richard. I am trying JavaDB within netbeans.
FoxRoot
4-Aug-12 16:51pm
View
Againt thanks Chirstian. I am deleting this question. Sorry for this. I will try to ask more specific questions. Take care.
FoxRoot
4-Aug-12 16:48pm
View
Thanks Christian. That really helped. You are right. Now ı will struct an algorithm and start to code it.
FoxRoot
4-Aug-12 16:38pm
View
I am sorry. This must return a string. This is a library software. you book a book for 3 days. After 3 days you should pay penalty fee 5 $ for days however it must not count weekends and national holidays.
FoxRoot
4-Aug-12 16:27pm
View
:) Thanks. Now you can go.
FoxRoot
4-Aug-12 16:19pm
View
Thanks Mewera. I will improve it.
FoxRoot
4-Aug-12 16:18pm
View
WesAday no this is not a homework. I am trying to find a sloution way. I dont want a solution. If you have a recommendation please give it, if not please stop commenting.
FoxRoot
2-Aug-12 9:11am
View
How can I do that. Could you give me steps please ?
FoxRoot
2-Aug-12 8:45am
View
I did not understand sorry Aditya. Plesa help me.
FoxRoot
2-Aug-12 6:56am
View
Aditaya thanks for your helps. But I am taking another error which is:
Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: no ocijdbc9 in java.library.path
FoxRoot
1-Aug-12 10:32am
View
Philip you don't understand neither me nor my question. This is an Form application. Instead of john I have to use txtAddUserName.getText(). Because It may be john Philip or Turan. What the user wants? I tried it manually it works with static names but I need to use it dynamically via textbox.
Thanks.
FoxRoot
1-Aug-12 5:07am
View
sachin10d thanks for your kindly helping. I want to update information by using same textbox. Please check my screanshots When I click the object that I want to update a window is opened with the information. I want to change them.
FoxRoot
1-Aug-12 3:40am
View
Yes I see but how could I send textboxes? insert into e_user values('bla','bla','bla') this is easy I want to solve this
s.execute("INSERT INTO E_USER VALUES(((u_name,u_pass,u_role)('"+txtAddUserName.getText()+"','"+txtAddUserPassWord.getText()+"','"+cmbAddUserRole.getSelectedItem().toString()+"')");
FoxRoot
1-Aug-12 3:13am
View
Thanks Philip as I mentioned I have searched a lot but something is wrong. Here is my button code. (Updated into question)
FoxRoot
31-Jul-12 2:16am
View
TorstenH dialog is OK. It is simple to do. However I can't control wheter the input is numeric or not.
FoxRoot
31-Jul-12 2:10am
View
Thanx gladiatron.
Show More