1,576 Posted Topics
Hi, I'm trying to debug an android app on a fairly crap tablet I have (WonderMedia WM8650) but I can't get my linux machine to recognise the device.From what I've read its a matter of including the USB vendor ID into the 51-android.rules file but I can't find out the … | |
Re: Create another command object that deletes the code from the table immediately after the insertion code is called. But make sure you wrap your insertion and deletion in a transaction to ensure if something goes wrong with the insertion the code remains valid for the user to try again, instead … | |
Re: Hi, I'm confused. The specs say quite clearly that Office 2007 isn't supported but is that a problem? You don't intend to use it with Office do you, only your own program? If that program doesn't incorporate with Office 2007 you don't have a problem. The fact that Office 2007 … | |
Re: Most form controls have an 'enabled' property that you can set to false until the user is logged in as which time to switch them all to true. Buttons will be greyed out, text areas can't be clicked inside, etc. | |
Re: You say it doesn't compare both data. By that do you mean check the string version is less than DSO_para and then check that the double version is > DSO_para? Because you use ElseIF statement which won't check them both.. Or is it not comparing the string version against the … | |
Re: Hi, You can find plenty of code snippets on MSDN to help you with that. Here's one answer: [url]http://social.msdn.microsoft.com/forums/en-US/csharpgeneral/thread/91bd10ce-c83b-4766-920b-2137ddc29908[/url] As for saving the image, there are two things you can do; save the name (and possibly file location if it isn't consistent) of the image to the database and save … | |
Re: I think the easiest option might be to include a new table in your database that has the user ID and the time they executed the function (and other other functions that need the same restriction) and the function name. Then you can run a check against the table whenever … | |
Re: I may be wrong but from what I've read this isn't something you can request. Google applies it when your site reaches some level of page rank, authority or general market penetration. | |
Re: Are you referring to adding an existing item to the project in the VS IDE? And you want to do that programmatically when the project is running? Because that would be the same as uploading a file or image and saving it. Is that what you want to do? | |
Re: What exactly is no? Is it a column in the table? | |
Re: Use coalesce function of the ANSI standard.It will insert the value of count unless it is null, in which case it will insert your specified default value. [CODE] SELECT p.prod_id, desc, price, coalesce(count, 0) FROM product as p LEFT JOIN uiiage ON p.prod_id = uiiage.prod_id; [/CODE] The LEFT JOIN maes … | |
Re: You'll be coding not doing graphic design. As long as you know you have an issue with red/green colours you can work around it. I don't see that as a hinderance at all. | |
Re: Use a CSS class and toggle the visibility (display: none) using javascript | |
Re: Hi, you have logic errors in your code. You are loading up your dataTable with the data using the SQL statement: "Select * from admin" and then checking against the rows in the table in your foreach loop. You never use the command object to extract the users that match … | |
Re: Hi, Setting the text property to = "" will achieve the same thing. To spend up the process of coding it up (and make your code easily able to handle a growing number of textbooks) use this code in your Clear button [CODE] Dim ctrl As Control Dim txt As … | |
Re: Ae you using visual studio to build the pages? This should have been taken care of automatically. Your .aspx page needs a directive at the top pointing to the code behind file to use: <%@ Page language="C#" codebehind="your .cs file" inherits="" %> | |
Re: Are you referring to the exception code or the else for the dr.read()? Your catch block has an if loop in it which means if the catch block gets triggered it is not guaranteed to display that message. You don't break out of the function if either of the text … | |
Re: If you are getting an error please include it in the post; but one solution would be to put the results from the first reader into a dataTable instead of keeping the reader open - so you would be better off using a dataAdapter to fill the dataTable. Then loop … | |
Re: Hi, Break your search string into an array of words e.g. an apple would become an array with two items {"an", "apple"}. Check your second string for each item in the array by looping through it and if it is true in every case you have a match. [code] for(int … | |
Re: What line in your code throws the error? I'm guessing it is when you try to use data extracted from the database which would indicate something about the extraction isn't working, maybe an incorrect connection or the data isn't in the database on your production server | |
Re: So you aren't logging when the user's use the Internet? Your reduction function run once a day and check the log for who has actually logged in - it sounds like your logic is missing a very important step... | |
Re: Wouldn't this be more easily done using javascript if you just need to display the div? Does your text box or div have server-side code attached to it which makes client side inappropriate? | |
Re: You want to have a simple mouse over effect or something more stylish like lightbox (larger image is displayed but background darkens) | |
Re: Each question will have its own radio group so when the submit button is clicked you will need to go through each radio group and find the selected item. This will have to matched against the correct answer, possibly an array holding question number and correct answer. From there keeping … | |
Re: In terms of coding functionality there is little difference between a Windows form app and a web app. The code can do similar things. Think more about how you want to distribute the app, how/where the user will access it, user's level of competence (most people have grown accustomed to … | |
Re: You will want to use javascript. The onmouseover and onmouseout commands can be used to call the javascript functions you want to alter the image. A very simple example would be something like this: [CODE] <HTML> <HEAD> <TITLE>Untitled HTML Document</TITLE> <script language="javascript"> function largerPic() { var img = document.getElementById("image1"); img.src … | |
Re: If you have created the view in a nib file then you load the view from the current one. Inside the code for the button press you would have something like: [code] UIView *quizz = [[UIView alloc] initWithNibName: @"qizzView" bundle: nil]; [currentView addSubView:quizz]; [/CODE] Or possibly the superview would add … | |
Re: You're going to have to post up your code. We can't tell what you've done wrong by looking at the tutorial. | |
Re: Thats a client side action so you will want to use Javascript (unless you are planning on having a page refresh or AJAX call on every key stroke) | |
Re: Have you debugged this? Is the SQL code even being called? Where abouts in the page life cycle is this code being called (Page_load or else where)? | |
Re: Hi, I'm assuming the exam will be multiple choice to allow for automatic marking. You will need a database table with columns for question id, the actual question text, n number of columns for the text of the possible options (a,b,c,d, etc) and a column containing which answer is correct … | |
Re: Hi, For your first question, it should work fine depending on the logic you use of course. You could query strings or session to pass user data around if you need to move from page t page however. You can put a log in control wherever you want. I find … | |
Re: If you want to stay open source and platform independent Java is the way to go. But all the high level languages teach you the same skill set. Once good at one, you can pick up the others pretty easily. I know .Net the best and am capable at Java … | |
Re: Could you provide any more information on exactly what you want to achieve? Do you want the users to be able include smart tags in their searches (like before: and after: to limit by date for example)? | |
Re: A datagridview populated by a dataTable and and dataAdapter will probably be what you want. Check them out on Google, you're find plenty of tutorials to show you how they work. | |
Re: I had this problem once and although my solution probably isn't the correct one, I had a hidden field with a textbox (not a label) to hold the value. While label text updated via javascript doesn't seem to be available server side, the contents of a textbox is. Hope that … | |
Re: Do you have any more information? Does the current form hide but the log in form not display? Does nothing happen at all? | |
Re: How you retrieve the data from the database won't change but in terms of displaying it you could opt to use a repeater control (you've posted this in the asp.net forum so I'm guessing its a web app you're working on). Whatever you choose (a datagridview will work just fine) … | |
Re: Post up what you've done so far and we'll probably be able to help you out | |
Re: This is probably because div is a block element, it doesn't want to aline things side by side. Add display: inline-block to your css for the divs and they should start to line up properly. | |
Re: When you say view the details and all three should be connected,I take it that the main location would simply need access to the database of locations B and C so it view data. Connecting to different databases is simple. You could add functionality to location A's software to access … | |
Re: Its pretty simple. Put the usual user name and password textboxes on your form and one button. In the button code, connect to your database and see if the query to count the rows with that user name/password combination = 1. Typing "csharp login code" into Google got plenty of … | |
Re: The problem lies in incorporating TextBox2.Text directly into your SQL statement. Use parametised queries to avoid the issue. [CODE] string sql = "SELECT ID,Firstname,Lastname,Email,Username,Password from student where Firstname= ?name;"; cmd.Parameters.Add("?name", MySQLDbType.Varchar); cmd.Parameters["?name"].Value = textBox2.Text SqlDataAdapter adap = new SqlDataAdapter(cmd); [/CODE] | |
Re: A mysql connection string is normally server="" database="" uid="" pwd="". I could be wrong but I didn't think data source was valid. | |
Re: And your error message was...? | |
Re: Is this for a project of your own (i.e. on your own machine and you will be the only user) or an actual website posted live to other users? One option you could consider is posting the web page events to a database which the windows form checks at set … | |
Re: Obviously when you use the asp:Button its ID is set to "btnclick", right? Because it isn't in the code you posted above. | |
Re: I think you might want to handle the httpwebrequests asynchronously. The sleep() idea will never be the best option (at the least you would need to extend it to cover slow connections which leaves faster users needlessly waiting). Look here: [url]http://stackoverflow.com/questions/202481/how-to-use-httpwebrequest-net-asynchronously[/url] | |
Re: Can't you simply do a string replace() on the resulting string to get the separator character you want? | |
Re: You can use jQuery to make the contact section appear and disappear nicely. That way it would always be part of the page but invisible to the user until they click the button to make it appear. You could use straight CSS as well but jQuery has a prettier effect … |
The End.