tobyITguy 24 Junior Poster

It worked normal for me.

jonsan32 commented: On my site as well? +2
tobyITguy 24 Junior Poster

use <span> tag with and id. Read about it.

tobyITguy 24 Junior Poster

Your number 1 is correct.
Your number 2 is correct.
Your number 3 is correct.

For your number 4, you need to add the primary key along with the relationship declartions like you did in 3 or else when your controller is generated you would not see those properties in the view.

That is, after scaffolding, your view would only have name age and height

Your number 5 is correct. Visual Studio can generate that for you.

Your number 6 is correct.

Hope this helps.

tobyITguy 24 Junior Poster

So i got this working. My code was right the issue was that i had a proxy configured on my pc somehow. So i used netsh on the command line to reset it.

Hope this helps somebody.

Oh and i must say, it took me 2 months to figure that out. :(

tobyITguy 24 Junior Poster

So i was going through the internet like i normally do and came across this word.

And apparently its a real word.

tobyITguy 24 Junior Poster

Yet another Link

Stored procedures are used to store some actions on your database. So that those actions can be peformed by people without having direct access to the data.

It allows for variable declaration. Its like functions in programming.

DELIMITER //

CREATE PROCEDURE `multiply` (OUT var1 INT)
BEGIN
    SET var1 = var1 * 2;
END //

When the mutiply procedure is called like so

CALL multiply(5)

its given a parameter(in this case 5).

That parameter is then multiplied by two and returned.

Within the "begin" and "end", you can put any type of query.

It limits what users can do on your database and enhances security and ease of use.

The "DELIMITER" tells sql your done with typing a statement.

In the example we used // as our delimiter.

Hope that helps.

tobyITguy 24 Junior Poster

what problem does it give?? show the error

Gideon_1 commented: yh, no codes help is quite difficult +1
tobyITguy 24 Junior Poster

Try this:

Module Module1

    Sub Main()
        Dim FileName As String 

        FileName = "C:\Users\Toby\Desktop\daniweb.txt"

        Dim TextLine As String

        If System.IO.File.Exists(FileName) = True Then

        Dim objReader As New System.IO.StreamReader( FileName )

        Do While objReader.Peek() <> -1

        TextLine = TextLine & objReader.ReadLine() & vbNewLine

        Loop

        Console.WriteLine(TextLine)
        Dim aryTextFile() As String
        Dim numOfLines As Integer 
        Dim input As String

        Console.WriteLine("what do you wanna find")
        input = Console.ReadLine()

        aryTextFile = TextLine.Split("*")

        numOfLines= UBound(aryTextFile)       

        For counter = 0 to numOfLines

        Dim pos As Integer = InStr(aryTextFile(counter),input)

        If pos <> Nothing AndAlso pos <> -1 

                    Console.WriteLine(aryTextFile(counter))



        End If

        Next


        Else

        MsgBox("File Does Not Exist")

        End If

        Console.ReadLine()
    End Sub


End Module

This would return the whole line with the word.

Its a console app so you can add the GUI yourself.

so if you have

Ani | #friend #human #male *
Car | #machine *
BMW | #car *
Toyota | #car *
James | #human #male *

and search for Machine you will get

Car | #machine

use the split function i gave you earlier to make it gibe just the word before the '|'

I used the trailing * to split the lines before checking. So you have to use that format in your text file.

Hope that helps.

altjen commented: helpful +2
tobyITguy 24 Junior Poster

You didn't ask for help my friend. You pasted the question.

ddanbe commented: Great point. +15
tobyITguy 24 Junior Poster

That's because your html code is really wrong.

Try this:

<html>
<head>
    <style type="text/css">
        #nav > ul > li {
            float: left;
            padding:10px;
            list-style: none;

        }
        #nav li ul li{
          padding-top:10px;
          list-style: none;
        }         
       #nav li ul
        {
            display:none;
        }
        #nav li:hover ul
        {
            display:block;
        }
        #nav li ul:hover li
        {
            display:block;

        }   
    </style>
</head>
<body>
<!-- <nav> HTML 5 -->
<nav id="nav">
<ul>
    <li><a href="#"> Home</a> </li>

    <li> <a href="#"> About</a> </li>

        <li><a href="portfolio.php">PORTFOLIO</a>
            <ul>
                <li><a href="portfolio.php">Portfolio1</a></li>
                <li><a href="portfolio3.php">Portfolio2</a></li>             
            </ul>
        </li>     

    </li>    

        <li><a href="blog.php">BLOG</a>
            <ul >
                <li><a href="blog.php">blog1</a></li>
                <li><a href="blog2.php">blog2</a></li>             
            </ul>
        </li>  

  <li><a class="fly" href="contact.php">CONTACT US</a>
            <ul>
                <li><a href="contact.php">Contact Us1</a></li>
                <li><a href="contact2.php">Contact Us2</a></li>             
            </ul>
        </li>
    </ul>
</div>

</nav>
<!-- </nav> -->
</body>

If you wanna add more links where the "Home" is, you add <a> tags under the <li> tags in the first <ul> under the <nav> tag.

If you want sub menus, add <ul> tags under the list tag of the parent item
then <li> tags.

Try and understand what i wrote while looking at the code i gave you.

lps commented: Agreed html code is wrong. Understand the difference and usage of id and class. I saw question having multiple element with same id +4
tobyITguy 24 Junior Poster

seriously privacy isn't really that important if your not a crook.

I mean the government may have hours of video of you cheating on your wife,but who cares. They won't tell on you. You will get away with it because its not against the law.

But if your planning a bombing, they would stop you dead on your tracks.

So people should take it less seriously, if they aren't doing illegal stuff.

ddanbe commented: That's indeed what I meant. +0
tobyITguy 24 Junior Poster

Please show us the code of all your models.

You should try adding the virtual keyword to relationship definitions.

public virutal List<PatientJab> jabs {get; set;}

And also add the relationship in the other table.

public virtual Patient patient {get; set;}

That defines a one to many relationship between Patient and Jabs.

You should also have models for heathconditions and operations in a one to many relationship with patient.

Also id like you to show us the UML for the database. It would help

tobyITguy 24 Junior Poster

The route is proper. The problem should be at the controller. There should be methods in your reportscontroller that correspond with the report names. To add a new report you need to add a method with the name as your new report and put the logic to make it find and display the report.

tobyITguy 24 Junior Poster

Your calling it wrong. It should be:

transactions.adopt(chappie,dog);

This is because your adopt method is defined under the transaction class and accepts a customer and a pet.