163 Solved Topics

Remove Filter
Member Avatar for Violet_82

So my new Asus UX305 has just arrived. I charged the battery till full and I'm now using the laptop. I'm planning to switch it off very soon, and then it occurred to me, do I have to break in the battery, or can I just use it as normal …

Member Avatar for mariah1902
0
1K
Member Avatar for Violet_82

Hi guys, I'm a little stuck with something here. Basically I have a a method which, given a List of Students will have to filter out those who are younger than 60yrs old and should return a List of Students who are over 60yrs old but I want this to …

Member Avatar for Violet_82
0
1K
Member Avatar for Violet_82

Hi guys, I am having an issue finding duplicates in an arrayList. Here is some code studentRecords.add(new Student("Jo", "Pip", "JP000", LocalDate.of(1999,9,23), Sex.FEMALE)); studentRecords.add(new Student("Tara", "Bot", "TB345", LocalDate.of(1991,9,1), Sex.FEMALE)); studentRecords.add(new Student("Mara", "Lewart", "ML456", LocalDate.of(1988,5,23), Sex.FEMALE)); studentRecords.add(new Student("Anna", "Clarke", "AC010", LocalDate.of(1999,1,1), Sex.FEMALE)); studentRecords.add(new Student("Frank", "Boia", "FB300", LocalDate.of(2001,8,13), Sex.MALE)); studentRecords.add(new Student("Anna", "Clarke", "AC010", …

Member Avatar for Violet_82
1
2K
Member Avatar for Violet_82

Hi guys, I seem to have an issue with a boolean method returining a value. Here is the code excerpt - irrelevant code omitted: public class StreamsTest { public static void main(String[] args) { String[] arr = new String[]{"a", "b", "c"}; //convert array to string with streams List<String> list = …

Member Avatar for masijade
0
3K
Member Avatar for Violet_82

Hi guys, I'm playing around ith optionals a little, but I'm not surewhether this is the correct behavious as I'm getting a null pointer exeption (I thought the point of Optionals was not to get a null pointer.) SO I'm setting an object to null and before calling toString on …

Member Avatar for Violet_82
0
390
Member Avatar for Violet_82

Hi, I'm thinking to upgrade from java sdk 7 to 8 (JamesCherrill will be pleased,lol!) and I was just wondering if there is anything I need to be careful with, especially in eclipse. I will start first with Windows, and then do the same thing in Ubuntu. My eclipse seems …

Member Avatar for JamesCherrill
0
300
Member Avatar for Violet_82

Chaps, I wonder if you can give me a hand with this. Here's the brief: "Create a program that draws 10 random filled shapes in random colors, position and sizes. Method paintcomponent should contain a loop that iterates 10 times. In each iteration, the loop should determine whether to draw …

Member Avatar for Verse_1
3
5K
Member Avatar for Violet_82

HI guys, I run into a problem. I have a input of type file and I'd like to grab the file name of the uploaded file and assign it to a variable, but I don't seem to be able to do that. I'm hiding hte input with opacity 0 and …

Member Avatar for Violet_82
0
321
Member Avatar for Violet_82

Hi guys, I wonder if you can help me at all. As some of you will know I do a bit of java development here and there but unfortunately I don't really have any programming background, like, I haven't studied computer science - I just learned (well, that's an overstatement) …

Member Avatar for Violet_82
0
277
Member Avatar for Violet_82

Hi all, I need to add a contact form to a site I'm working on. I'm just thinking whether it would be better to go with an online solution (grab a form from somewhere and use it on my site) or building my own thing (complete with captcha etc). I'm …

Member Avatar for Violet_82
0
426
Member Avatar for Violet_82

Hi guys, Today I had a look at files and therefore I’d like to create a GUI application that allows me to type a sentence or a word and store it to a text file. The reason for this is that, when I come across an interesting word or sentence …

Member Avatar for Violet_82
0
712
Member Avatar for Violet_82

Hi guys, I'm having some problem with cloning a div with a button in and its functionality. 2 words about the functionality first. Basically I'm creating some HTML with javascript (it has to be done that way I'm afraid) and append it at the top of the page. I also …

Member Avatar for Violet_82
0
167
Member Avatar for Violet_82

Hi guys, I have a dell xps 17 and the connector is broken. I've found what I need on ebay http://www.ebay.co.uk/itm/DELL-XPS-17-L701X-L702X-POWER-SOCKET-JACK-CABLE-RMD72-R7DCGM7PB000-PJC237-/271230139718?clk_rvr_id=932028979691&rmvSB=true but I was wondering if anybody knows whether an official dell retailer exists. I had a look at their site but I couldn't find the part, I also live …

Member Avatar for Violet_82
0
311
Member Avatar for Violet_82

HI guys, as mentioned in my revious post, I'll redo my wordCount application using the GridBagLayout approach. The functionality of the application hasn't changed at all: I've only removed the various Jpanels and, for simplicity, used only the JFrame and attached all the comonents to the JFrame. I've had a …

Member Avatar for Violet_82
0
1K
Member Avatar for Violet_82

HI guys, I'm trying to build a small GUI application where users can input text (in a JTextArea) and by pressing a button, you get a summary of how many times each word in the text has occurred. So here come the questions. First, the GUI itself. The way I …

Member Avatar for Violet_82
0
603
Member Avatar for Violet_82

HI guys, I'm a bit puzzled about the forum area tags that appear on our profiles, screenshot here ![daniweb.png](/attachments/large/2/55e38e6044eceec12176aad0771154e2.png "align-center") This is supposed to show you the areas of the forum where you've been posting more, but it's either inaccurate or there is something wrong with the taggin system (the …

Member Avatar for Dani
2
495
Member Avatar for Violet_82

Hi guys, I'm now looking at what seems to be a nice exercise on my java book. Basically, the exercise asks me to build a virtual keyboard GUI - see screenshot - and when you press each key on your real keyboard the key you've pressed will change its background …

Member Avatar for Violet_82
0
5K
Member Avatar for Violet_82

HI guys, I've just run into an issue. Basically I'm working t a wordpress site, and there are some conflicts with the usage of the "$" sign so I used this in the document ready to allow me to use "$" in place of jQuery: jQuery(document).ready(function($){ ... }); It works …

Member Avatar for Violet_82
0
251
Member Avatar for Violet_82

HI guys, as I'm gettng into Java GUI again after a long time, I'm trying hard to remember things, but not everything is that clear anymore. I'm in the process of building a very simple GUI application with a few buttons. First question is about the JFrame and JPanel. From …

Member Avatar for Violet_82
0
304
Member Avatar for Violet_82

Hello guys, long time no see! i've put together a very small simple console base application that takes a date and a few strings and print them off. Let's look at the code first. Date.java /*Date.java this class represents dates */ public class Date{ private int month; private int day; …

Member Avatar for jwenting
0
3K
Member Avatar for Violet_82

Hello all, I decided to open a new thread which I could use to ask questions about how to customize this new MVC application I created https://www.daniweb.com/web-development/aspnet/threads/497464/much-simpler-first-mvc-application, add HTML and change the default look and feel. If the mods are OK with that, I was thinking to use this thread …

Member Avatar for Violet_82
0
277
Member Avatar for Violet_82

Hi, since I've spectacularly failed to build a simple MVC application (for now at least ) https://www.daniweb.com/web-development/aspnet/threads/496278/building-first-mvc-application, I've decided to do even a simpler one, modelled on this one http://www.codeproject.com/Articles/683942/An-Absolute-Beginners-Tutorial-for-understanding-E , which is supposed to create a few books and their associated reviews I don't think it gets simpler than …

Member Avatar for Violet_82
0
329
Member Avatar for Violet_82

Hi all, I've just noticed that on one of my threads when I click on an attached image to enlarge it I get a 404 not found error. This is the thread in question: https://www.daniweb.com/web-development/aspnet/threads/496304/understanding-entity-framework-databases-and-models Can you replicate the error? Does anybody know why? thanks

Member Avatar for Violet_82
0
372
Member Avatar for Violet_82

HI all, I have a question about how Entity Framework deals with databases and models, especially when it comes down to change your model after the database has been created. Let's look at a very simple example. I have an EmployerDetails class as below: using System; using System.Collections.Generic; using System.Linq; …

Member Avatar for djjeavons
0
434
Member Avatar for Violet_82

Hi all, I've run into a strange issue. Basically, I created my new application called input-outputTest, created my model class using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace input_outputTest.Models { public class EmployerDetails { private string Name { get; set; } private string Surname{ get; set; } private int …

Member Avatar for Violet_82
0
726
Member Avatar for Violet_82

Hi guys, I'm trying to get my head around this strongly typed view concept but I keep getting an error hen I view the page. Basically, my application is called modelsTest and I have a CompanyInfo.cs class: using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace modelsTests.Models { public class …

Member Avatar for Violet_82
0
1K
Member Avatar for Violet_82

Hi all, I'm just redoing a very simple MVC app found on a book and I have created my model using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace MvcGuestbookRevised.Models { public class GuestbookEntry { public int Id { get; set; } public string Name { get; set; } public …

Member Avatar for Violet_82
0
244
Member Avatar for Violet_82

Hi guys, does anybody know how to download a MVC project from GitHub and get it to work in Visual Studio? I'm following a MVC tutorial and these are the various modules of the projects https://github.com/jongalloway/MVA-Introduction-to-ASPNET-MVC and I'd like to get them out of there, on my computer and use …

Member Avatar for DaveAmour
0
300
Member Avatar for Violet_82

Hi guys, I'm looking into MVC and I'm reasing this tutorial http://www.asp.net/mvc/overview/older-versions/hands-on-labs/aspnet-mvc-4-fundamentals I've got to the point of adding a model and the class they add is this: public class StoreIndexViewModel { public int NumberOfGenres { get; set; } public List<string> Genres { get; set; } } I'm not really …

Member Avatar for DaveAmour
0
190
Member Avatar for Violet_82

I just wanted to share this with the community, in case anybody finds it useful. I'm learning ASP.NET and started with Web Forms and now I'm moving slowly to MVC. As I have just started with MVC - which is significantly different from Web Form - I've been looking for …

Member Avatar for pritaeas
1
265
Member Avatar for Violet_82

I just came across something strange, and I posted it here because although it is C# it is still part of learning ASP.NET. Usually when you use setters and getters, you have proper methods to set and access private variables (I'm referring to C++ and JAVA mainly) but here in …

Member Avatar for Violet_82
0
145
Member Avatar for Violet_82

I must admit I feel a little embarrassed to post this, but I don't seem to get this simple flipping application to work and I'm getting this error: Login failed for user ''. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack …

Member Avatar for Violet_82
0
3K
Member Avatar for Violet_82

HI guys, I need to format andn reinstall windows 7 on my dell xps 17. Two things though: I don't have any windows installation disk - I suppose there will be a windows 7 iso stored by the manufacter somewhere - and it's dual boot as I have linux installed …

Member Avatar for Violet_82
0
698
Member Avatar for Violet_82

Hello, I'm building an expenses application in asp.net and I'm attempting to insert some data in a SQL database in visul studio but I get the following error (screenshot here http://s13.postimg.org/4kjmn4nev/SQL_error.jpg): The INSERT statement conflicted with the FOREIGN KEY constraint "FK_expenses_ToexpenseCode". The conflict occurred in database "Applications", table "dbo.expenseCode", column …

Member Avatar for djjeavons
0
3K
Member Avatar for Violet_82

Hi guys, I hope this is the right section to post. I need to develop an application in visual studio 2012 that uses SQL (please bear with me as I'm not very well versed in databases and SQL and therefore I don't know what SQL visual studio uses), and when …

Member Avatar for Violet_82
0
601
Member Avatar for Violet_82

HI guys, I'm having a problem with hiding and showing a panel that contains a text box. Basically the panel is hidden and whenever a radio box is selected the panel should show but it won't work. Here is the code: <div class="expensesForm"> <div class="control-group"> <label class="control-label" for="rent">Rent</label> <div class="controls"> …

Member Avatar for Violet_82
0
2K
Member Avatar for Violet_82

Hi all, I just came across something odd. I'm just building a simple form, like this in visual studio <div class="control-group"> <label class="control-label" for="rent">Rent</label> <div class="controls"> <asp:RadioButton ID="rent" runat="server" GroupName="expenses" /> </div> </div> and when I viewed it, I expected to be able to click on the label and get …

Member Avatar for Violet_82
0
4K
Member Avatar for Violet_82

Hi guys, does anybody have any experience with Azure at all? I finally deployed a test site I built http://web-dev.azurewebsites.net/About.aspx and unfortunately there seems to be a problem when you submit the form (obviously I tested the form many times before deploying the site and it was definitely working in …

Member Avatar for Violet_82
0
290
Member Avatar for Violet_82

Hi all, just to practice a bit more with asp.net and c#, I was thinking to build a small application to keep an eye at my monthly and yearly expenses (rent, car, bills, food shopping). I have a few ideas but I thought I'd check with you guys what's the …

Member Avatar for Violet_82
0
244
Member Avatar for Violet_82

Hello guys, I wonder if you could kindly explain this to me. Basically, I've got a form and a thank you message above it, here they are: <asp:Content ID="Content5" ContentPlaceHolderID="contentPlaceholder" Runat="Server"> <div class="thankYouMsg" id="thankYouMsg" runat="server"> <h2>Thank you for your feedback.</h2> </div> <div class="contactForm" id="contactForm" runat="server"> <h2>Contact me</h2> <div class="form" runat="server"> …

Member Avatar for Violet_82
0
218
Member Avatar for Violet_82

Hello guys, I'd like to clarify a few things with IDs and classes. As I've learned so far, ASP.NET adds its own id and overwrite the previous one, if there was any. Let's just take a recent example, the panel I added in my previous thread: <asp:Panel ID="ThankYouPanel" runat="server"> <div …

Member Avatar for Violet_82
0
235
Member Avatar for Violet_82

Hi all, I have visual studio 2008 and as I recently started to use it, I still develop the HTML from scratch and then move it to ASP.NET. Anyway, when I did my last site and uploaded the CSS in visual, I got quite a lot of CSS 3 error …

Member Avatar for Violet_82
0
737
Member Avatar for Violet_82

Hello guys, I wonder if you can help. I've got an existing site that I want to "convert" to an ASP.NET one and I gave a good read at the master template tutorial suggested in another thread, but I'm having a few problems deciding what goes in the master page …

Member Avatar for Violet_82
0
401
Member Avatar for Violet_82

Hi all, I was just wondering, how do I go about making an asp.net application accessible on the internet? The application is also linked to a SQL database (created in visual studio). I have got server space available but I'm not sure where the sql database needs to be copied …

Member Avatar for JorgeM
0
683
Member Avatar for Violet_82

Hi guys, as I'm fairly new to visual studio and asp.net, I might be missing something really obvious here...basically I have created a CSS file which is referenced in the aspx file (I dragged the css file from the project to my aspx file). Then I created another aspx file …

Member Avatar for BMXDad
0
330
Member Avatar for Violet_82

Hello all, I'm trying to change the innerHtml of a div in the code behind and noticed an interesting thing. If I have this situation: aspx file: <div id="displayPanel" runat="server"> </div> C# while(reader.Read()){ ... displayPanel.InnerHtml += "<span>"+ name + " has donated £ " + donation + "</span>"; } everything …

Member Avatar for mtyide
0
3K
Member Avatar for Violet_82

Hello guys, I wonder if anybody could clarify this for me. I've created a new website (File > New > Web site) and as we all know I now have a aspx file (Default.aspx) and a aspx.cs file (Default.aspx.cs). The aspx file contains a form and when submitted, it sends …

Member Avatar for Violet_82
0
2K
Member Avatar for Violet_82

Hi guys, quick question. When I work with asp.net controllers (so say a TextBox or a Label) if I want to get what's inside them I will use the Text property: for asp.net listboxes instead I use the Value property. If I instead, say, I ditch completely the asp.net controllers …

Member Avatar for Violet_82
0
176
Member Avatar for Violet_82

HI chaps, I was wondering if it is possible to add a meta tag using jquery to an html page before the page loads. The reason why I ask, is because I have a page with no viewport meta tag on and it should have it only when the resolution …

Member Avatar for Ajith_1
0
5K
Member Avatar for Violet_82

Hi all, I started to look into event handlers, and there is something I would like to ask, sorry if this is a silly one. I can see that different Java components generate different events when the user interacts with them, but when it comes down to 1)which interface the …

Member Avatar for Violet_82
0
310

The End.