hericles 289 Master Poster Featured Poster

I'm not sure what you mean when you say 'Class Form'. Are you referring to the form class? E.g. the class used to create Forms in winForms programs?

A class diagram is a text/graphical display of a class, outlining various aspects of its structure such as name, parameter types, included methods, etc.
Diagrams incorporating several classes are uses to show how software components fit together and interact.
A picture would explain it better. google images for class diagram and you'll find plenty of simple examples.

hericles 289 Master Poster Featured Poster

Ah Google, where would we be without you?

Click Here

Mya:) commented: Ill give you an upvote for the effort:) +2
hericles 289 Master Poster Featured Poster

We don't do homework but we do help when you've tried and get stuck. You shouldn't be stumped if this is homework because you would have done course work leading up to this.
Have you even managed to create the BankAccount class?
Post up hwat you've done so far and then, maybe, someone will help.

hericles 289 Master Poster Featured Poster

Without knowing exactly how you code works, maybe...
The methods of a dll become available to your code once it is added but if it requires things like displaying text then there is an visual element that needs to be taken into account.

hericles 289 Master Poster Featured Poster

To build a dll, type this from the command line
csc /target:library /out:<dll_name>.dll <list of .cs files to make up dll>

After that just add the dll to your upcoming projects

hericles 289 Master Poster Featured Poster

CONCAT_WS stands for concatenate with separator. It takes three parameters, the seperator, string1 and string 2. So in your case you told CONCAT_WS that "$dstart' is the separator rather than a value to concat. So either use
CONCAT_WS(' ', '$dstart', '$tstart') to separate by a space or just use CONCAT.

hericles 289 Master Poster Featured Poster

Well, there is the basic advice: go to your lectures, go to all the tutorials/labs, don't get behind.
On a more specialised note, from my own experience when I was at uni, don't try to learn it all. With subjects like computer science, you can get surrounded by coding languages, frameworks, databases, etc and want to dive right in. That is a mistake. The IT field is HUGE and the amount of information staggering. Make sure you pass your exams first and if you have time, self study somethng related e.g. learn MS SQL or MYSQL if you aren't doing a database course (but don't try to learn MyQSL, MSSQL and Hadoop all at once).
So, relax, follow your teaching outline, be consistent and remember to take time out:) Enjoy!

ddanbe commented: Good advise! +0
hericles 289 Master Poster Featured Poster

This should probably be in the PHP forum as it isn't really a database question but never mind that...
You can use javascript to show a confirm window and if the action is confirmed call the relevant page with a parameter set. The called php page then reads the parameter on page load and acts accordingly.
You can pass data into the confirm box so it can show the data being deleted.
Or you can create a confirm box yourself with CSS and javascript if you want something more stylised.
Here's a forum question with an answer

hericles 289 Master Poster Featured Poster

That is a lot of constraints for one table and, without knowing your exact intention, I do have to say I'm unsure about it.
Is the part ID really going to be unique across all rows?

And having a line_type column that can only ever equal 'part' seems like a waste of a column.

hericles 289 Master Poster Featured Poster

That is correct. PRIMARY KEY (column1, column2...) will create a primary key using the columns specified.

hericles 289 Master Poster Featured Poster

Relationships between tables can help with data consistency, such as having a foreign key on a table helps keep the rows connected to the referenced table.
For example, having foreign keys with cascading deletes helps keep the referencing table accurate when the referenced table is changed.
Indexs aid in efficiency, although a case could be made for relationshsips I guess, like in the example above if enough deletes are made.
I've always thought of relationships are a way to more accurately model the data.

hericles 289 Master Poster Featured Poster

call the addition code after your code that retrieves the record values. At that point the textboxes will have their amounts displayed in them so you can safely call the addition function. That would mean taking it out of the _TextChanged function and having the _TextChanged function calling it as well.

hericles 289 Master Poster Featured Poster

Have you attempted any of this or do you just expect someone else to do it for you? I don't mean to be harsh but if you're not prepared to have a go yourself you're going to improve much.
From what I've seen on this site people are all too willing to help you tweak and improve your code/design but you won't find too many people who will just do it for you.

hericles 289 Master Poster Featured Poster

Have you tried using position:fixed in your CSS? That will keep the menu in position relative to the browser window i.e. it won't scroll with the page

hericles 289 Master Poster Featured Poster

If you only have the two options that the text can be a simple if statement inside the button click function is the easiest option.
Check if the current text is "Connect" and if so change the text property to "Disconnect" and vice versa.

if(connect.text == "Connect") {
    connect.text = "Disconnect";
} else {
    connect.text = "Connect";
}
daniel955 commented: but check if the connection is successful not the button text. +1
hericles 289 Master Poster Featured Poster

You can't just bypass a email provider's spam settings by tweaking your email. If you could spam filters would be useless.

hericles 289 Master Poster Featured Poster

You aren't executing the command at all. You're defining it and adding the SQL statement and the connection but you also need to add

cmd.ExecuteNonQuery();

to make the command actually affect the database. I'm assuming you have the opened the connection as well.

hericles 289 Master Poster Featured Poster

You aren't specifying a size for the array. If you know how big it is going to be include the size in the initializing code

Dim clust(5) As bicluster

Or use the redim method to redefine it with a size:

ReDim clust(5)

If you don't know the size of the array use an arrayList instead as they can grow without the performance hit brought on by repeated ReDims.

hericles 289 Master Poster Featured Poster

Again you should check out jquery cycle. Beyond adding the libraries and correctly naming the divs on the page there is one script (a couple of lines) that you need to add to the page to set it all in motion.

hericles 289 Master Poster Featured Poster

Check out jQuery cycle. It is a jQuery library for slideshows with a variety of transitions. It is pretty easy to set up too.

hericles 289 Master Poster Featured Poster

In the global.asax file there is a session_end function which is called when the timeout period for the website is reached. You can use that to alter any session variables or to clear them out completely if a user has been inactive.

hericles 289 Master Poster Featured Poster

I get the idea. Why a desktop app? Then you are restricted to how you can show the messages, unless you wanted to send messages over the network to another computer (but I'm guessing that will be too much for this project).

Basically, you have asked how to code the entire app and no one here is really going to work through it all with you.
Briefly though, the admin screen will save the messages to some form of persistant store, presumably a database so you will need to know how to insert/update/retrieve/delete data in a database.
There are a variety of .Net controls for displaying data, check them out and see which one fits your needs.
If you have actually tried some coding and hit specific problems people here will help you out but I doubt you'll find anyone who wants to walk you through the whole thing line by line.

hericles 289 Master Poster Featured Poster

Are you looking for a coding solution or are you asking how to dock a window on a second screen (i.e. drag the 2nd form to the second screen and maximise it) - because it sounds like that is all that is required.

hericles 289 Master Poster Featured Poster

Quality links with sites that have a higher page rank is the best method to use, particularly, as smith_warnes noted, if the link is in-bound. But you have no control over that so it definitely isn't a fast way to get page rank.
Posting in forums and writing articles, blogs, etc may provide some benefit, just make sure links to your site aren't marked as rel="nofollow" (as they are on Daniweb) because then you won't gain anything.
Sorry, but I have to ask: do you work for bestittechies.com? Because it would be kind of ironic if you do...

happygeek commented: well said sir +11
hericles 289 Master Poster Featured Poster

You need to alter your filter so it includes multiple statements. I.e. "Brand='Samsung' AND brand = 'Nokia'".
To do this you will need to collate which checkboxes are checked and build up a string that represents that and pass it into your RowFilter.

private void filterView() {
   ArrayList filters = new ArrayList();
   if(Checkbox1.Checked) {
      filters.Add("brand = 'Nokia'");
   }
   if(Checkbox2.Checked) {
      filters.Add("brand = 'Samsung'");
   }
   if(Checkbox3.Checked) {
      filters.Add("brand = 'Blackberry'");
   }
   if(Checkbox4.Checked) {
      filters.Add("brand = 'SonyEricson'");
   }
   string filter = "";
   if(filters.count == 1) {
      filter = filters[0].ToString();
   } else {
      for(int i = 0; i < filters.count-1; i++) {
        filter += filters[i].ToString() + " AND ";
      }
      filter += filters[filters.count - 1].ToString();
   }
   DataView dv = dt.DefaultView;
   dv.RowFilter = filter;
   DataList1.DataSource = dv;
   DataList1.DataBind();
}

Call this function from within every CheckBox_Changed event and it should build up the string correctly. I just typed this on the fly so I'm hoping it will work (it should) but its enough for you to get the idea anyway.

crazydevelopervish commented: thanks +0
hericles 289 Master Poster Featured Poster

Any server side code won't be visible in a website anyway so you're perfectly safe.

hericles 289 Master Poster Featured Poster

I haven't done anything like this myself but I think you will need a service running in the background that checks the current open TCP connections against your blacklist and shuts them down if they feature on it. Of course TCP connections appear as IP addresses so your blacklist will either need to consist of IP addresses or you will need to match a domain name to an IP.

hericles 289 Master Poster Featured Poster

You can use FTP to download the files to work on them. Once you're finished FTP them back to the site. Any downtime to a particular page or the site in general should be pretty minimal.
As for the server and password the site administrator will need to give that to you.

hericles 289 Master Poster Featured Poster

Simply create empty spans beside each of your validation controls (what you want to validate) and when your validation script runs, when errors occur output them to the appropriate span.

ratanji commented: thanx alot..i l send u that code so can u check it and correct that code if possible to u !!?? +0
hericles 289 Master Poster Featured Poster

Set the autoPostBack for the semester drop down to true (I think it is already) and add the onSelectedIndexChanged event to your code behind. Now when the value in the semester drop down is changed that method will fire and you can make whatever changes you need to the housing drop down.

<asp:DropDownList ID="SemesterDDL" runat="server" DataSourceID="SemesterDS" DataTextField="Semester_Name" DataValueField="Semester_ID" AppendDataBoundItems="true" AutoPostBack="true" onSelectedIndexChanged="SemesterDDL_OnSelectedIndexChanged">

Then in your code behind define the SemesterDDL_OnSelectedIndexChanged method.

hericles 289 Master Poster Featured Poster

Say, for example, that you let your user reset their passwords directly on your site (no emails get sent out or anything like that). Then, assuming your user is already logged in, you need two things - their email address or user ID (whatever makes them unique in your database) and the new password.
Then you can use an update statement directly.

UPDATE table_name SET password = new_password WHERE user_id = @user_id

The @user_id being a passed in parameter. And that will reset their password is the simplest way possible.

ppstyle commented: Thank you, it worked! +0
hericles 289 Master Poster Featured Poster

after the database insertion has completed the simplest thing you can do is this:

dropdownlist2.Items.Add(TextBox1.Text);

Or, better, code up another function that selects the employee ID out of the database and adds the resulting dataset to dropdownlist2. You need to do this anyway if you intend to populate the dropdown when the form loads.

hericles 289 Master Poster Featured Poster

OK, if you want the dropdownlist2 to show the newly entered data and everythign before it then then best thing to do is what I suggested above.
1) insert the employee ID into the database
2) on page_load (or call it directly after the insertion) draw the employee info from the database and populate the dropdownlist
2a) You could, instead of hitting the database each time the page reloads, fill the list the first time the page loads and everytime you save an employee ID just add it to the list with

dropdownlist2.Items.Add('the employee ID')

That will save a bit of server resources and data passing back and forth.

As for the insertion problem, tell us what it is and post up some code, we'll have a look.

hericles 289 Master Poster Featured Poster

The standard select statement has the form of

SELECT col_name1, col_name2, etc FROM table_name WHERE some_col = some_value;

So you will want to store the selected option from the combobox and then add it to the SQL statement. You haven't given us much to go on, do you know how to create a database connection with a connection string, put your SQL statement into a command object and execute the command? If not, type ".net database tutorial" into google and follow along.
Of course, if you have specific problems and questions post them back here and we'll help out.

Begginnerdev commented: I will give credit where credit is due. +5
hericles 289 Master Poster Featured Poster

You are missing some syntax somewhere in the class, most likely a method that has no End Sub.

hericles 289 Master Poster Featured Poster

You are calling your cmd.execute twice, once to execute it and again to ensure it worked and clear out the textboxes. That is where the duplication is coming from. Remove the first instance and the second will run and provide you with your check that it succeded at the same time.

hericles 289 Master Poster Featured Poster

You could put your address image inside a div and your table inside another, set the widths of both to what ever width they should be on the page and then add the CCS rule

display: inline-block;

to both. That will remove the need for the float and place them side by side.

Reliable commented: Thanks so much! +2
hericles 289 Master Poster Featured Poster

LinkButton.Text = "Like";

You will want the code to check the current text of the button so it knows what to change to I guess. An if statement will do that easily enough:

if(LinkButton1.Text == "Like") {
    LinkButton1.Text = "Unlike";
    // plus whatever other codes runs when something is liked
} else {
    LinkButton1.Text = "Like";
}

Initially you will want to show two buttons (like and dislike) but once a selection is made you would be better to hide one of the buttons as only one is needed now - to reverse the decision. For example, if I like the page there is no point changing the like button to unlike because there will now be unlike and dislike which is pretty confusing to the user. Better to change its visibility instead and leave the dislike button unchanged.

mani508 commented: n!ce help +0
hericles 289 Master Poster Featured Poster

The checked method returns a boolean, true if checked false if otherwise. So you can use

if (!checkBoxAddSub.Checked && !checkBoxMultDiv.Checked)

hericles 289 Master Poster Featured Poster

Check out how to load a file using LOAD LOCAL INFILE command for MySql or for MSSQL the bulk insert method e.g.

BULK INSERT OrdersBulk 
    FROM 'c:\file.csv' 
    WITH 
    ( 
        FIELDTERMINATOR = ',', 
        ROWTERMINATOR = '\n' 
    )

Which database are you using and, more importantly, what error are you getting?

hericles 289 Master Poster Featured Poster

Download wordpress ;)
Or, if you want to do this yourself, what areas of web design are you familiar with? Are you asking for help with site design, databases or the actual coding?
Simply put you will have one page that allows you to enter your blogs (unless you intend to upload them some other way) and the page that shows the blog titles and dates and then extracts and displays the selected one.
If you need help with particular areas we can help more.

hericles 289 Master Poster Featured Poster

it should be href not ref in your anchor tag.

seblake commented: Thank you!! for your speedy reply! Do appreciate the help! +1
hericles 289 Master Poster Featured Poster

Specify what is involved for each project in writing in consultation with the client and get it signed off by the client. Base your price on that and don't deviate. Additions to the project then come at an increased cost. Scope creep will kill you otherwise.
Set a realistic deadline and stick to it.
Get major milestones in the project signed off as complete by the client (in writing) before moving on.
Basically make sure both you and the client know what is going to be done for how much and make sure they are happy with every phase of the project. Rework due to miscommunication or growing requirements will wipe out your profit on the job.

hericles 289 Master Poster Featured Poster

is checking for the date modified or created of the file an option? At least using those dates the format is set and you're not relying on user input to determine if you want to operate on that file.

hericles 289 Master Poster Featured Poster

If it is for a web form you would normally use <asp:Image>. In the button click code you would set the imageURL to display the correct image.

hericles 289 Master Poster Featured Poster

First off, debug your code and see what value is being put into temp. If the user name was in your database twice then temp would be more than 1, if it isn't there at all then temp won't be 1 either.

lhsunshine commented: tq... +0
hericles 289 Master Poster Featured Poster

Use writeLine instead of write. That will add a line terminator to each line.

hericles 289 Master Poster Featured Poster

Have you got your folder structure the same on your host as on your local machine?

lhsunshine commented: tq very much.... i have put the style sheet in wrong folder.... +0
hericles 289 Master Poster Featured Poster

Data.CommandBehavior.CloseConnection returns an enumeration (the number 6 from what I just looked up on MSDN). This means you are in effect calling

Dim result As Data.SqlClient.SqlDataReader = dr(6)

Which probably doesn't exist as your dr has 6 items or less. As you already have the dataReader set up I'm not even sure why you are creating another dataReader equal to the existing one just to see if it has rows.

hericles 289 Master Poster Featured Poster

The data reader is a forward only way of moving through the data extracted. You can use other types if you want to be able to arbitrarily select a position. The dataTable can be referenced by iterating through the rows so moving back forward is easy.