428 Posted Topics

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
243
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

Hey guys, I've very recently joined flickr, and I was thinking to create a special album with the help of the internet community, meaning specifically, collecting pictures from anybody and then shove them in an album on flickr. Does anybody know of any tool, something like I don't know Survey …

0
140
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

Hello guys, totally new to MVC and I've built a small simple application with the help of a book I'm reading. But, needless to say it, I run into some problems. Let me run through what I did and what the problem is (by the way, I'm not so sure …

Member Avatar for Violet_82
0
380
Member Avatar for Violet_82

HI guys, quick (and perhaps stupid) question. Basically I'm getting some values out of a database, converting them into string and store them in dedicated input fields: if (reader.HasRows) { //because there should be only 1 row to read, otherwise use while reader.Read(); rent.Value = Convert.ToString(reader["Rent"]); car.Value = Convert.ToString(reader["Car"]); bills.Value …

Member Avatar for tdrosiadis
0
198
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
264
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

Hi, I run into an interesting thing. I'm looking into SQL a bit, and was reading some tutorial on W3C, so I built a small application to play with SQL queries: inserting info in a table and then retrieve it as it is, filter it etc. The table contains 5 …

Member Avatar for Violet_82
0
169
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'm in a bit of a situation here and I was wondering if anybody has any suggestion. Basically, I need to retrieve some data from 2 or perhaps 1 SQL table (that's what I'd like you to help me finding out). OK, here are my two tables (sure …

Member Avatar for Violet_82
0
305
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
697
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 chaps, I'm not terribly sure how to go about this. I've got a small site where I want to add some files for people - well me since nobody will ever use that website - to download, a sort of repository if you like a bit like github maybe, …

Member Avatar for Violet_82
0
218
Member Avatar for Violet_82

hi all, I've got something odd going on here. Basically I created a database table in visual studio 2012, using localDB and saved it OK. Now, I'm trying to amend something in it and when I right click on the table (Overtime) to "Open table definition", it loads for about …

Member Avatar for Violet_82
0
180
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
600
Member Avatar for Violet_82

Hi guys, I'm building a small asp.net application about montlhy expenses. I was given a bit of guidance in this thread https://www.daniweb.com/web-development/aspnet/threads/488532/building-monthly-expenses-application about how to organise the database. The situation currently is this. I have 2 tables in the same database, table "expenses" and "expenseCodes". The first contains the following …

Member Avatar for Violet_82
0
211
Member Avatar for Violet_82

hi guys, in one of my .NET applications I need to connect to localDB but the code I wrote originally was for sql express and now it's returning an error understandly. Does anybody know what's the equivalent of this for localDB please? protected void submitData(object sender, EventArgs e) { hookUp …

Member Avatar for Violet_82
0
130
Member Avatar for Violet_82

Hello guys, I wonder if you can help me at all. I have received a battery charger pack (6000mAh) for mobile phones, tablets and cameras, here is a screenshot of it ![2bf1d890310c83236eb46f24619d9e6c](/attachments/large/2/2bf1d890310c83236eb46f24619d9e6c.jpg "2bf1d890310c83236eb46f24619d9e6c") It has several connectors and can charge differend brands like apple android etc. OK, so I have …

Member Avatar for Violet_82
0
242
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
289
Member Avatar for Violet_82

Hi guys, I was thinking to work on a new interactive project but I might need some advice before I start. So, essentially, I want an interactive map and I want to give users (they will have to have login details of course) the possibility to add as many markers …

Member Avatar for Masterblank
0
351
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
243
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 SimonIoa

I noticed problems, well at least that's in my case, when I develop in localhost: it had happened to me more than once that chrome was playing up but when I set the site "live" it was fine. Not sure if this can be of any help

Member Avatar for SimonIoa
0
2K
Member Avatar for Violet_82

Hello guys, I have a simple asp.net form and ideally, upon submission, I'd like to forward the form data to an email address. Here is the form: <div class="contactForm"> <h2>Contact me</h2> <div class="form"> <div class="control-group"> <label class="control-label" for="title">Title</label> <div class="controls"> <select id="title" runat="server"> <option>Mr</option> <option>Ms</option> <option>Miss</option> <option>Mrs</option> </select> </div> </div> …

Member Avatar for Violet_82
0
550
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
736
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 GlenRogers

Have you tried adding a min-width and not using the 'screen'? I usually borrow my breaking points from the old bootstrap: /*Tablets*/ @media (min-width:768px) and (max-width:1023px){} /*Mobiles*/@media (max-width:767px){} and they've always worked a treat

Member Avatar for Violet_82
0
237
Member Avatar for davy_yg

Sorry to batter in, can you not use the height applied to the list item instead, rather than messing around with the line-height?

Member Avatar for Violet_82
0
213
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
682
Member Avatar for Violet_82

Hello guys, I have a t-rb22 logitech trackball and at the moment it's not working properly. I have thinkered with it a bit, I think I know what the problem is and I need to replace a small switch inside (pictures attached). ![7deee63990f867790dc8d2589191b6cc](/attachments/large/2/7deee63990f867790dc8d2589191b6cc.png "7deee63990f867790dc8d2589191b6cc") ![cd517819478df412d7a20c4d88486dc7](/attachments/large/2/cd517819478df412d7a20c4d88486dc7.png "cd517819478df412d7a20c4d88486dc7") This switch - well …

Member Avatar for Jason_13
0
413
Member Avatar for Violet_82

Hi all, I was having a look at this tutorial on asp.net master pages http://www.asp.net/web-forms/overview/older-versions-getting-started/master-pages/creating-a-site-wide-layout-using-master-pages-cs but alas I have to apply this the other way around: as you would normally expect, you'd create the master page first and then content pages, but I have content pages and now I have …

Member Avatar for Violet_82
0
170
Member Avatar for Violet_82

Hello guys, since I have now effectively completed my first asp.net application (it's a very basic application where people...ahem, where I can record overtime) I was wondering what the best way is to add some validation. The page which allows you to upload the details needed (date, hours worked and …

Member Avatar for Violet_82
0
238
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
329
Member Avatar for Violet_82

Hi there, I need to buy a new netbook for my sister. She isn't IT so I don't need a super expensive and powerful machine, she will just use it for word processing and browse the internet. Does anybody have any suggestion at all? I myself have a samsung nc10 …

Member Avatar for oriclon
1
132
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, I have a dell xps 17 and I am thinking to purchase an extra Hard Drive - as I have an extra slot available. Ideally I don't want less than 1TB, maybe even more (probably not solid state as they are still too expensive) so I was wondering: …

Member Avatar for Violet_82
0
149
Member Avatar for Violet_82

Hello guys, a while back I posted something about what was needed to build an overtime app that stored data permanently on the server (here is the post https://www.daniweb.com/web-development/php/threads/467433/change-content-of-html-page-with-php) and I was told to use PHP. I have to say I've never got around that, but now I'm looking into …

Member Avatar for Violet_82
1
889
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

Hello all, I am very very new to ASP.NET - just started looking into it a few days ago - and I got a book out to get the basics of APS.NET, Visual studio (which I haven't installed as yet) and C# (the book is ASP.NET 3.5 a beginners guide …

Member Avatar for Violet_82
0
242
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 have come across something weird today. In my HTMl page I have an iframe pulling content from somewhere else. The height and the width of the iframe as set in the CSS. In the head tag of the Iframe there are 2 CSS files, one for desktop …

Member Avatar for almostbob
0
1K
Member Avatar for Violet_82

hi guys, I am doing some tests on e.currentTarget vs $(this) to get things clear in my head. It is said that the two are equivalent, so I created a test page with the following code in (among the other things of course): <div class="testLink"> <a href="#">Link</a> </div> The script …

Member Avatar for Violet_82
0
170
Member Avatar for Violet_82

hi all, I wanted to build a small and easy interface where I have some text and two buttons, one to increase the size of the text and one to decrease it. I haven't built anything as yet, I am still thinking what's the best way to go. In terms …

Member Avatar for Violet_82
0
428
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
Member Avatar for Violet_82

hi guys, I posted something similar a long time ago, but I had the same issue againt today. I wanted to upload some files onto the forum (a small java program ) but I couldn't do it. Now, I know that .java files are not allowed to I saved them …

Member Avatar for JasonHippy
0
208

The End.