1,576 Posted Topics

Member Avatar for Amanpreet_1

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 …

Member Avatar for Amanpreet_1
0
413
Member Avatar for OCompany

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 …

Member Avatar for OCompany
0
267
Member Avatar for Carles_1

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 …

Member Avatar for dannyniu
0
154
Member Avatar for gahhon

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 …

Member Avatar for gahhon
0
146
Member Avatar for VUEKID

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

Member Avatar for hericles
0
217
Member Avatar for anisha.silva

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

Member Avatar for hericles
0
285
Member Avatar for Dili1234

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.

Member Avatar for sharls
1
599
Member Avatar for louieconde

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?

Member Avatar for hericles
0
45
Member Avatar for tomexlfc

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 …

Member Avatar for waseem.akhtar.3572
0
16K
Member Avatar for Pride

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?

Member Avatar for sashyn01
0
407
Member Avatar for nnayram

And what is the format of parts[]? Without that we don't even know which code branch is being hit.

Member Avatar for hericles
0
156
Member Avatar for lhsunshine

Have you got your folder structure the same on your host as on your local machine?

Member Avatar for jackmia404
0
107
Member Avatar for lcfjoertoft

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

Member Avatar for klausnew
0
321
Member Avatar for UKnod

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 …

Member Avatar for UKnod
1
189
Member Avatar for omoz4real

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 …

Member Avatar for garymedina
0
3K
Member Avatar for raaif

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

Member Avatar for Reverend Jim
0
2K
Member Avatar for tricket_7

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.

Member Avatar for tricket_7
0
315
Member Avatar for anisha.silva

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 …

Member Avatar for anisha.silva
0
108
Member Avatar for Oracle1986

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

Member Avatar for Oracle1986
0
170
Member Avatar for ranarockzz

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 …

Member Avatar for Jobsikd
0
398
Member Avatar for Fame95

Is it due to the overlapping selection lengths? You have 0 to 7 and 0 to 4 which obviously both include 0-4.

Member Avatar for Fame95
0
372
Member Avatar for AmrMohammed

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?

Member Avatar for AmrMohammed
0
152
Member Avatar for SamD34

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

Member Avatar for great_learner
0
344
Member Avatar for twentynine

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.

Member Avatar for abhishekabhi
0
146
Member Avatar for ratanji

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.

Member Avatar for Taywin
0
152
Member Avatar for shyleshs

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 …

Member Avatar for HunainHafeez
0
1K
Member Avatar for muhammad.waleed.9699

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.

Member Avatar for muhammad.waleed.9699
0
194
Member Avatar for androidz

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

Member Avatar for androidz
0
288
Member Avatar for PrimeOutsourcin

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 …

Member Avatar for Ene Uran
0
232
Member Avatar for gameover9

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 …

Member Avatar for hericles
0
333
Member Avatar for semicolon

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 …

Member Avatar for hericles
0
161
Member Avatar for swathys

You can't just bypass a email provider's spam settings by tweaking your email. If you could spam filters would be useless.

Member Avatar for Reverend Jim
0
153
Member Avatar for siyajoshi

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 …

Member Avatar for Smohil
0
94
Member Avatar for dineo.makgaretsa

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 …

Member Avatar for hericles
0
61
Member Avatar for system_Broken

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 …

Member Avatar for hericles
0
118
Member Avatar for sigridish

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 …

Member Avatar for Dili1234
0
623
Member Avatar for CriticalError

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 …

Member Avatar for hericles
0
79
Member Avatar for <M/>

google CCS only drop down menu and you will find plenty of examples. Javascript versions work just as well too.

Member Avatar for <M/>
0
91
Member Avatar for newbie1234

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.

Member Avatar for rotten69
0
149
Member Avatar for tricket_7

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 …

Member Avatar for notconfirmed
1
249
Member Avatar for <M/>

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 …

Member Avatar for <M/>
0
103
Member Avatar for achilleus1234

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?

Member Avatar for Reverend Jim
0
324
Member Avatar for deepak jois

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.

Member Avatar for hericles
0
80
Member Avatar for dirkleonschut

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.

Member Avatar for dirkleonschut
0
195
Member Avatar for squigworm

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?

Member Avatar for JorgeM
0
582
Member Avatar for vijayram

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 …

Member Avatar for Taywin
0
178
Member Avatar for abbas.aleryani

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.

Member Avatar for Cameronsmith63
0
463
Member Avatar for b.shravanirao

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

Member Avatar for hericles
0
381
Member Avatar for Gaving30

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 …

Member Avatar for M.Waqas Aslam
0
125
Member Avatar for danielgr

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 …

Member Avatar for danielgr
0
133

The End.