1,576 Posted Topics
Re: <script> tags need a closing </script> tag. /> is not enough. | |
Re: The directoryInfo Class allows you examine the contents of folders and sub folders. You can read about how to use it here: [url]http://msdn.microsoft.com/en-us/library/system.io.directoryinfo(v=vs.71).aspx[/url] | |
Re: You don't technically need one if your project is never going to be used outside your own software. The default one provided will suffice, you don't need to restructure anything. However, providing a namespace is painless and correct but the final choice is up to you. | |
Re: Could it be as simple as including z-index in the CSS of the menu to make it display on top? I'm not familiar with this particular library so I'm guessing here:) | |
Re: OK, firstly, does the program need to save the entered data each time or does the user simply enter all past fuels fills at the one time to get the average? The answer to this question determines whether you need to use a file to save the information. The algorithms … | |
Re: Reading a tutorial on the net will probably help you more than any explanation you could get here but briefly: in object oriented programming a class allows you separate code into units (classes) for ease of reuse and to keep relevant code functions together. Say you created a class called … | |
Re: Is inputLength the length of the inputs array? Because I don't see how the two arrays would be of the same length. If I wanted to subtract 3 from 15 I'd have 2 numbers in the input array and only one in the operators array (the - sign). Yet you … | |
Re: You're going to have to doctor that query script a lot to make it fit your form - the two don't have that much in common. Do you know query? If not it may not be worth your time. Depending on the validation you need to do there are less … | |
Re: Well, for a start, what do you mean by 'not working'? Do you get an error message, is some functionality OK but not all of it or does it simply do nothing at all? | |
![]() | Re: Are you returning just one record from the database or a dataset? If one record you can place it into the text area using its .Text method (your text area is marked as runat="server" right?). E.g. textArea.Text = dataString; assuming you returned a string from the database a sample might … |
Re: This doesn't belong in this forum, there are other places it should have been posted. And, to my shame, I even tried to check it out only to find I can't. Check it out where????? | |
Re: You need to cast the returned object from executeScalar. Use the toString() method and it should work OK. | |
Re: I don't think you got the table details right. How you can insert phone number and duration into a table that holds user ID and password? | |
Re: Thats a really big topic unfortunately. Seeing you already know how to code desktop software it won't be too big a leap however. Do you know HTML and CSS? Create a web project in visual studio and for each web page you'll see two files, the .aspx (which is the … | |
Re: I think he means include the database in the installer. Right, is that what you mean? If yes, then this article is what you need [url]http://msdn.microsoft.com/en-us/library/49b92ztk.aspx[/url] | |
Re: Way more information needed... What do you mean by edit your program? Are you entering or updating information? It is most likely your code connecting to the database if the error is related to changing data. Do you get any error messages? | |
Re: You need to read and understand the concepts here: [url]http://msdn.microsoft.com/en-us/library/wkzf914z%28v=vs.71%29.aspx[/url] This explains events and how they are raised. | |
Re: Where is the database residing? Is it externally hosted or within your network? And is the website internal or external to your network? | |
Re: Using SQL 2005 with VS 2008 is the same as using any other database, set your connection string correctly and your fine. Generally with SQL you have an instance of the SQL server installed. I'm not actually sure if simply including a SQL database file will work the same way … | |
Re: For a start I'm knot sure how you are going to insert into the database table with only one text box - I'm assuming you need to be able to add an author and book to the database. You already have a database connection done so the only thing left … | |
Re: Are you trying to make a row cell of a different width to rows above or below? You would need to either place a new table inside your table row (which gets messy very quickly) or you could increase the number of columns in your table and use the colspan … | |
Re: Try this string.format style instead: String.Format("{0:c}", Cost) will return $10.00. The $ is replaced by whatever symbol is specified by the locale setting. If you need it to be pounds regardless try Me.lblCost.Text = "" + String.Format("{0:n2}", Cost) which will give you a number to 2 decimal places with your … | |
Re: Use the app.config (or web.config for a web app). In the <Configuration> section of the app.config add this: [code] <connectionStrings> <add name="name_of_your_connection_string" connectionString="your_connection_string" providerName="System.Data.SqlClient" /> </connectionStrings> [/code] There you access it in code via: [code] Dim conStr As String = ConfigurationManager.ConnectionStrings(name_of_your_connection_string).ConnectionString; [/code] | |
Re: Considering each table has a different range of columns and data types a stored procedure for each is probably required. If you could use the same insert procedure to insert the same data into several tables that begs the question of why you have these others tables in the first … | |
Re: before loading the data into the listbox you need to call the .Clear() method on the listbox. This will remove the current data from the listbox. Without that it just appends the new data to what is already in there. | |
Re: You can check the jQuery site for known issues with browsers and operating systems but those guys work pretty hard to make sure there aren't many major browser compatibility issues. | |
Re: Can you post up the code around that line? An overflow is normally due to problems with recursive calls, maybe an infinite loop, that kind of thing. Although it finally crashed out trying to perform that operation the error is probably being caused else where. | |
Re: When you say zoom do you mean display a larger image? Or do you want the image in zoom in through a range of ratios? Because a mouse over is either over the image or not. You'd have no control of the zooming -how would you stop at a particular … | |
![]() | Re: You say you have 5 errors but you don't tell us what they are... You set the Prompt string within each button function and then place it in each element of the array - I'm not sure why. [code] Prompt = "Please enter grade scores one at a time"; for … ![]() |
Re: If you simply want the text to be in uppercase after it is loaded or type use .ToUpper() on the entire string. If you want the user input to appear uppercase as they type, in the text box.OnTextChanged event get the last character typed, which will be the last character … | |
Re: Use background-repeat: no-repeat; or if you want it to repeat along one axis background-repeat: repeat-x background-repeat: repeat-y | |
Re: So, I guess you also have a textbox where the name is entered and a button to submit the search. In the button click function take the name entered into the textbox and make that part of your SQL query (SELECT patientName FROM tableName WHERE patientName LIKE '?name' - where … | |
Re: This article shows how to add user input screens to your set up project and use the input provided. it should cover what you need. [url]http://www.c-sharpcorner.com/UploadFile/ddoedens/CustomUI11102005042556AM/CustomUI.aspx[/url] | |
Re: You're not using the data extracted in your datareader at all. You are setting up the connection and calling the executeReader method then leaping into the If statement. It is generating the error because you haven't entered "mobileno" and "password" into the two textboxes. You need to check if the … | |
Re: Look into setting up cron jobs or scheduled tasks on your server. For a web page you can set a scheduled task to run at certain times, calling the web page and thereby running any scripts that are part of the page. If you are coding a program to run … | |
| |
Re: without seeing code it could be absolutely anything. You need to help us out if you want us to help you. But as a possible guess, does the link use any variables to build up its URL? Something that might not survive the page refresh and so isn't available the … | |
Re: When you say you do not want the 'rest' to be visible what exactly is the rest? Extra rows from the database? Other controls on the screen? What? If it is rows from the database simply alter your SQL statement to select only the rows you want instead of using … | |
Re: It can be done, unfortunately I'm not an expert on it so my help is limited. You need to use the .Net reflection class. You can use this to examine a dll or class at runtime and from there call the right method. I'm sure Google can supply tutorials now … | |
Re: Use a loop to run through checking the dataset's 2nd col for the name, when a match is found get that rows first column. [code] Dim teamStr as String teamStr = comboBox value for(int x = 0; x < dsdg44.Rows.Count; x++) { if(dsdg44.Rows[x][1].ToString == teamStr) { // rank is now … | |
Re: So you have used a dataAdapter to fill a dataTable. The items in the dataTable can be accessed using notation like this: [code] string sample = dt.Rows[0][1].ToString(); [/code] This is accessing the second element in the first row of the dataTable and storing it in a string variable. You can … | |
Re: Are you saying it calls the CheckBoxValidation twice? Because I can't see where that would happen. you only call the method with the True parameter. As a point of coding design you replicate code in your IF statment that you don't need to. Apart from UpdateCMD inside of InsertCMD the … | |
Re: I would check the format of the datetimepicker value against the format in the column for the database. The SQL statement is probably not finding a match on that criteria. You are also using checkBox1.Text in the SQL statement. Are you sure you don't want CheckBox1.Checked? | |
Re: If you want to alter the way the results look on the page you can always include HTML in your literal control and apply CSS classes. Much easier than XSLT. Or do you want to change the database output to XML? | |
Re: You have multiple elements called Question and Diagnosis, some children of the other, which isn't good XML design. I prefer using Xpath for XML but you would need to fix your naming clashes before it would work properly. In Xpath your query would look like this: [code] Dim node As … | |
Re: Hi, You can use a repeater control to do this. It has header, footer, item and alternatingItem templates that you can store the database info in. First use a dataAdapter to populate a dataTable, then set the dataTable as the data source of the repeater control and dataBind it. Then … | |
Re: Of course it is. Are the textboxes populated from a database or are they using user input? If working from a database you simply perform the calculation at the same time you populate the textboxes. If it is from user input and you don't want a button press to be … | |
Re: The .Net framework can use access database files (.mdb) without access being stalled so that are a possible solution. You might have to check if Jet is still installed on modern versions of Windows as I don't know if it is (windows 7 & 8). Otherwise you can set up … | |
Re: Are you using VS 2005? Because it is a known bug in that version. If possible you can try moving your build to a new folder. If you google the error for VS 2008 you will find other solutions ranging from deleting registry keys to increasing your memory page size. … | |
Re: Set up your connection to the database and a command object with your SQL statement in it. Execute the command on the database, storing the result in a string, and then set the text box.text to the extracted value. So, pseudo code (assuming mySql): [code] MySqlConnection conn = new MySqlConnection(/connection … |
The End.