1,576 Posted Topics

Member Avatar for rgudgeon
Member Avatar for shandoosheri

The directoryInfo Class allows you examine the contents of folders and sub folders. You can read about how to use it here: [url]http://msdn.microsoft.com/en-us/library/system.io.directoryinfo(v=vs.71).aspx[/url]

Member Avatar for hericles
0
193
Member Avatar for agent154

You don't technically need one if your project is never going to be used outside your own software. The default one provided will suffice, you don't need to restructure anything. However, providing a namespace is painless and correct but the final choice is up to you.

Member Avatar for hericles
0
239
Member Avatar for MJRdz

Could it be as simple as including z-index in the CSS of the menu to make it display on top? I'm not familiar with this particular library so I'm guessing here:)

Member Avatar for hericles
0
137
Member Avatar for dr_iton

OK, firstly, does the program need to save the entered data each time or does the user simply enter all past fuels fills at the one time to get the average? The answer to this question determines whether you need to use a file to save the information. The algorithms …

Member Avatar for thines01
0
144
Member Avatar for yousafc#

Reading a tutorial on the net will probably help you more than any explanation you could get here but briefly: in object oriented programming a class allows you separate code into units (classes) for ease of reuse and to keep relevant code functions together. Say you created a class called …

Member Avatar for thines01
0
210
Member Avatar for lxXTaCoXxl

Is inputLength the length of the inputs array? Because I don't see how the two arrays would be of the same length. If I wanted to subtract 3 from 15 I'd have 2 numbers in the input array and only one in the operators array (the - sign). Yet you …

Member Avatar for thines01
0
160
Member Avatar for PF2G

You're going to have to doctor that query script a lot to make it fit your form - the two don't have that much in common. Do you know query? If not it may not be worth your time. Depending on the validation you need to do there are less …

Member Avatar for hericles
0
259
Member Avatar for slowly_but_sure

Well, for a start, what do you mean by 'not working'? Do you get an error message, is some functionality OK but not all of it or does it simply do nothing at all?

Member Avatar for slowly_but_sure
0
703
Member Avatar for Dharshika

Are you returning just one record from the database or a dataset? If one record you can place it into the text area using its .Text method (your text area is marked as runat="server" right?). E.g. textArea.Text = dataString; assuming you returned a string from the database a sample might …

Member Avatar for hericles
-1
93
Member Avatar for kurukshetra

This doesn't belong in this forum, there are other places it should have been posted. And, to my shame, I even tried to check it out only to find I can't. Check it out where?????

Member Avatar for hericles
-1
78
Member Avatar for archelle

You need to cast the returned object from executeScalar. Use the toString() method and it should work OK.

Member Avatar for adam_k
0
211
Member Avatar for shay_inter

I don't think you got the table details right. How you can insert phone number and duration into a table that holds user ID and password?

Member Avatar for shay_inter
0
99
Member Avatar for shivya jain

Thats a really big topic unfortunately. Seeing you already know how to code desktop software it won't be too big a leap however. Do you know HTML and CSS? Create a web project in visual studio and for each web page you'll see two files, the .aspx (which is the …

Member Avatar for hericles
-1
108
Member Avatar for kshahnazari

I think he means include the database in the installer. Right, is that what you mean? If yes, then this article is what you need [url]http://msdn.microsoft.com/en-us/library/49b92ztk.aspx[/url]

Member Avatar for hericles
0
94
Member Avatar for archelle

Way more information needed... What do you mean by edit your program? Are you entering or updating information? It is most likely your code connecting to the database if the error is related to changing data. Do you get any error messages?

Member Avatar for Pgmer
0
219
Member Avatar for zoro20002

You need to read and understand the concepts here: [url]http://msdn.microsoft.com/en-us/library/wkzf914z%28v=vs.71%29.aspx[/url] This explains events and how they are raised.

Member Avatar for GeekByChoiCe
0
240
Member Avatar for serdas

Where is the database residing? Is it externally hosted or within your network? And is the website internal or external to your network?

Member Avatar for manojsamtani
0
230
Member Avatar for deceivingrakesh
Re: SQL

Using SQL 2005 with VS 2008 is the same as using any other database, set your connection string correctly and your fine. Generally with SQL you have an instance of the SQL server installed. I'm not actually sure if simply including a SQL database file will work the same way …

Member Avatar for deceivingrakesh
0
118
Member Avatar for OshKosh

For a start I'm knot sure how you are going to insert into the database table with only one text box - I'm assuming you need to be able to add an author and book to the database. You already have a database connection done so the only thing left …

Member Avatar for OshKosh
0
282
Member Avatar for nizam27391

Are you trying to make a row cell of a different width to rows above or below? You would need to either place a new table inside your table row (which gets messy very quickly) or you could increase the number of columns in your table and use the colspan …

Member Avatar for jcarbillon
0
99
Member Avatar for TylerMTC

Try this string.format style instead: String.Format("{0:c}", Cost) will return $10.00. The $ is replaced by whatever symbol is specified by the locale setting. If you need it to be pounds regardless try Me.lblCost.Text = "" + String.Format("{0:n2}", Cost) which will give you a number to 2 decimal places with your …

Member Avatar for ChrisPadgham
0
140
Member Avatar for mrbungle

Use the app.config (or web.config for a web app). In the <Configuration> section of the app.config add this: [code] <connectionStrings> <add name="name_of_your_connection_string" connectionString="your_connection_string" providerName="System.Data.SqlClient" /> </connectionStrings> [/code] There you access it in code via: [code] Dim conStr As String = ConfigurationManager.ConnectionStrings(name_of_your_connection_string).ConnectionString; [/code]

Member Avatar for mrbungle
0
468
Member Avatar for libathos

Considering each table has a different range of columns and data types a stored procedure for each is probably required. If you could use the same insert procedure to insert the same data into several tables that begs the question of why you have these others tables in the first …

Member Avatar for libathos
0
381
Member Avatar for gerchi152

before loading the data into the listbox you need to call the .Clear() method on the listbox. This will remove the current data from the listbox. Without that it just appends the new data to what is already in there.

Member Avatar for gerchi152
0
1K
Member Avatar for dhanlak

You can check the jQuery site for known issues with browsers and operating systems but those guys work pretty hard to make sure there aren't many major browser compatibility issues.

Member Avatar for dhanlak
0
164
Member Avatar for bhagyap

Can you post up the code around that line? An overflow is normally due to problems with recursive calls, maybe an infinite loop, that kind of thing. Although it finally crashed out trying to perform that operation the error is probably being caused else where.

Member Avatar for bhagyap
0
233
Member Avatar for Shwetha Dali

When you say zoom do you mean display a larger image? Or do you want the image in zoom in through a range of ratios? Because a mouse over is either over the image or not. You'd have no control of the zooming -how would you stop at a particular …

Member Avatar for MagicToolbox
0
219
Member Avatar for Griff0527

You say you have 5 errors but you don't tell us what they are... You set the Prompt string within each button function and then place it in each element of the array - I'm not sure why. [code] Prompt = "Please enter grade scores one at a time"; for …

Member Avatar for Griff0527
0
2K
Member Avatar for lianpiau

If you simply want the text to be in uppercase after it is loaded or type use .ToUpper() on the entire string. If you want the user input to appear uppercase as they type, in the text box.OnTextChanged event get the last character typed, which will be the last character …

Member Avatar for hericles
0
69
Member Avatar for denmarkstan

Use background-repeat: no-repeat; or if you want it to repeat along one axis background-repeat: repeat-x background-repeat: repeat-y

Member Avatar for sufyan2011
0
357
Member Avatar for poojavb

So, I guess you also have a textbox where the name is entered and a button to submit the search. In the button click function take the name entered into the textbox and make that part of your SQL query (SELECT patientName FROM tableName WHERE patientName LIKE '?name' - where …

Member Avatar for poojavb
0
4K
Member Avatar for kavi4u

This article shows how to add user input screens to your set up project and use the input provided. it should cover what you need. [url]http://www.c-sharpcorner.com/UploadFile/ddoedens/CustomUI11102005042556AM/CustomUI.aspx[/url]

Member Avatar for hericles
0
55
Member Avatar for Nemo_NIIT

You're not using the data extracted in your datareader at all. You are setting up the connection and calling the executeReader method then leaping into the If statement. It is generating the error because you haven't entered "mobileno" and "password" into the two textboxes. You need to check if the …

Member Avatar for esmaeel2001
0
452
Member Avatar for nav07

Look into setting up cron jobs or scheduled tasks on your server. For a web page you can set a scheduled task to run at certain times, calling the web page and thereby running any scripts that are part of the page. If you are coding a program to run …

Member Avatar for thines01
0
117
Member Avatar for kamilacbe
Member Avatar for aldm

without seeing code it could be absolutely anything. You need to help us out if you want us to help you. But as a possible guess, does the link use any variables to build up its URL? Something that might not survive the page refresh and so isn't available the …

Member Avatar for hericles
0
197
Member Avatar for deva89

When you say you do not want the 'rest' to be visible what exactly is the rest? Extra rows from the database? Other controls on the screen? What? If it is rows from the database simply alter your SQL statement to select only the rows you want instead of using …

Member Avatar for kamilacbe
0
158
Member Avatar for SteveyD

It can be done, unfortunately I'm not an expert on it so my help is limited. You need to use the .Net reflection class. You can use this to examine a dll or class at runtime and from there call the right method. I'm sure Google can supply tutorials now …

Member Avatar for thines01
0
90
Member Avatar for falconsorceror

Use a loop to run through checking the dataset's 2nd col for the name, when a match is found get that rows first column. [code] Dim teamStr as String teamStr = comboBox value for(int x = 0; x < dsdg44.Rows.Count; x++) { if(dsdg44.Rows[x][1].ToString == teamStr) { // rank is now …

Member Avatar for falconsorceror
0
117
Member Avatar for nore

So you have used a dataAdapter to fill a dataTable. The items in the dataTable can be accessed using notation like this: [code] string sample = dt.Rows[0][1].ToString(); [/code] This is accessing the second element in the first row of the dataTable and storing it in a string variable. You can …

Member Avatar for nore
0
410
Member Avatar for tashee2007

Are you saying it calls the CheckBoxValidation twice? Because I can't see where that would happen. you only call the method with the True parameter. As a point of coding design you replicate code in your IF statment that you don't need to. Apart from UpdateCMD inside of InsertCMD the …

Member Avatar for tashee2007
0
403
Member Avatar for sigridish

I would check the format of the datetimepicker value against the format in the column for the database. The SQL statement is probably not finding a match on that criteria. You are also using checkBox1.Text in the SQL statement. Are you sure you don't want CheckBox1.Checked?

Member Avatar for sigridish
0
174
Member Avatar for Charles.m

If you want to alter the way the results look on the page you can always include HTML in your literal control and apply CSS classes. Much easier than XSLT. Or do you want to change the database output to XML?

Member Avatar for Charles.m
0
694
Member Avatar for tvone

You have multiple elements called Question and Diagnosis, some children of the other, which isn't good XML design. I prefer using Xpath for XML but you would need to fix your naming clashes before it would work properly. In Xpath your query would look like this: [code] Dim node As …

Member Avatar for hericles
0
188
Member Avatar for funkyphail

Hi, You can use a repeater control to do this. It has header, footer, item and alternatingItem templates that you can store the database info in. First use a dataAdapter to populate a dataTable, then set the dataTable as the data source of the repeater control and dataBind it. Then …

Member Avatar for sufyan2011
0
1K
Member Avatar for murali53

Of course it is. Are the textboxes populated from a database or are they using user input? If working from a database you simply perform the calculation at the same time you populate the textboxes. If it is from user input and you don't want a button press to be …

Member Avatar for sufyan2011
0
217
Member Avatar for galhajaj

The .Net framework can use access database files (.mdb) without access being stalled so that are a possible solution. You might have to check if Jet is still installed on modern versions of Windows as I don't know if it is (windows 7 & 8). Otherwise you can set up …

Member Avatar for rotten69
0
299
Member Avatar for kavi4u

Are you using VS 2005? Because it is a known bug in that version. If possible you can try moving your build to a new folder. If you google the error for VS 2008 you will find other solutions ranging from deleting registry keys to increasing your memory page size. …

Member Avatar for hericles
0
123
Member Avatar for rockout15

Set up your connection to the database and a command object with your SQL statement in it. Execute the command on the database, storing the result in a string, and then set the text box.text to the extracted value. So, pseudo code (assuming mySql): [code] MySqlConnection conn = new MySqlConnection(/connection …

Member Avatar for rockout15
0
77

The End.