1,576 Posted Topics

Member Avatar for Pride

If you are looking for a team to help work on a project you should chck out codeplex. You can list your project their and interested developers can sign up.

Member Avatar for hericles
0
236
Member Avatar for shers

If you are reloading the same page the values entered into the form are saved in the page postback. You just need to clear them out in the page load section textbox1.Text = "";

Member Avatar for jackandrew123
0
83
Member Avatar for cheesepotato

Add validation either client- or server-side to check the value of the textbox before proceeding. If the length of the input is too short or non-existent then stop and inform the user.

Member Avatar for Begginnerdev
0
161
Member Avatar for michael.vertreese

Your total won't match the numbers generated because you declare number to be equal to r.Next on line 17 and then add it to numberTotal on line 18. At line 23 you add number to numberTotal again (inside the loop so it does this 100 times) but you aren't changing …

Member Avatar for arunkumars
0
1K
Member Avatar for inderkalia
Member Avatar for hericles
0
42
Member Avatar for mani508

Can you post up some code? If you have added a script manager and an update panel around the section you want to update via AJAX it should work.

Member Avatar for hericles
0
144
Member Avatar for esedee

I'm not sure I understand what you need but if you want to randomly alter one of the buttons in anyway then you first need to randomly select which button to alter. The Random type can help you there: Random rand = new Random(); int r = rand.Next(25); R now …

Member Avatar for HTCc
0
108
Member Avatar for Cameronsmith63
Member Avatar for Cameronsmith63
0
102
Member Avatar for vbmanDan

You aren't setting the connection property of the command object to be your connection object and so your command objec can't execute. If you handled the catch block with some sort of error message you would have been informed of this. Add command.Connection = connection just below where you declare …

Member Avatar for daniel955
0
204
Member Avatar for CriticalError

If you want to give a <pre> look to it just alter your table CSS rules to include a fixed width font like courier. Then the font will mimic your standard 'code as text' look.

Member Avatar for hericles
0
109
Member Avatar for abathurst

On the page reload could the code that populates your listbox be running again, doubling up the number of files listed? Debug your code and see how many items are being added to the hfc collection, it may be more than you think. Also, as an optimisation, you don't (shouldn't) …

Member Avatar for chunkbar
0
312
Member Avatar for Sadia fatima

If you need it to repeat in one direction only use: background-repeat: repeat-y (or repeat-x) If you want it to not repeat at all use background-repeat: no-repeat; This should be placed in the CSS file rather than entered as in-line style. Add it inside the body {} section.

Member Avatar for sania khan
0
3K
Member Avatar for Oxiegen

Have you closed all open connections when they are no longer needed? You could be hitting the connection pool limit and so the system is waiting for resources to be released. But, to be honest,you would probably be seeing connection timeouts as well as delays if that was the problem.

Member Avatar for Oxiegen
0
1K
Member Avatar for arctushar

That site is using HTML5, CSS3 and jQuery. You'll need to learn all 3 to get that kind of effect.

Member Avatar for hericles
0
67
Member Avatar for AHMED_DB

Does any of your variables that you are trying to add include the dollar sign ($)? The script is treating your variables are strings rather than numbers which is probably happening because at least one of them can't be converted and so they are being concatenated. Also, (salesPrice <= 25)? …

Member Avatar for Airshow
0
164
Member Avatar for newbie14

If you don't want a gap between the divs reset the margins and padding to zero using CSS. You can also use the overflow: scroll rule on the gpsDataDiv. It will stay at a max height of 400px but if the content is longer than that a scroll bar will …

Member Avatar for yoyokapil
0
91
Member Avatar for revelator

Hi revelator, I want to ask a quick question and I intend no offense by it, I'm just interested: What was the structure and focus of this bachelor degree in computer applications if, at the end of it, you are 'bad at programming'? Was it a 3 year year degree? …

Member Avatar for revelator
0
192
Member Avatar for davidmoffitt1

Post up some code and we'll have a look. My initial thought is that your first selector in the external file has a mistake in it.

Member Avatar for JorgeM
0
140
Member Avatar for JerrodYoung

The problem is that you aren't storing the result of the first query in a temporary table of the database, you're storing it in a dataset in memory. The database has no knowledge that the dataset exists. What I don't understand is why you are selecting the data out first …

Member Avatar for hericles
0
320
Member Avatar for Jigs28

To send an email is fairly easy. First you need to import the System.Net.Mail namespace to get access to everything you need. Then you create an instance of an SmtpClient (which you provide with the details regarding the email account that will be sending the email) and a MailMessage instance …

Member Avatar for GarryHillton
0
1K
Member Avatar for MaddTechwf

Set the autoPostBack for the semester drop down to true (I think it is already) and add the onSelectedIndexChanged event to your code behind. Now when the value in the semester drop down is changed that method will fire and you can make whatever changes you need to the housing …

Member Avatar for ronitmathurseo
0
2K
Member Avatar for barnum

I think the issue lies in here: > After the search, I do a lot of GUI stuff to display the result. What you do here probably holds the reason the texbox loses focus and it takes two alt-tabs to get back to it. What exactly do you do then?

Member Avatar for barnum
0
1K
Member Avatar for lhsunshine

There are several ways you can use Paypal on your site, it all depends on whether you want to use their shopping cart and session management or your own and whether you want your users to be redirected to paypal or stay within your site (except for the final payment). …

Member Avatar for Jassi sharma
0
477
Member Avatar for ppstyle

First up, you haven't explained what the problem you are having is (that always helps for future reference). But in your BtnChangePass method you are only selecting from the database and then saying the password has been changed. Where are you doing the actual update of the database?

Member Avatar for hericles
0
213
Member Avatar for gahhon

When you run the project in debug mode (or normally if you have set exceptions) what error messages do you get (if any)? If you get an error it will tell you if it is caused by the connection to the database or something else.

Member Avatar for gahhon
0
254
Member Avatar for sania khan

If lblResult.Text is always zero then this code is not being hit: if (TextBox1.Text == abc && TextBox10.Text ==fgh ) { lblStatus.Text = "***Data Already exist***"; count = 1; return; } as count is never being incremented. If equipment_name and vendor_name mark a unique item why don't you check for …

Member Avatar for sania khan
0
141
Member Avatar for satti

If the strings are always the same size and the data you need always in the same place the string.subString function will do that much easier. string.subString(startLocation, NoOfCharactersToReturn) ' for your particulat string dim part = string.subString(7,3)

Member Avatar for Reverend Jim
0
134
Member Avatar for poojavb

If you are using sql server and only have one instance installed then the default name is your computer name. Only when you install extra instances do they need to have actual, unique names supplied and then you can open up the SQL Management tool to view them.

Member Avatar for poojavb
0
824
Member Avatar for rd009

How can it save the data but the data not be visible in the database? Is it just saving the last row of data from the gridview?It looks like you are running through all of the rows of the datagrid, setting the parameters to the values from each row (overwriting …

Member Avatar for jezguitarist30
0
4K
Member Avatar for Rubinder singh

If you are talking about Windows Forms then the button control has an Image property, you can set that to any image you have residing on your computer. Flashy buttons can be created in Photoshop (costs for a copy) or the the Gimp (free). You can find plenty of free …

Member Avatar for skatamatic
0
317
Member Avatar for sania khan

If the textboxes are being populated with the data then you know the SQL statement is working. In that case, if it is just the checkboxes that aren't being checked the reader must be containing vallues that do not equal "Spot Purchase" or "Tendor Purchase". Debug your code at the …

Member Avatar for sania khan
0
2K
Member Avatar for Oneryavuz

Check the format of the date information coming out of the database. It can appear as YYYY:MM:DD (particulary if you used an SQLfunction to enter the date in the first place) so searching for 03.07.2012 won't find anything. That tripped me up once.

Member Avatar for Oneryavuz
0
908
Member Avatar for ravidaniweb

You haven't told us the error (which helps us for future reference) but I'm going to say the command object isn't working because you haven't provided it with the connection object. Do this with command.Connection = conn;

Member Avatar for hericles
0
146
Member Avatar for itgrowsind

For ease of checking for matches, place your user's guesses in an integer array (you can do it for the randoms to if you want) then use the array's Contains method to see if there is a match. int[] array = new int[4] {ran1, ran2,ran3, ran4}; int[] guesses = new …

Member Avatar for hericles
0
158
Member Avatar for dany12

Well, you can place two divs side by side if you use this CSS rule on both and the widths combined aren't too wide for the containing element. display: inline-block; Other use float: right; on the div you want on the right. Float can have some unexpected effects though depending …

Member Avatar for dany12
0
95
Member Avatar for dwinn

You shouldn't need to create your own Show method. The correct method is Show() - uppercase but the IDE should have corrected that for you. Delete the show() method you created, change the code in form1 to Show() and it should work.

Member Avatar for dwinn
0
2K
Member Avatar for bhagawatshinde

In the page directives at the top of your .aspx page you need to register the user control. <%@ Register TagName="whatever" TagPrefix="uc" Src="location_of_control_file" %> then in the page, where you want it to be, you reference it with the tagPrefix and the name. So, in my example it would be: …

Member Avatar for GarryHillton
0
166
Member Avatar for lucasalf11

In that case, you must be doing something wrong. Chris's advice is correct. You create an instance of the form and after that you can pass values to any controls in the form. Might be time to post up some code so we can have proper look.

Member Avatar for hericles
0
143
Member Avatar for hericles

OK, I've wasted 2 hours on this so it time to ask for help. I opened up my latest website that I'm working on (VS 2010) this morning and whenever I access a page that uses server side code I get errors like these: CS1061: 'System.Web.UI.WebControls.Image' does not contain a …

Member Avatar for hericles
0
208
Member Avatar for dejanc

The error on button 3 is because you are using the same SqlDataSource1 for each of the functions. You already added firstName as a parameter in the 2nd button click method so it doesn't need to be added again. The error on button 4 is because you try to access …

Member Avatar for hericles
0
146
Member Avatar for wildplace

The easiest way to make content center is to apply margin-left: auto; margin-right:auto; to the content you want to center. But for this to work the containing div (or whatever) must have a width specified. So, any content you want centered inside #content must have those rules added to them. …

Member Avatar for JorgeM
0
118
Member Avatar for napninjanx

Yep, you use <style></style> for CSS you want to include in your header file. If you want to use an external stylesheet you use <link href="style_sheet_location" />

Member Avatar for napninjanx
0
80
Member Avatar for napninjanx

external style sheets serve the same purpose as external javascript files; it supports the removal of presentation from functionality, keeping html separate from your css and javascript.

Member Avatar for hericles
0
74
Member Avatar for Commando123

The current date in MySQL can be used with the curdate function. In MS SQL use GETDATE (returns date and time). so thelast part of your SQL statement should be Trans_Date >= CURDATE()) or Trans_Date >= GETDATE()) You can find out plenty more options on either the MySQL reference site …

Member Avatar for TnTinMN
0
156
Member Avatar for bleedi

If you are using a streamreader and reading a line at a time you can use something like this: using (StreamReader sr = new StreamReader("File.txt")) { string line; while ((line = sr.ReadLine()) != null) { // your code } } Depending on how you are parsing it may or may …

Member Avatar for Ketsuekiame
0
638
Member Avatar for HibaPro

The standard select statement has the form of SELECT col_name1, col_name2, etc FROM table_name WHERE some_col = some_value; So you will want to store the selected option from the combobox and then add it to the SQL statement. You haven't given us much to go on, do you know how …

Member Avatar for poojavb
0
1K
Member Avatar for bhagawatshinde

You should see a scrollbar if you have set the Scrollable property to true and the content in the list view takes up more than the allowed content area.

Member Avatar for bhagawatshinde
0
77
Member Avatar for kumar89hitesh

It sounds like you aren't creating an HTML email. A plain text email will of course display the HTML code as it doesn't know what to do with it.

Member Avatar for milon09
0
87
Member Avatar for alanlee9898
Member Avatar for milon09
0
165
Member Avatar for mallikaalokam
Re: DBA

Iwould suggest you check the SQL error logs. They will hopefully tell you what is going wrong with the server starting. If you post the error up here we can probably help fix it for you.

Member Avatar for mallikaalokam
0
122

The End.