1,576 Posted Topics
Re: Hi, If I understand your question the combo box will have the id in it (or maybe the user's name only) so you will get the selected item of the combo box and then use that value in the sql query. You can't use parameters for column names (unless I'm … | |
Re: All you have done here in create a new instance of Form1 and then closed that. There is no connection between the Form1 you have open and the new Form1 you created. You need to pass the reference to Form1 to Form2 when Form2 is created (or at some later … | |
Re: This is a bit late and you haven't posted any code but are you committing the animation after the movement has finished (via the commitAnimations method)? If not, the ship is moving with the animation command but it's actual location isn't changing so it is being redrawn in the intial … | |
Re: Are you asking for help with CSS styling and how to make the form look like that? If yes, place your form in a div (or more than one if that works better) and either use standard CSS properties or load up a background image. Is that the kind of … | |
Re: [NSString stringWithContentsOfFile: encoding: error] will read your csv file. Once you have your file into a NSString you can use componentsSeparatedByString: to split it as you need. For example, to split it into an array based on line feeds: `NSArray *lines = [csvString componentsSeparatedByString:@"\r\n"];` Hope that helps. | |
Re: Are you sure your first if statement is not the problem? Is the text displaying "Failed to add clinic"? If it isn't then your sqlite3_prepare_v2 statement is the problem and you'll need to find out what status code is being returned | |
Re: First thing to do is debug your code and make sure there are values to insert into the combo box after the selection statement has run e.g. check the reader isn't empty. | |
Re: What excatly do you mean by "displaying datagridview to another datagridview"? Are you trying to extract the data from the server for use in a datagridview or are you past that and trying to do something with displaying it on screen? | |
Re: Check if Staff2 has any rows. If zero rows then say no records found. [code] if(!dsSrcStaf.Tables("Staff2").Rows.Count() > 0) { // display "no records found" message } else { // the code you already have } But get rid of the message box saying search found:) No one wants to click … | |
Re: browser was second on the list;) Why not branch out into another coding language if VB.Net is too easy? Learn Ruby on Rails or get good at Java, objective C maybe? | |
Re: And what is the format of parts[]? Without that we don't even know which code branch is being hit. | |
Re: Have you got your folder structure the same on your host as on your local machine? | |
Re: The image is the top left is a .ico file (icon) so you need to look online and find a tool for converting animated GIFs to animated ICOs. I found one site but haven't tested it [url]http://www.animatedfavicon.com/[/url] They have an animated favicon though so I would expect it should work:) | |
Re: Move that code out of the form_load event into its own function. You can call that function from form_load to get the data at startup but you will also be able to call the code at anytime to get any new data (via a button that calls that function for … | |
Re: Hey, a new thread might have been better but never mind. An update statement requires a WHERE clause otherwise it will update all of the selected column. UPDATE table1 SET col1 = 'Some value';` will update all of the columns col1 so the rows read 'some value'. The WHERE clause … | |
Re: Try changin your requestedExecutionLevel to level="requireAdministrator". Once your program runs as Admin it should be able to access everything. Or alter your code to check real file info is coming back from your getFiles(). | |
Re: Are you asking how to send an email, store the info sent in a database or how to handle the confirmation part of the registration (or all of the above)? If you looked at each part individually on Google you would find the answers you need. | |
Re: Are you accessing an APIs that already exist or creating an API for your software? Most APIs come with some form of documentation to get you started so that is obviously the best place to start. Before we can really help you, do you know what access method the APIs … | |
Re: 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 = … | |
Re: We can't tell you your errors when we don't know what you have tried. And, besides that, the growing area of SEO is too complex to cover here. There are plenty of sites around now that explain the basics and how to implement your own SEO strategies. But make sure … | |
Re: Is it due to the overlapping selection lengths? You have 0 to 7 and 0 to 4 which obviously both include 0-4. | |
Re: Each combo box will have a selectedIndexChanged event which you can use to catch the selected option and then respond appropriately, in your case populating the second combobox based on the selection in the first. Does that make sense? | |
![]() | Re: You can use the arrayWithObjects method: data = [NSArray arrayWithObjects: your list of stuff, nil]; You need to include the nil, I can't tell you why... |
Re: This link should help you out: http://stackoverflow.com/questions/1938730/virtual-directory-not-being-configured-as-an-application-in-iis The error tells you what is wrong - the directory isn't configured correctly for IIS. Read the link or seearch the error in goolge and you'll find tutorials on how to make the directory an application. | |
Re: 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. | |
Re: Are you saying that after entering the data (employee ID) that it should be saved to the database and then the next time the app is started dropDownList2 is populated with the employee IDs? If so, then the dropDownList2 will need to draw the info out of the database and … | |
Re: Is the user ID in the table different from the ID you store in the session (their email by the look of it). As Mikey mentioned, if you are getting an error posting that up will help. | |
Re: When you debug it what line is causing the null error? If is the line strReturn = ConfigurationManager.ConnectionStrings("YourConnectionName").ConnectionString the error will be because in the app.config the connection string is named "MyConnName" not "YourConnectionName". | |
Re: I read, either interesting computer articles and new techniques if I'm in the mood or general fiction/non-fiction if I'm not, or play chess online. I recently started back on the X-box (and have really enjoyed the Mass Effect series and Portal 2 by the way). And, having 2 dogs, they're … | |
Re: All you need todo is stop the timer when thee task is complete and then perform an INSERT operation (or maybe an UPDATE if each user just keeps the one time e.g. a time to beat) to push the user and time into the database table. Is there a particular … | |
Re: Joins are intensive work for the datatbase to do and each subsequent join in the same query just makes it worse. If the search is a repeated one you could consider creating a view of that data and extracting that instead. Otherwise look for hints online for optimising both the … | |
Re: You can't just bypass a email provider's spam settings by tweaking your email. If you could spam filters would be useless. | |
Re: If you are referring to how the logo looks then you need to think about your audience and their possible cultural norms and background. So things like color can invoke certain moods or signify things and events. E.g. the colour yellow in most western countries means happiness or cowardice but … | |
Re: Unfortunately if you aren't sure if you should be using classes then this project is beyond your current skill set (sorry, but its true). Is this project an assignment for your study or an actual production piece of software? Either way I would suggest getting some .Net coding books out … | |
Re: 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 … | |
Re: Hi, In the selectedIndexChanged event of the first combo box you determine the selected index and include that into your SQL string. [code] string selectedTeam = comboBox1.SelectedItem.ToString(); string sql = "SELECT * FROM yourTable WHERE team = ?selectedTeam;"; cmd.CommandText = sql; cmd.Parameters.Add("?selectedTeam", MySqlDbType.Varchar); cmd.Parameters["?selectedTeam"].Value = selectedTeam; [/code] I'm assuming you … | |
![]() | Re: 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 … |
Re: google CCS only drop down menu and you will find plenty of examples. Javascript versions work just as well too. | |
Re: 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. | |
Re: 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 … | |
Re: 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 … | |
Re: 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? | |
Re: 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. | |
Re: 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. | |
Re: 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? | |
Re: 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 … | |
Re: 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. | |
Re: 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. … | |
Re: 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 … | |
Re: 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 … |
The End.