1,576 Posted Topics

Member Avatar for hericles

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 …

0
101
Member Avatar for juniorsilver

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 …

Member Avatar for adam_k
0
143
Member Avatar for projecttoday

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 …

Member Avatar for Micro_2001
0
417
Member Avatar for compulove

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.

Member Avatar for hericles
0
178
Member Avatar for noobies

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 …

Member Avatar for hericles
0
212
Member Avatar for StevenSchaffner

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 …

Member Avatar for icedome
0
110
Member Avatar for Blaasie

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 …

Member Avatar for hericles
0
78
Member Avatar for praveendasika

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.

Member Avatar for zabalex
0
132
Member Avatar for chaitali238

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?

Member Avatar for chaitali238
0
121
Member Avatar for arcobaleno
Member Avatar for dan555

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 …

Member Avatar for adam_k
0
179
Member Avatar for joy39

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.

Member Avatar for joy39
0
112
Member Avatar for noobies
Member Avatar for hericles
0
65
Member Avatar for Shwetha Dali

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 …

Member Avatar for hericles
0
395
Member Avatar for compulove

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 …

Member Avatar for codeorder
0
89
Member Avatar for compulove

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="" %>

Member Avatar for compulove
0
2K
Member Avatar for Mirfath

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 …

Member Avatar for Mirfath
0
297
Member Avatar for Erlendftw

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 …

Member Avatar for Erlendftw
0
110
Member Avatar for AndyPants

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 …

Member Avatar for AndyPants
0
476
Member Avatar for zainemma

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

Member Avatar for hericles
0
135
Member Avatar for Lycean

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...

Member Avatar for hericles
0
95
Member Avatar for vuyiswamb

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?

Member Avatar for vuyiswamb
0
262
Member Avatar for patel28rajendra

You want to have a simple mouse over effect or something more stylish like lightbox (larger image is displayed but background darkens)

Member Avatar for carrieathomer
0
142
Member Avatar for Shwetha Dali

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 …

Member Avatar for Shwetha Dali
0
119
Member Avatar for varoluscu_prens

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 …

Member Avatar for hericles
0
233
Member Avatar for KINGMAKER'S

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 …

Member Avatar for hericles
0
162
Member Avatar for JakeA

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 …

Member Avatar for TPBarnett
0
157
Member Avatar for Mohsin AITS

You're going to have to post up your code. We can't tell what you've done wrong by looking at the tutorial.

Member Avatar for hericles
0
56
Member Avatar for nice_candy

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)

Member Avatar for hericles
0
68
Member Avatar for noobies

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)?

Member Avatar for hericles
0
164
Member Avatar for kylelendo

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 …

Member Avatar for hericles
0
83
Member Avatar for andrewleighton

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 …

Member Avatar for andrewleighton
0
97
Member Avatar for yup790

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 …

Member Avatar for JamesCherrill
0
257
Member Avatar for jigarsangoi

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)?

Member Avatar for jigarsangoi
0
119
Member Avatar for rockout15

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.

Member Avatar for hericles
0
71
Member Avatar for malcomm

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 …

Member Avatar for malcomm
0
281
Member Avatar for rockout15

Do you have any more information? Does the current form hide but the log in form not display? Does nothing happen at all?

Member Avatar for rockout15
0
125
Member Avatar for pepyrs

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) …

Member Avatar for pepyrs
0
167
Member Avatar for naazsayed

Post up what you've done so far and we'll probably be able to help you out

Member Avatar for lolafuertes
0
193
Member Avatar for farashh

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.

Member Avatar for farashh
0
314
Member Avatar for dirnthelord

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 …

Member Avatar for dirnthelord
0
176
Member Avatar for sha2

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 …

Member Avatar for ddanbe
0
295
Member Avatar for naraza

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]

Member Avatar for G_Waddell
0
91
Member Avatar for gmonroyg

A mysql connection string is normally server="" database="" uid="" pwd="". I could be wrong but I didn't think data source was valid.

Member Avatar for gmonroyg
0
1K
Member Avatar for haanjae
Member Avatar for wajiha irfan

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 …

Member Avatar for thines01
0
101
Member Avatar for prit005

Obviously when you use the asp:Button its ID is set to "btnclick", right? Because it isn't in the code you posted above.

Member Avatar for kvprajapati
0
872
Member Avatar for kytro360

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]

Member Avatar for kytro360
0
729
Member Avatar for flaviu_xdv

Can't you simply do a string replace() on the resulting string to get the separator character you want?

Member Avatar for flaviu_xdv
0
219
Member Avatar for zainemma

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 …

Member Avatar for hericles
0
136

The End.