hericles 289 Master Poster Featured Poster

In my experience you either have a very long query running (whic you would most likely know about) or the app has stalled waited for connections to be released (which you mention you have checked). You can increase the connection pool to see if that fixes the problem - if it doesn then you know the number of open connections is the issue.

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 telling it to display the same thing as the href because you are referring to the same section of your dataTable

<p><a href="@row[5]" target="_blank"><br /><b>@row[5]</b></a></p>

If @row[5] is the URL for the link it won't suddenly also be the name of the article. If it is in position 0 in the table surely you should enter @row[0]?
For the description you should still be asking for the correct row column combination, e.g. ds.Tables[9].Rows[a][b] where a and b are the row and column to extract. You are simply asking for the column of the table so all can provide you with is the column name.

hericles 289 Master Poster Featured Poster

google CCS only drop down menu and you will find plenty of examples. Javascript versions work just as well too.

hericles 289 Master Poster Featured Poster

I see what is going on now. I assume you want the div to be clickable and move to the correct URL. But as you have your links now the link is inside the div and contains no text, making the clickable area very small. I would suggest not using background images and placing an image inside the link:

<a href="http://www.google.com">
  <img src="g+_hover.png" />
</a>

You could place the anchor around the div and still use background images but that technically isn't correct HTML so the page won't place validation if you care about that.

hericles 289 Master Poster Featured Poster

I just had a look at your blog and I can move forward and back through posts. The prev/next links are pretty low down the page though.

hericles 289 Master Poster Featured Poster

I think the OP is just showing two ways to clear a session and cache to prevent a user hitting the back button after logging out of a site.

hericles 289 Master Poster Featured Poster

For a start what images are you passing in to the method, are they the same image and the same size or is image2 and smaller image taken from image1?

hericles 289 Master Poster Featured Poster

Is the path to the images correct in the CSS? As you have it now the images would need to be in the same directory as the CSS file. If you have your images in an images folder and your CSS files in another folder, both in the root directory your CSS would look like this:

background-image: url('../images/g+_hover.png');
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

That HTML snippet is correct assuming the image is in the same folder as the HTML page. When you say you are having trouble, what exactly is going wrong? Is that code not showing the image?

hericles 289 Master Poster Featured Poster

If you want to use thesame button for two or more tasks you need to check what the correct text of the button is and then call the needed code based on the button text. E.g. if your button text == "view" then call the redirect code.Is that what you are after?

hericles 289 Master Poster Featured Poster

What data type is SID? It may require quotes around it (i.e. is varchar or similar). Secondly, try da.Fill() and see if that fills the dataset which is an option rather than using a dataAdapter to populate a reader.

hericles 289 Master Poster Featured Poster

The probem maybe when you set the dt equal to Gridview.Datasource. After that line check the count of the rows of the dt and make sure it has something in it.

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

Depending on how your btnDisplaySelectedDates function works that would probably be the best place to add your data to the session as well as adding it to the gridview. You can add them all to an array and store the array in session.
I noticed the NZD dollar amount too. Hello from a fellow kiwi:)

hericles 289 Master Poster Featured Poster

Assuming you understand the SQL UPDATE command, you simply execute a command on the database (command.executeNonquery in .Net)to set the quantity to the new quantity based on the product code.

UPDATE products_table SET quantity = quantity - 2 WHERE product_code = ?code;

Obviously the table name, column name and quantity to subtract will differ for you.

hericles 289 Master Poster Featured Poster

Change your SQL statement so it selects all records that match the entered user name and password. Only one result should be returned so if that is true the user has successfully logged so you can redirect them.
If you are using a dataAdapter, fill it from the database and then check the number of rows the resulting dataSet has.

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

If you want to direct to another page for displaying the results then you use the form to post the inputs to the next page (searchname.php as your form is currently set up) and that page then reads them out of the POST data and executes the retrieval from the database.
The script to use is the basic SQL SELECT statement:
SELECT coulumn_name, column_name... FROM table_name WHERE matching_criteria

For your partial search you would use the LIKE condition in the WHERE clause e.g.

SELECT name FROM some_table WHERE name LIKE '%cat%';

The % signs indicate whether you want to the search term (cat in the example) to be at the start, end or anywhere in the searched text. 'cat%' means it must start with cat while '%cat' means it must end in cat to be selected.

hericles 289 Master Poster Featured Poster

In this case I think you can also simply make the getGallons sub alter the text of lblGallons label (depending on where your getGallons sub is located).

hericles 289 Master Poster Featured Poster

If you are referencing the files by their folder and file name there can't be a clash so I'm not sure what the problem is.
What exactly are you trying to do?

hericles 289 Master Poster Featured Poster

How are your ships defined? They should be 3 instances of the one class and presumably kept in an arrya or something similar so looping through each ships turn is easy. To determine which ship is the winner loop through the array looking for the ship object that has hull > 0;

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

For the while loop simply put in an integer that holds the number of ships still alive (3,2 or 1). While (shipsAlive >) 1 {} will keep your game looping and you simply decrease the number by one when a ship is destroyed.
For the targets, add variables that indicate which target each ship is targeting then, when B is destroyed, set the A variable to indicate ship C. So, in essence, A isn't attacking ship B then C it is always attacking A_target but that changes during the game. Does that make sense?

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

Yeah, I'm here but I get the feeling this project is beyond your current level of .Net coding skills and you're looking for someone to walk you through it. I'm not that person.
As I said before, code something, give it a go and we'll help with particular areas you get stuck with.
Start at the admin side and look up how to save text to a file (stream writers). That will also teach you about stream readers (outputing a file) and you'll be much further along than you are now.

hericles 289 Master Poster Featured Poster

What are you trying to do here? You seem to be setting textboxes to values retrieved from a database and then immediately redirecting the user to another page. Whats the point in doing that?
If you want to populate that data on another page there your should be doing the data extraction on that page as well.

hericles 289 Master Poster Featured Poster

Adding DISTINCT to the start (SELECT DISTINCT...) will make sure each row is only output once if the search critieria or the database table itself allow duplicates.

hericles 289 Master Poster Featured Poster

iStockPhoto was one I used in the past that was definitely free (I think it still is) and I think stock xchng had some free. The range wasn't as large as their paid options and they were of the more stilted variety of photos but you could get decent landscapes, people shots most of the time.

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

It shouldn't. Have you actually typed that SQL statement into SQL studio and had it return a result of more than zero rows? As it appears in your post it should work.

hericles 289 Master Poster Featured Poster

Some people have provided you with incorrect advice here. You can't just click on a .aspx file and open it in the browser, a web server is needed (like IIS). Your lecturer will know this hopefully or open it via Visual Studio first.

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

All of that is normally part of the website itself. But there is absolutely no reason why it can't incorporate web services (maybe because it is intended to add APIs later for other people to use).
Registration,product searching etc is best handled as pages/code files in your project, web services would just be another layer of complexity added for no real reason unless there was some design element that requires it. From what you have said so far it doesn't sound as if they are needed on youe site.

hericles 289 Master Poster Featured Poster

If only there was some kind of machine that could search the world for these kinds of things... oh wait. Did you google "free stock images"?
I did and found:
stock xchng, getty free images, turbo photo, stock vault and a pile of others.
Maybe my sarcasmism is misplaced but, come on, google is your friend.

hericles 289 Master Poster Featured Poster

Do you mean Chrome is still decoding the entered text despite removing the html_entity_decode? Or is something else happening? Have you changed anything in the code from your previous post?

hericles 289 Master Poster Featured Poster

First up, why a web service to validate a user? Does this really need to be done via a service for your project? Normally code in your site handles logins (unless you are using SSO, or allowing users to sign on via their Twitter/Facebook/other social site credentials).
Anyway, there are many examples on the net (Google is your friend). Here's one: http://www.sitepoint.com/net-web-services-5-steps/

hericles 289 Master Poster Featured Poster

Confirm that the dataReader, or the dataTable, actually contains some rows. Does the price column really include the dollar sign and the space between the $ and the price?
Also, is the radioButton set to autoPostBack=true? If not it is possible the code isn't getting called at all.

hericles 289 Master Poster Featured Poster

Try a simple test: add a javascript function to the first textbox so it prompts an alert when clicked. If that alert doesn't come up when you try and click on it then you have something intercepting the clicks on the form.
What does spam.js do?

hericles 289 Master Poster Featured Poster

If you add a connection string to the web.config and intend to use it, you access it with this:

sqlConnection con = new sqlConnection(ConfigurationManager.ConnectionString["donationConnectionString"]);

You will need to add System.Configuration to your using statements at the top of the class for this to work. The configurationManager will then go to the web.config file and get the connection string named "donationConnectionString".

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

Hi,
As a general rule we don't do your homework for you. If you have made a fair attempt at the question, show us how far you got and we'll nudge you in the right direction. For example, for your question, what have you tried or what do you think will be a good solution? Show us you've made some effort and we'll be more likely to help.

hericles 289 Master Poster Featured Poster

Maybe you should read up on what exactly the function html_entity_decode does, that might answer your question (http://www.w3schools.com/php/func_string_html_entity_decode.asp)

hericles 289 Master Poster Featured Poster

To make it clearer for us you could have mentioned that the problem is that the textboxes don't get focus so you can't type in them. Tabbing also works to get into the textbox by the way but it still isn't very user friendly.
The code works fine if I paste it into a test page of my own. Is there anything else on the page that would be intercepting the click events of the textboxes? Does adding tabindex="1" to the first textbox help?

hericles 289 Master Poster Featured Poster

Add this in the page_load method:

btnSubmit.Attributes.Add("onclick","javascript:if(confirm('Are you sure?')== false) return false;");

And then code up your normal button_Click function. On clicking the button the script confirm option appears and if No is selected processing stops, else the server side button click function is called.

hericles 289 Master Poster Featured Poster

Are you getting any errors when you run this code? If not, was is supposed to hapeen and what actually happens?

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

Loop through the rows in the gridview individually, checking if each one requires an update to the database. If you need more specific advice post up what code you have done so we can get a better idea of what you need.

hericles 289 Master Poster Featured Poster

Yes, you can. If you are using a dataAdapter you can specify its update, insert and delete commands so that changes to the dataset can be persisted to the database. Check out the MSDN article to learn more: http://msdn.microsoft.com/en-us/library/system.data.common.dataadapter.update.aspx