1,576 Posted Topics
Re: If you are looking for a team to help work on a project you should chck out codeplex. You can list your project their and interested developers can sign up. | |
Re: If you are reloading the same page the values entered into the form are saved in the page postback. You just need to clear them out in the page load section textbox1.Text = ""; | |
Re: Add validation either client- or server-side to check the value of the textbox before proceeding. If the length of the input is too short or non-existent then stop and inform the user. | |
Re: Your total won't match the numbers generated because you declare number to be equal to r.Next on line 17 and then add it to numberTotal on line 18. At line 23 you add number to numberTotal again (inside the loop so it does this 100 times) but you aren't changing … | |
| |
Re: Can you post up some code? If you have added a script manager and an update panel around the section you want to update via AJAX it should work. | |
Re: I'm not sure I understand what you need but if you want to randomly alter one of the buttons in anyway then you first need to randomly select which button to alter. The Random type can help you there: Random rand = new Random(); int r = rand.Next(25); R now … | |
Re: Do you need to add that as a reference in the project first? | |
Re: You aren't setting the connection property of the command object to be your connection object and so your command objec can't execute. If you handled the catch block with some sort of error message you would have been informed of this. Add command.Connection = connection just below where you declare … | |
![]() | Re: If you want to give a <pre> look to it just alter your table CSS rules to include a fixed width font like courier. Then the font will mimic your standard 'code as text' look. |
Re: On the page reload could the code that populates your listbox be running again, doubling up the number of files listed? Debug your code and see how many items are being added to the hfc collection, it may be more than you think. Also, as an optimisation, you don't (shouldn't) … | |
Re: If you need it to repeat in one direction only use: background-repeat: repeat-y (or repeat-x) If you want it to not repeat at all use background-repeat: no-repeat; This should be placed in the CSS file rather than entered as in-line style. Add it inside the body {} section. | |
Re: Have you closed all open connections when they are no longer needed? You could be hitting the connection pool limit and so the system is waiting for resources to be released. But, to be honest,you would probably be seeing connection timeouts as well as delays if that was the problem. | |
Re: That site is using HTML5, CSS3 and jQuery. You'll need to learn all 3 to get that kind of effect. | |
Re: Does any of your variables that you are trying to add include the dollar sign ($)? The script is treating your variables are strings rather than numbers which is probably happening because at least one of them can't be converted and so they are being concatenated. Also, (salesPrice <= 25)? … | |
Re: If you don't want a gap between the divs reset the margins and padding to zero using CSS. You can also use the overflow: scroll rule on the gpsDataDiv. It will stay at a max height of 400px but if the content is longer than that a scroll bar will … | |
Re: Hi revelator, I want to ask a quick question and I intend no offense by it, I'm just interested: What was the structure and focus of this bachelor degree in computer applications if, at the end of it, you are 'bad at programming'? Was it a 3 year year degree? … | |
Re: Post up some code and we'll have a look. My initial thought is that your first selector in the external file has a mistake in it. | |
Re: The problem is that you aren't storing the result of the first query in a temporary table of the database, you're storing it in a dataset in memory. The database has no knowledge that the dataset exists. What I don't understand is why you are selecting the data out first … | |
Re: To send an email is fairly easy. First you need to import the System.Net.Mail namespace to get access to everything you need. Then you create an instance of an SmtpClient (which you provide with the details regarding the email account that will be sending the email) and a MailMessage instance … | |
Re: 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 … | |
Re: I think the issue lies in here: > After the search, I do a lot of GUI stuff to display the result. What you do here probably holds the reason the texbox loses focus and it takes two alt-tabs to get back to it. What exactly do you do then? | |
Re: There are several ways you can use Paypal on your site, it all depends on whether you want to use their shopping cart and session management or your own and whether you want your users to be redirected to paypal or stay within your site (except for the final payment). … | |
Re: First up, you haven't explained what the problem you are having is (that always helps for future reference). But in your BtnChangePass method you are only selecting from the database and then saying the password has been changed. Where are you doing the actual update of the database? | |
Re: When you run the project in debug mode (or normally if you have set exceptions) what error messages do you get (if any)? If you get an error it will tell you if it is caused by the connection to the database or something else. | |
Re: If lblResult.Text is always zero then this code is not being hit: if (TextBox1.Text == abc && TextBox10.Text ==fgh ) { lblStatus.Text = "***Data Already exist***"; count = 1; return; } as count is never being incremented. If equipment_name and vendor_name mark a unique item why don't you check for … | |
Re: If the strings are always the same size and the data you need always in the same place the string.subString function will do that much easier. string.subString(startLocation, NoOfCharactersToReturn) ' for your particulat string dim part = string.subString(7,3) | |
Re: If you are using sql server and only have one instance installed then the default name is your computer name. Only when you install extra instances do they need to have actual, unique names supplied and then you can open up the SQL Management tool to view them. | |
Re: How can it save the data but the data not be visible in the database? Is it just saving the last row of data from the gridview?It looks like you are running through all of the rows of the datagrid, setting the parameters to the values from each row (overwriting … | |
Re: If you are talking about Windows Forms then the button control has an Image property, you can set that to any image you have residing on your computer. Flashy buttons can be created in Photoshop (costs for a copy) or the the Gimp (free). You can find plenty of free … | |
Re: If the textboxes are being populated with the data then you know the SQL statement is working. In that case, if it is just the checkboxes that aren't being checked the reader must be containing vallues that do not equal "Spot Purchase" or "Tendor Purchase". Debug your code at the … | |
Re: Check the format of the date information coming out of the database. It can appear as YYYY:MM:DD (particulary if you used an SQLfunction to enter the date in the first place) so searching for 03.07.2012 won't find anything. That tripped me up once. | |
Re: You haven't told us the error (which helps us for future reference) but I'm going to say the command object isn't working because you haven't provided it with the connection object. Do this with command.Connection = conn; | |
Re: For ease of checking for matches, place your user's guesses in an integer array (you can do it for the randoms to if you want) then use the array's Contains method to see if there is a match. int[] array = new int[4] {ran1, ran2,ran3, ran4}; int[] guesses = new … | |
Re: Well, you can place two divs side by side if you use this CSS rule on both and the widths combined aren't too wide for the containing element. display: inline-block; Other use float: right; on the div you want on the right. Float can have some unexpected effects though depending … | |
Re: You shouldn't need to create your own Show method. The correct method is Show() - uppercase but the IDE should have corrected that for you. Delete the show() method you created, change the code in form1 to Show() and it should work. | |
Re: In the page directives at the top of your .aspx page you need to register the user control. <%@ Register TagName="whatever" TagPrefix="uc" Src="location_of_control_file" %> then in the page, where you want it to be, you reference it with the tagPrefix and the name. So, in my example it would be: … | |
Re: In that case, you must be doing something wrong. Chris's advice is correct. You create an instance of the form and after that you can pass values to any controls in the form. Might be time to post up some code so we can have proper look. | |
OK, I've wasted 2 hours on this so it time to ask for help. I opened up my latest website that I'm working on (VS 2010) this morning and whenever I access a page that uses server side code I get errors like these: CS1061: 'System.Web.UI.WebControls.Image' does not contain a … | |
Re: The error on button 3 is because you are using the same SqlDataSource1 for each of the functions. You already added firstName as a parameter in the 2nd button click method so it doesn't need to be added again. The error on button 4 is because you try to access … | |
Re: The easiest way to make content center is to apply margin-left: auto; margin-right:auto; to the content you want to center. But for this to work the containing div (or whatever) must have a width specified. So, any content you want centered inside #content must have those rules added to them. … | |
![]() | Re: Yep, you use <style></style> for CSS you want to include in your header file. If you want to use an external stylesheet you use <link href="style_sheet_location" /> ![]() |
![]() | Re: external style sheets serve the same purpose as external javascript files; it supports the removal of presentation from functionality, keeping html separate from your css and javascript. |
Re: The current date in MySQL can be used with the curdate function. In MS SQL use GETDATE (returns date and time). so thelast part of your SQL statement should be Trans_Date >= CURDATE()) or Trans_Date >= GETDATE()) You can find out plenty more options on either the MySQL reference site … | |
Re: If you are using a streamreader and reading a line at a time you can use something like this: using (StreamReader sr = new StreamReader("File.txt")) { string line; while ((line = sr.ReadLine()) != null) { // your code } } Depending on how you are parsing it may or may … | |
Re: 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 … | |
Re: You should see a scrollbar if you have set the Scrollable property to true and the content in the list view takes up more than the allowed content area. | |
Re: It sounds like you aren't creating an HTML email. A plain text email will of course display the HTML code as it doesn't know what to do with it. | |
Re: Sorry, where is the overlap? Everything looked OK in Firefox. | |
Re: Iwould suggest you check the SQL error logs. They will hopefully tell you what is going wrong with the server starting. If you post the error up here we can probably help fix it for you. |
The End.