1,576 Posted Topics
Re: And you're not going to give us any hints as to what the issue is? We'd be more inclined to help you if you point us in the right direction to start with | |
Re: Add this line: dpDOB.Format = DateTimePickerFormat.Short; to the code that draws the info from the database. Just place under the rest and it should work. The problem at the moment is that you only have it in the dateTimePicker code segment which is only getting called when you click on … | |
Re: Running the same app twice at the exact same time to show sycnronisation issues? Can't you use one application with a couple of threads to do the same thing? At the very least you wouldn't have to jump between two IDEs. | |
Re: Is the page list going to be static or dynamic? If the list can change over time the URLs will need to be stored somewhere. I'd be strongly inclined to use a database | |
Re: Your textbox is never going to equal "00". It will equal "0" however when it counts down (1 - 1 = 0, 1 - 1 != 00). Also, at no point do you reset the seconds away from 00. E.g. 10.00.00 minus 1 sec doesn't seem to become 9.59.00 in … | |
Re: Posting up your actual SQL statement would help us a lot | |
Re: Here is an old function I used to create a random text string. [CODE] Random rand = new Random(); string pw = ""; Char[] chars = new Char[6]; int count = 0; while (count < 6) { chars[count] = (Char)rand.Next(97, 123); pw += chars[count]; count++; } [/CODE] The rand.Next(97, 123) … | |
Re: Your code seems to present the message box saying 'please enter a value' and then continues through the rest of the function after that. It doesn't exit to await new input. Also, you've nested your if loops. txtInWage.Text = "" is only tested if txtInHours.Text = "". Meaning txtInHours needs … | |
Re: Once you have your files in a list you can loop through that list and use the getExtension method to return the file extension of each file. That will of course give you quite a few duplicates for each file type so you'd still need to filter that if you … | |
Re: You have to alter the names in some way. You can't have 2 files with exactly the same name in the same folder. | |
Re: Do you mean you want drag-and-drop functionality on your web page? Try jquery, there is a good example of the plug-in here: [url]http://jqueryui.com/demos/draggable/[/url] | |
Re: You have looked at the most likely causes given on the error page? And tried the 'things you can try' hints also on that page? | |
Re: Or try here: [url]http://msdn.microsoft.com/en-us/library/ms172541(v=vs.80).aspx[/url] Or, try typing windows smartphone development into google and find other links | |
Re: If you're getting an actual error message it always help to post it up. It helps us know what is wrong. I'm guessing there is more than one value in the staffid table of the database. If so, then looping through them all is a waste of time if you … | |
Re: Here is some code I used for an exercise program that recorded the user's workout (exercises, weights and reps) and stored it into an xml file under the "Weights" element. Essentially it locates the element I wish to add the data ito ("Weights"), creates the new nodes and adds the … | |
Re: I think you need to explain yourself better. Do you mean how to retrieve the login details from a database to confirm they are registered users? What do you mean by 'any website'? When you say you want to save it to a text file I can only guess you … | |
Re: Post some code up. You shouldn't have the code to retrieve the database info anywhere except being called by the search button if you want the user to add a filter and then evoke the search function. For the data to show up on loading the site you much have … | |
Re: There are a few things. For a start you are only closing the connection if iRdr is true. If the user name or password does not match the connection stays open. Thats wasteful. Secondly, you're inserting the actual text entered into the user name and password text boxes into your … | |
Re: You can simply break up the text by locating the relevant paragraph start points. For instance if you hit enter twice to designate a new paragraph you just need to locate the two carriage returns and line feeds in the text string. If what defines a new paragraph isn't that … | |
Re: If you are using firefox you can find the location of the cache by typing about:cache into the address bar. It will show you the folder location of the cache. The other browsers may have similar functions. Basically, you should get steered towards the AppData folder of your PC (on … | |
Re: Well, what is accept.aspx doing with the posted data? You can't just send data to the URL and expect it do what you want with it. If you want to write to a file on the server, accept.aspx will need to get the posted data from the request and then … | |
Re: You could adjust your loop so the fourth iteration uses write instead of writeline or whatever n is if it isn't always 4). Or add proper error checking code to your code that reads the files so it can recover from encountering an empty line (the fact that it crashes … | |
Re: Why would someone click on a textbox that is disabled anyway? The whole idea of disabling the control is to show the user they can't interact with it. | |
Re: Use a datagrid, a repeater or possibly a literal control dependng on how you want to display the results (and whether this is for a web page or form application). Catch your results from the database in a dataTable via a dataAdapter and link that to your chosen output control. … | |
Re: So what line gives the error? You could narrow down the search for us a bit:) | |
Re: You are passing in a value from the TMtNm.Text textbox right? If that was empty you would get an error similar to that. I may be jumping the gun here but you also aren't taking care of many error conditions either. What if the material entered can't be found or … | |
Re: I guess you could stop all client side scripts be going into IE's advanced settings and turn off all scripts and download options, even images if you wanted to go that far. But that will still let server side code run - if you want to stop ALL processing of … | |
Re: Everything seems OK when I looked over it except, of course, you aren't actually inserting the data into the database. After setting the command text you need to include the line: cmd.ExecuteNonQuery(); This is the command that places the data into the database. Also,you shouldn't enter the text provided by … | |
Re: You normally see that error when you have included a method to handle the ontextchanged in the code behind. You have ontextchanged="vNaam_TextChanged" but haven't got code specified to handle that event. | |
Re: Does the other computer have the .Net framework installed (rather than Visual Studio)? It says file not found. You know your code, what file could it be looking for and not finding? | |
Re: Depends how you want to store the zip codes and states. If you intend to track down and store the list yourself you will probably want to place it in a database. However, there are web services out there you could query with the zip code and get back the … | |
Re: If you want a quick and dirty solution, break your input into a character array and loop through it. For each character check if it isDigit(), if yes no change is required. Then check for the special characters you need to remove. Lastly check isUpper for the character. If false … | |
Re: Try this: [CODE] SELECT t2.date, t3.order FROM Table1 As t1 JOIN Table2 AS t2 JOIN Table3 AS t3 ON t1.userID = t2.userID AND t2.customerID = t3.customerID WHERE t1.userName = 'name'; [/CODE] Use the JOIN and ON statements to connect tables by the columns they have in common (userID for tables … | |
Re: A better solution than saving the actual image itself in the database is to store the location of the image (its URL or file system location). Obviously to do that you need to have the column in the table set to accept varchar() and then just insert the URI of … | |
Re: I'm guessing it is here: "SELECT * FROM Reg WHERE userid = 'u_name' AND password = 'pwd' " You aren't inserting the values of u_name and pwd here, you are inserting the text strings u_name and pwd. You need this: [CODE] "SELECT * FROM Reg WHERE userid = '" & … | |
Re: Select MAX(transac_num) FROM tblborrow will get you the highest value currently stored in that column so you might want to get that and display it in your label. I'm not sure if Access has the @@identity function the same as some other sql databases do. You would need to get … | |
Re: So... what does your code look like? post it up so we can have a look and help you out | |
Re: Are you actually using transactions in your code - blocking a user2's access to the data while user1 is modifying it? It sounds like you aren't which is causing your mismatched data | |
Re: On page postback the page is retaining the initially loaded value because the database code is being called again. You will want your database code to be called inside this structure: if(!Page.IsPostBack) { // call code to populate from database } Now that code only runs when the page is … | |
Hey, I'm trying to catch the incoming request to my Tomcat server and redirect to another page (a servlet). I don't have Apache installed so no mod_rewrite will work (as I understand it). I need to redirect the incoming request aimed at a standard URL [url]http://www.somesite.com[/url] and send it to … | |
Re: Have you debugged your code while running it? Is the if statement even being called? Because if neither of the if sections get entered then it would appear your dataReader is empty and cannot read. | |
Re: Is AutoPostBack set to true? Otherwise you may not be calling the SelectedIndexChanged method. You have the onclick="" element of the dropdownlist set correctly? | |
Re: You're not using dgv1.Databind() after naming the datasource. That should fix it but you also say you 'think' the database table has data in it. Maybe you should check that too... | |
Re: aldeene's code is a bit random. Why is there code to extract the user name from the database where the userName = txtUser.Text? It will only return what you already have - the entered user name. User is ALWAYS going to equal txtUser.text All that is really needed is, as … | |
Re: Same post, different user... weird:) You need to use transactions. Transactions lock the records in use while one user is still altering them, blocking others until the resources are free again. You'll find plenty of examples online but basicallyyou begin a transaction, make your insertions, updates, deletes to the database … | |
Re: You need to use transactions. Transactions lock the records in use while one user is still altering them, blocking others until the resources are free again. You'll find plenty of examples online but basicallyyou begin a transaction, make your insertions, updates, deletes to the database and then either commit the … | |
Re: You can't break it into manageable chunks instead of dealing with the whole thing at once? | |
Re: For a start if the table name is tbaccession then the columns should be referenced as tbaccession.accno, etc not accno.tbaccession. You could also post up the actual error you are getting just to help us help you | |
Re: Check out using session variables for recording the logged in status of a user. Each page can check the session state to see if the user is logged in or not and either redirects them to the login page or lets them view the page they are on. As for … | |
Re: I take users don't have to log in to your site or you wouldn't need to protect the comment box, normal log ins could take care of that. But all you need to do is add another text field to the page for the user to enter the password and … |
The End.