1,576 Posted Topics

Member Avatar for srinidelite

And you're not going to give us any hints as to what the issue is? We'd be more inclined to help you if you point us in the right direction to start with

Member Avatar for adam_k
0
449
Member Avatar for judithSampathwa

Add this line: dpDOB.Format = DateTimePickerFormat.Short; to the code that draws the info from the database. Just place under the rest and it should work. The problem at the moment is that you only have it in the dateTimePicker code segment which is only getting called when you click on …

Member Avatar for judithSampathwa
0
361
Member Avatar for buvanarajamani

Running the same app twice at the exact same time to show sycnronisation issues? Can't you use one application with a couple of threads to do the same thing? At the very least you wouldn't have to jump between two IDEs.

Member Avatar for kvprajapati
0
108
Member Avatar for summerhui

Is the page list going to be static or dynamic? If the list can change over time the URLs will need to be stored somewhere. I'd be strongly inclined to use a database

Member Avatar for hericles
0
68
Member Avatar for RedexProGamma

Your textbox is never going to equal "00". It will equal "0" however when it counts down (1 - 1 = 0, 1 - 1 != 00). Also, at no point do you reset the seconds away from 00. E.g. 10.00.00 minus 1 sec doesn't seem to become 9.59.00 in …

Member Avatar for hericles
0
248
Member Avatar for rotten69
Member Avatar for lolsn0r

Here is an old function I used to create a random text string. [CODE] Random rand = new Random(); string pw = ""; Char[] chars = new Char[6]; int count = 0; while (count < 6) { chars[count] = (Char)rand.Next(97, 123); pw += chars[count]; count++; } [/CODE] The rand.Next(97, 123) …

Member Avatar for marsky
1
144
Member Avatar for bornwith

Your code seems to present the message box saying 'please enter a value' and then continues through the rest of the function after that. It doesn't exit to await new input. Also, you've nested your if loops. txtInWage.Text = "" is only tested if txtInHours.Text = "". Meaning txtInHours needs …

Member Avatar for bornwith
0
169
Member Avatar for shandoosheri

Once you have your files in a list you can loop through that list and use the getExtension method to return the file extension of each file. That will of course give you quite a few duplicates for each file type so you'd still need to filter that if you …

Member Avatar for shandoosheri
0
246
Member Avatar for rozerdun

You have to alter the names in some way. You can't have 2 files with exactly the same name in the same folder.

Member Avatar for vijay_myl
1
301
Member Avatar for nverma

Do you mean you want drag-and-drop functionality on your web page? Try jquery, there is a good example of the plug-in here: [url]http://jqueryui.com/demos/draggable/[/url]

Member Avatar for cocoll
0
424
Member Avatar for aalokwar

You have looked at the most likely causes given on the error page? And tried the 'things you can try' hints also on that page?

Member Avatar for hericles
0
242
Member Avatar for Vaikkundhnaair

Or try here: [url]http://msdn.microsoft.com/en-us/library/ms172541(v=vs.80).aspx[/url] Or, try typing windows smartphone development into google and find other links

Member Avatar for hericles
0
128
Member Avatar for shivya jain

If you're getting an actual error message it always help to post it up. It helps us know what is wrong. I'm guessing there is more than one value in the staffid table of the database. If so, then looping through them all is a waste of time if you …

Member Avatar for kingsonprisonic
0
114
Member Avatar for Srcee

Here is some code I used for an exercise program that recorded the user's workout (exercises, weights and reps) and stored it into an xml file under the "Weights" element. Essentially it locates the element I wish to add the data ito ("Weights"), creates the new nodes and adds the …

Member Avatar for hericles
0
166
Member Avatar for krunalkakadia

I think you need to explain yourself better. Do you mean how to retrieve the login details from a database to confirm they are registered users? What do you mean by 'any website'? When you say you want to save it to a text file I can only guess you …

Member Avatar for Atul Dhiman
0
176
Member Avatar for StevenSchaffner

Post some code up. You shouldn't have the code to retrieve the database info anywhere except being called by the search button if you want the user to add a filter and then evoke the search function. For the data to show up on loading the site you much have …

Member Avatar for Atul Dhiman
0
241
Member Avatar for LearnVB2010

There are a few things. For a start you are only closing the connection if iRdr is true. If the user name or password does not match the connection stays open. Thats wasteful. Secondly, you're inserting the actual text entered into the user name and password text boxes into your …

Member Avatar for debasisdas
0
178
Member Avatar for x2fair

You can simply break up the text by locating the relevant paragraph start points. For instance if you hit enter twice to designate a new paragraph you just need to locate the two carriage returns and line feeds in the text string. If what defines a new paragraph isn't that …

Member Avatar for Pgmer
0
300
Member Avatar for dorumonsg

If you are using firefox you can find the location of the cache by typing about:cache into the address bar. It will show you the folder location of the cache. The other browsers may have similar functions. Basically, you should get steered towards the AppData folder of your PC (on …

Member Avatar for dorumonsg
0
158
Member Avatar for restrictment

Well, what is accept.aspx doing with the posted data? You can't just send data to the URL and expect it do what you want with it. If you want to write to a file on the server, accept.aspx will need to get the posted data from the request and then …

Member Avatar for restrictment
0
1K
Member Avatar for djjavo

You could adjust your loop so the fourth iteration uses write instead of writeline or whatever n is if it isn't always 4). Or add proper error checking code to your code that reads the files so it can recover from encountering an empty line (the fact that it crashes …

Member Avatar for djjavo
0
171
Member Avatar for SoftwareGuy

Why would someone click on a textbox that is disabled anyway? The whole idea of disabling the control is to show the user they can't interact with it.

Member Avatar for hericles
0
2K
Member Avatar for adem87

Use a datagrid, a repeater or possibly a literal control dependng on how you want to display the results (and whether this is for a web page or form application). Catch your results from the database in a dataTable via a dataAdapter and link that to your chosen output control. …

Member Avatar for adem87
0
202
Member Avatar for StevenSchaffner
Member Avatar for StevenSchaffner
0
234
Member Avatar for Naveen2961

You are passing in a value from the TMtNm.Text textbox right? If that was empty you would get an error similar to that. I may be jumping the gun here but you also aren't taking care of many error conditions either. What if the material entered can't be found or …

Member Avatar for hericles
0
985
Member Avatar for garrettb

I guess you could stop all client side scripts be going into IE's advanced settings and turn off all scripts and download options, even images if you wanted to go that far. But that will still let server side code run - if you want to stop ALL processing of …

Member Avatar for hericles
0
208
Member Avatar for omarized

Everything seems OK when I looked over it except, of course, you aren't actually inserting the data into the database. After setting the command text you need to include the line: cmd.ExecuteNonQuery(); This is the command that places the data into the database. Also,you shouldn't enter the text provided by …

Member Avatar for Netcode
0
144
Member Avatar for Spacelama

You normally see that error when you have included a method to handle the ontextchanged in the code behind. You have ontextchanged="vNaam_TextChanged" but haven't got code specified to handle that event.

Member Avatar for hericles
0
206
Member Avatar for ismpk

Does the other computer have the .Net framework installed (rather than Visual Studio)? It says file not found. You know your code, what file could it be looking for and not finding?

Member Avatar for ismpk
0
208
Member Avatar for judithSampathwa

Depends how you want to store the zip codes and states. If you intend to track down and store the list yourself you will probably want to place it in a database. However, there are web services out there you could query with the zip code and get back the …

Member Avatar for judithSampathwa
0
149
Member Avatar for king03

If you want a quick and dirty solution, break your input into a character array and loop through it. For each character check if it isDigit(), if yes no change is required. Then check for the special characters you need to remove. Lastly check isUpper for the character. If false …

Member Avatar for duke_swh
0
390
Member Avatar for lcfjoertoft

Try this: [CODE] SELECT t2.date, t3.order FROM Table1 As t1 JOIN Table2 AS t2 JOIN Table3 AS t3 ON t1.userID = t2.userID AND t2.customerID = t3.customerID WHERE t1.userName = 'name'; [/CODE] Use the JOIN and ON statements to connect tables by the columns they have in common (userID for tables …

Member Avatar for hericles
0
152
Member Avatar for smartjugal

A better solution than saving the actual image itself in the database is to store the location of the image (its URL or file system location). Obviously to do that you need to have the column in the table set to accept varchar() and then just insert the URI of …

Member Avatar for smartjugal
0
111
Member Avatar for jigarsangoi

I'm guessing it is here: "SELECT * FROM Reg WHERE userid = 'u_name' AND password = 'pwd' " You aren't inserting the values of u_name and pwd here, you are inserting the text strings u_name and pwd. You need this: [CODE] "SELECT * FROM Reg WHERE userid = '" & …

Member Avatar for hericles
0
269
Member Avatar for Mits14

Select MAX(transac_num) FROM tblborrow will get you the highest value currently stored in that column so you might want to get that and display it in your label. I'm not sure if Access has the @@identity function the same as some other sql databases do. You would need to get …

Member Avatar for hericles
0
83
Member Avatar for kytro360
Member Avatar for kytro360
0
139
Member Avatar for Yogesh Pednekar

Are you actually using transactions in your code - blocking a user2's access to the data while user1 is modifying it? It sounds like you aren't which is causing your mismatched data

Member Avatar for hericles
0
169
Member Avatar for MrCapuchino

On page postback the page is retaining the initially loaded value because the database code is being called again. You will want your database code to be called inside this structure: if(!Page.IsPostBack) { // call code to populate from database } Now that code only runs when the page is …

Member Avatar for MrCapuchino
0
370
Member Avatar for hericles

Hey, I'm trying to catch the incoming request to my Tomcat server and redirect to another page (a servlet). I don't have Apache installed so no mod_rewrite will work (as I understand it). I need to redirect the incoming request aimed at a standard URL [url]http://www.somesite.com[/url] and send it to …

0
125
Member Avatar for auwi987

Have you debugged your code while running it? Is the if statement even being called? Because if neither of the if sections get entered then it would appear your dataReader is empty and cannot read.

Member Avatar for auwi987
0
107
Member Avatar for six_sic6

Is AutoPostBack set to true? Otherwise you may not be calling the SelectedIndexChanged method. You have the onclick="" element of the dropdownlist set correctly?

Member Avatar for six_sic6
0
194
Member Avatar for dennysimon

You're not using dgv1.Databind() after naming the datasource. That should fix it but you also say you 'think' the database table has data in it. Maybe you should check that too...

Member Avatar for dennysimon
0
266
Member Avatar for zoraster01

aldeene's code is a bit random. Why is there code to extract the user name from the database where the userName = txtUser.Text? It will only return what you already have - the entered user name. User is ALWAYS going to equal txtUser.text All that is really needed is, as …

Member Avatar for aldeene
-1
481
Member Avatar for indrish

Same post, different user... weird:) You need to use transactions. Transactions lock the records in use while one user is still altering them, blocking others until the resources are free again. You'll find plenty of examples online but basicallyyou begin a transaction, make your insertions, updates, deletes to the database …

Member Avatar for hericles
0
82
Member Avatar for vishalrane

You need to use transactions. Transactions lock the records in use while one user is still altering them, blocking others until the resources are free again. You'll find plenty of examples online but basicallyyou begin a transaction, make your insertions, updates, deletes to the database and then either commit the …

Member Avatar for vishalrane
0
136
Member Avatar for limskii

You can't break it into manageable chunks instead of dealing with the whole thing at once?

Member Avatar for adam_k
0
423
Member Avatar for unaiseek

For a start if the table name is tbaccession then the columns should be referenced as tbaccession.accno, etc not accno.tbaccession. You could also post up the actual error you are getting just to help us help you

Member Avatar for debasisdas
0
101
Member Avatar for vinaysrk919

Check out using session variables for recording the logged in status of a user. Each page can check the session state to see if the user is logged in or not and either redirects them to the login page or lets them view the page they are on. As for …

Member Avatar for idmIndia
0
191
Member Avatar for rosiec

I take users don't have to log in to your site or you wouldn't need to protect the comment box, normal log ins could take care of that. But all you need to do is add another text field to the page for the user to enter the password and …

Member Avatar for hericles
0
239

The End.