-
Replied To a Post in CodeFirst Entity Framework - Where's the database?
Just thought - are you talking bout manually creating an empty database and then using code first? In that case yes then code first is not actually creating the database … -
Replied To a Post in CodeFirst Entity Framework - Where's the database?
Sorry I'm confused. If a code first approach doesn't generate your database from your models then where does the database come from? -
Replied To a Post in CodeFirst Entity Framework - Where's the database?
deceptikon - he says hes doing codefirst so the code will generate the database - where it does that depends on the connection string. -
Began Watching CodeFirst Entity Framework - Where's the database?
I built a database structure with codefirst EF from a tutorial but I can't find the database. I've looked in (localdb) and it's not in my local install of SQLServer. … -
Replied To a Post in CodeFirst Entity Framework - Where's the database?
Do you have a connection string? -
Began Watching MVC Login Again.
[Autorize] I want to set the page if the user is not currently login in MVC. How can I do it? I want to set it in "User/Login" -
Replied To a Post in MVC Login Again.
You can set this in your web.config eg: <system.web> <customErrors mode="Off" ></customErrors> <compilation debug="true" targetFramework="4.5" ></compilation> <httpRuntime targetFramework="4.5" ></httpRuntime> <authentication mode="Forms"> <forms loginUrl="~/Account/Login" timeout="2880" ></forms> </authentication> <pages> <namespaces> <add namespace="System.Web.Helpers" … -
Began Watching Sql injection securtiy
Someone can help me to find my error: $query=mysqli_query($con," SELECT * FROM item WHERE ITEM = $ITEM ") or die ( mysqli_error($con)); i reciveing this error,i dont know wherer is … -
Replied To a Post in Sql injection securtiy
Should $ITEM be inside the speech marks? -
Replied To a Post in Simple Onclick Won't Work In Firefox?
You're welcome. -
Created Selective Includes with Entity Framework
# Performing Selective Includes in Entity Framework with the Fluent API # When we are using Entity Framework as our data access choice to work with SQL Server then there … -
Began Watching Selective Includes with Entity Framework
# Performing Selective Includes in Entity Framework with the Fluent API # When we are using Entity Framework as our data access choice to work with SQL Server then there … -
Began Watching New to DaniWeb
I am an IT specialist and programmer. I am new to DaniWeb and look forward to using this as a source of information for myself, and to provide information as … -
Replied To a Post in New to DaniWeb
Hi Michael -
Replied To a Post in Cashing Out
Ok thanks, I shall check tomorrow. Meanwhile do excuse my sarcasm, it increases proportionatley with age, I do like your site very much though! -
Replied To a Post in Simple Onclick Won't Work In Firefox?
Also it also seems FF doesn't like "scroll" - try renaming your function to something else. -
Replied To a Post in Simple Onclick Won't Work In Firefox?
Actually it might be that you closed your a tag twice. Remove the / at the end of the first part of the a tag. -
Began Watching Simple Onclick Won't Work In Firefox?
This simple onlick event works in IE and Chrome but not in FireFox (latest version). Is there some syntax issue? <html> <head> <script> function scroll() { alert(1); } </script> </head> … -
Replied To a Post in Simple Onclick Won't Work In Firefox?
Works for me: https://jsfiddle.net/xyt0527j/ FF Version 33.1.1 -
Replied To a Post in Cashing Out
Ok thanks Dani, awaiting email with excitement! -
Created Cashing Out
I finally saw a paypal button on my $Rewards. Perhaps rather optimistically I clicked on it. The page then changed to show the following: "Last Cash Out: Pending for $5.58" … -
Began Watching Cashing Out
I finally saw a paypal button on my $Rewards. Perhaps rather optimistically I clicked on it. The page then changed to show the following: "Last Cash Out: Pending for $5.58" … -
Replied To a Post in Prototypal Inheritance
I keep all my stuff in source control that way its always backed up in the cloud - a good habit to get into. -
Began Watching Need Form validation help
I've went over this code a number of times but I can't see where the issue lies. I'm trying to make the age text field numeric only however it won't … -
Replied To a Post in Need Form validation help
Have you actually used your IsNumeric function? -
Began Watching How to get am or pm from the date.
I am getting all instead of am or pm any body help to get am or pm function display_ct() { var strcount var x = new Date() var x1=x.getMonth() + … -
Replied To a Post in How to get am or pm from the date.
Here's my go: <script> function CustomDate() { this.date = new Date(); this.dayPart = this.date.getHours() < 12 ? "AM" : "PM"; this.toString = function() { return this.date.getMonth() + "/" + this.date.getDate() … -
Began Watching How to make menu tabs appear on top of different sections
I have section blocks on my site, with menu tabs on top of the first section. I want to make the tabs scroll with the user so that it appears … -
Replied To a Post in How to make menu tabs appear on top of different sections
Not sure if this is what you mean or not but try setting the following on topwrapper div: position: fixed; top: 1px; background-color: #414141 Does that help? -
Began Watching Help with credit card method, OOP
I am new to OOP, i am not sure if this is the correct approach or not. Need some insight. Assignment 3 Write a class named CreditCard that has (at … -
Replied To a Post in Help with credit card method, OOP
Hi I'm not a Java Programmer so can't comment on the specifics of your code. However, you should not have any UI code in such a class as it is … -
Began Watching How to edit or modify only the specific data from database?
Here's my product table. [id, name, price, description, unit] For example. I want to edit only the name and description. How can I do it in mvc? -
Replied To a Post in How to edit or modify only the specific data from database?
Can you be a little more specific. For example have you already a) Created a MVC project? b) Created a Controller? c) Created a Controller Action? d) Created a View … -
Began Watching How to insert data from mvc to mssql manually?
I want to insert from product (id, name, price). How can I insert it using mvc[c#], mssql manually. -
Replied To a Post in How to insert data from mvc to mssql manually?
What do you mean by manually? -
Replied To a Post in Prototypal Inheritance
Finally had a good chance to look at your earlier post which ypo commented as: "Troy, I may be wrong, but I think Dave was only trying to wrap all … -
Replied To a Post in Prototypal Inheritance
Thanks AleMonteiro, that's very useful. -
Replied To a Post in Palindrome checker need help
Youre welcome, any exucse to play around with Linq! -
Replied To a Post in Prototypal Inheritance
Just realised that if I add some properties then I am getting the state of my object output. See codebelow. It is not telling me anything about fucntions or prototypes … -
Replied To a Post in Prototypal Inheritance
I was trying your _log function. Do I need to include a JSON library for this? When I put your code in a page with nothing else, I see there … -
Replied To a Post in Palindrome checker need help
Yes I know all about the chimps thanks! -
Replied To a Post in Palindrome checker need help
Hi Sorry for the late replay, out all day yesterday. The compact shorthand I have used here is called a Method Group. To really understand this I would type for … -
Began Watching Palindrome checker need help
Hello everyone, I need to create a program that checks to see if a word or phrase is a palindrome. A palindrome if you are not familiar is a word … -
Replied To a Post in Palindrome checker need help
How about this: using System; using System.Linq; namespace Palindrome { public class Program { static void Main(string[] args) { Console.WriteLine("racecar: " + "racecar".IsPalindrome()); Console.WriteLine("dad: " + "dad".IsPalindrome()); Console.WriteLine("mum: " + … -
Replied To a Post in Prototypal Inheritance
Just managed to have a quick play around. Off to work in a mo though. I realise that one of my problems is that when I am tinkering with code … -
Replied To a Post in C# Directory Browser / Indexing
Another easy performance improvement with your current code - use a paralyzed foreach. These can add a lot of performance very easily. -
Replied To a Post in Prototypal Inheritance
Hi guys I haven't forgot about this thread. I am busy the next 2 days but will have a good play around with your ideas on Sunday. Thanks to everyone … -
Began Watching C# Directory Browser / Indexing
Good night dani people. I'm current developing a project that needs an web API to list all directories and files, and also provide a method to search by name. I … -
Replied To a Post in C# Directory Browser / Indexing
I haven't done this for a long time but used to use something called Index Server. This indexed certain folders which you specified and you queried index server much like … -
Began Watching for loop vs foreach c#
What is the `advantage` and `disadvantage` of the two loops? I don't know their `deferrences` to `each other`. the truth is I don't know where will I use the `for …
The End.