f1 fan 16 Posting Whiz in Training

They do it in order of html appearance. There is a short help in adsense about multi unit ads and the best placement of them etc. And yes they still drop them if they cant fill the second and third

f1 fan 16 Posting Whiz in Training

Not had time to look over the code yet sorry. Couldnt you put a repeater in a user control and then you would be able to expand every one?

I cheat. I bought the Infragistics controls years ago as they save me so much time. They have had hierarachical grids for a few years in both win forms and asp.net.

I know its good to make your own, but why reinvent the wheel when there are other things that need doing :D

But if you do have the time then maybe worth thinking about writing the control from scratch based on the repeater rather than a user control?

f1 fan 16 Posting Whiz in Training

Dataadapaters. it is .net not just asp.net.

Use the built in csv driver to import straight into an ado .net dataset via a dataadapter.

Then you can export it into access.

f1 fan 16 Posting Whiz in Training

you can use a custom validator in .net or any of the built in ones. By default all validators run on the client and on the server if java is not enabled on the client, so that solves that problem straight away.

Depending on your exact needs you just need a few validators. To limit the dates in each box, you can use range validators. You can change the range depending on the DOB checkbox etc. You can also use a regex if you wish to check the whole date is valid too. Then use a summary to list all errors. Group them all together for the summary and link your postback button to the same group so they cannot click it until validated.

f1 fan 16 Posting Whiz in Training

the timer is doing its function i bet. But test is reset on each postback so will always be 1. for everyone to have the same function you should put test in the application cache (or store is somewhere outside of the session - maybe a db or file).

f1 fan 16 Posting Whiz in Training


I want to develop a software in C++, Java or VB to develop a software /tool

so he asks in a C# forum? lol

f1 fan 16 Posting Whiz in Training

array.remove wants the object to remove... so you would say math.remove(math(count)) which is a bit messy.

use the removeat (i think it is in vb too) which wants an index and would be math.removeat(count) which is cleaner.

f1 fan 16 Posting Whiz in Training

then one of three things has happened.
Either it didnt work in the first place and you made a mistake in that it compiled but didnt run. Or you ran it on a different pc. Or you have made a change to something on your pc (such as an updated axlead dll).

It cant find that control. It is looking for one that may not be in the package you unzipped or you have a different version on your pc which isnt working with it.

You could try adding the control to your toolbox. Drag a new instance to your form which will update any references. Build it. Then delete it from your form (which leaves the correct references in your project still). Active x controls and .net can be flakey at times.

f1 fan 16 Posting Whiz in Training

After I started making changes (I did NOT actually modify the code in any way, just removed some references from the project that were not in use)

One of the references you removed was in use by the axleadlib. Put them back and then get it running then remove them one at a time and test. the axleadlib has a dependency on something.

f1 fan 16 Posting Whiz in Training

I have extensive programming experience, especially .net and the .netcompactframework which is what we need to develop in for that os.

Send me a pm and we can start a discussion on your needs.

f1 fan 16 Posting Whiz in Training

it could be a firewall issue. if they are on the same network you might be closed down on your machine on port 80 if you are running windows firewall or someother on the machine. Most likely it is because they cannot find your machine name. you say you can ping the ip but have you tried pinging the machine name? I would think this is your problem. needs dns or wins setup on the network for them to see it

f1 fan 16 Posting Whiz in Training

I use wire transfers which vary in price or for small amounts i use Western Union. It is instant. Also in the USA (and i think Canada) you can do a lot online with Western Union. As i said the best way is always a wire transfer

f1 fan 16 Posting Whiz in Training

Michelle
I am not in a position to help you as yet sorry but wanted to point out a mistake on your website. At the bottom of the homepage it says last updated at midnight Jan 1st 1970.

Which makes all those models on your site about 60 now :-s hahaha.

Just thought i would point it out :)

f1 fan 16 Posting Whiz in Training

sms is complex and not free but can be done. There are gateways which you can setup with your provider. There is a way to do it via email and is usually mobilenumber@carrierssmsmail.tld i know them for usa but not for uk. I would think vodafone would be mobilenumber@vodafone.net.uk but dont quote me on it.

f1 fan 16 Posting Whiz in Training

you made a small error... you didnt set 'name' to anything.

Dim name as string
Dim item As ListItem = listbox_seatsbooked.Items.FindByText(name)
If Not item Is Nothing Then

need to be

Dim name as string = thebutton.tag  
'that is assuming you set the tag to be the seat number such as A1 on btna1, A2 on btna2 etc. 
Dim item As ListItem = listbox_seatsbooked.Items.FindByText(name)
If Not item Is Nothing Then
f1 fan 16 Posting Whiz in Training

You have to bear with me as i havent used 2003 in a long time. 2005 has the tabcontrol and i thought 2003 did. But i was using 3rd party tools too so they had them which is where my memory could be going wrong.

Anyway. It is basically a series of buttons that just look like a tab shape using an image. Then there are two ways you can respond depending on your needs. Either load all 4 forms in memory and when the relevant button is clicked use some clientside code (such as javascript) to display the relevant form/controls or use a normal server side postback and show the correct form depending on the button clicked.

You could always go so far as write your own usercontrol to do this for you (which is basically all the tools are anyway. Or depending on your needs... download VWD from microsoft which is the 2005 version and has all the new tools in it and is free (for a while)

f1 fan 16 Posting Whiz in Training

You using 2005 or 2003? Make use of the generic list in 2005 if you have it.
You cant do a split on your string it is too complex. But is easy enough to go through one character at a time and build up a string of numbers until you hit an operator. Add the number to the list and then the operator to the next index. then keep going until you finish the string (doing some error checking on the way of course).

Then comes the fun bit. But it is really traversing 2 arrays. One of math operators in priority order and the other your new array (i would go in reverse order on this one). Then it is a matter of finding a match and literally grabbing the two values either side, do the math and delete them and insertat the new value (remember to do the insert at otherwise it will be in the wrong place and it has to be one less than the index you found the operator.

something like (please excuse my code im a c# person and vb is rusty)

Dim result as string
for i = 0 to mathoperatorsarray.count -1

for j = calculationarray.count - 1 to 0 step -1
  If calcualationarray(j).value = mathoperatorsarray(i).value then
    result = somemathfunctionwhichyoucancall(calcualationarray(j-1),calcualationarray(j),calcualationarray(j+1))
'this will take the 2 numbers the operator, work out which operator it is and do the math and give you the result back
calcualationarray(j+1).remove
calcualationarray(j).remove
calcualationarray(j-1).value = result …
f1 fan 16 Posting Whiz in Training

Its been a while since i used the rtb and did anything like it. From memory though i think i had to select the last character and then unselect it without the rtb painting. I will look and see if i can get back to you with something more definite

f1 fan 16 Posting Whiz in Training

just to make it clearer using my other as an example (as it had double digits in it) 55+5*4^3 would go into an array as we said before:
array(0) = 55
array(1) = +
array(2) = 5
array(3) = *
array(4) = 4
array(5) = ^
array(6) = 3

Then traverse looking for ^. it says it is at index 5. So take the number at index 4 (=4) and the number at index 6 (=3) and perform the math (4^3) which gives you a result of 64. Delete indexes 4, 5, 6 so your array looks like this
array(0) = 55
array(1) = +
array(2) = 5
array(3) = *

and add the result (64) to index 4 (just happens to be on the end in this example). so your array now looks like this
array(0) = 55
array(1) = +
array(2) = 5
array(3) = *
array(4) = 64
Keep looking for the ^ in the rest of the array... there are none so move to the next math operator in the priority which is *. Traverse the array and look for it.. first instance is index 3. so take the numbers at index 2 and index 4 and perform the math (5*64 = 320). Delete the indexes at 2, 3 and 4 and insert the new result at index 2 so your array now looks like
array(0) …

f1 fan 16 Posting Whiz in Training

ok that is complex. you will have to first break the string into an array but different to your example. if they entered 55+5*4^3 you would need to have an array such as...
array(0) = 55
array(1) = +
array(2) = 5
array(3) = *
array(4) = 4
array(5) = ^
array(6) = 3

Then you will have to keep traversing the array looking for the math rules in prioriy order probably in a reverse traverse (ie array 6 to array 0). in the order ^ * / - + etc.
so starting with ^ you would traverse the array until you found the first instance. This would tell you it was at index 5. You would then have to take the numbers at index 4 and 6 and perform the math on them. Then you would have to delete the values at 4, 5, and 6 and then insert the new result at index 4.

Then keep going until all the ^ have been completed. Then repeat for the next operator (*) and keep going. You should eventually have an array with just 1 item in it which will be your result.

Hope im clearer this time :) Though it is a totally different explanation than last time too :)

f1 fan 16 Posting Whiz in Training

They are pretty similar. Rule 1 of logins though.. never present anything to a user until authenticated so dont call your main form and then the login form.
In your app startup you could load (but not show) the main form. I prefer to use the MVC pattern and so i instantiate a controller... the constructor of the controller initializes the login and db connection. If login is successful then the controller will create the main form and away we go. If login is not successful then show a message box (or give them a couple of goes at it) and then close it all down. As you havent hit Application.Run yet the app will shutdown smoothly.

f1 fan 16 Posting Whiz in Training

Most chat clients dont write from the bottom up.

They write from the top down but when it is full they start to scroll. Is this a web or windows forms app?

f1 fan 16 Posting Whiz in Training

There is one way to send for free without using an sms gateway but you have to know the carrier the person is on. You can then send an email. Most are in the form of mobilenumber@carrierssmsemail.tld For example verizon is mobilenumber@vtext.com and most major carriers have similar.

f1 fan 16 Posting Whiz in Training

Thats making things difficult. Normally a calulator works it out on the fly. When you press 5 then + then 4 then the next key you press the display would show 9 while it waited for the next number. Basically there are two groups... a number and an operator and of course the running result.

Number keys can be mulitple to handle large numbers... eg. 5 6 6 4 but your cue that the number has finished is the operator key being hit (+ - / * = ). When you start the calculator you wait on a number key(s) and ignore an operator key. Once a number key has been pressed you display it and store it. Keep adding to it while more number keys are pressed until an operator key is pressed. That number is the running result. If an operator key is pressed again it overrides the previous one until a number key is pressed. Store the operator key and the new number key and keep adding number keys until a new operator key is pressed. When a new operator key is pressed you need to take your running result perform the stored operation on it with the new temp number and store (and display) the new running result and the new operator key and keep going. If the operator key is the = key then the next number hit clears the running result.

It sounds complicated on here but is very simple and no …

f1 fan 16 Posting Whiz in Training

I am not quite sure of your requirements.
You want a quiz and it has an id (say QZ1) and then you want a question with an id (say Q1) and then to associate it to the quiz... but you want to make sure that this question hasnt already been used?

If that is the case you need an association table (which i would use anyway so you could resuse the questions in other quizzes - ie you have a bank of questions and pull them out for a quiz - which is how most exams work anyway). So you have a table of quizzes each with their own id and a name (or whatever you need) and a table of questions (and probably a table of answers to the questions). Then a quiz-question association table which will have two columns (usually) one for the quiz id and one for the question id. Then make the two columns a primary key (that is the two columns together make one primary key). That forces the quizid, question id combination to be unique (and also fast for you searches etc). That way a question can only appear once in a quiz but can be in in other quizzes too as the quizid question id combination will be different.

If this is a bit confusing let me know and i will try and clarify

f1 fan 16 Posting Whiz in Training

Why do you need this? The session object is killed when they close the browser (i know you store information in there and may be worreid about it). Are you trying to achieve something else too?

There are occassions where you want to know when the client is gone, but not often (chat programs and instant messengers and the like). It depends who needs to know. You can get them to poll to know if they are there. But its an overhead on the network when you have a lot of clients.

There are a number of ways to do it, but if you let me know exactly what you are trying to achieve i can give you the best way to do it, in terms of performance and resources etc.

Like I said, think about it. For your movie app i dont think you would need to go to that extreme. Are you trying to release provisionally booked seats for others? If that is the case then the best way would be on a timer. For a person to book a seat there has to be a time window. You can log each postback time so you know the person is still transacting with you. After a respectable period of inactivity you can assume they are gone. Also you could use the timer principle from another post to prompt the user to continue the transaction or they will be timed out and the seat released (just …

f1 fan 16 Posting Whiz in Training

Paste that code above in your button click event.
In the second line - p.StartInfo.FileName=file;

replace the word "file" on the right of the equals with the name of your program you want to start such as 'notepad.exe' and it will do the rest. make sure it is a string and a fully qualified name so the system can find the file.

f1 fan 16 Posting Whiz in Training

You said you have 2 rows - one to left and one to right? Shouldnt they be columns? i got lost following all your code... couldnt you just post the part causing the problem so we dont have to wade through 300 <td>s and <tr>s? Couldnt you use divs instead? so much nicer and tables were never meant for layout. a div and css gives you much better control and so so so much easier to read :)

f1 fan 16 Posting Whiz in Training

i hate to say it but the ONLY thing that looks correct on there is the google search. On both firefox and ie it is aligned right. However the page is a complete mess on ie. The left side is all overlapping etc. I havent looked at your html, css or javascript. Like it or loathe it (i personally dont use it other than for testing) you have to use ie to check your site as the majority of users are using it. It really doesnt look nice in ie compared to FF.

But as for the original problem are you just not getting it over far enough to the right?

f1 fan 16 Posting Whiz in Training

it should be \i not /i for case insensitive in your re (first line of code) so you are possibly never getting a match. its is easy to miss as some others are / (for example /g for whole string)

f1 fan 16 Posting Whiz in Training

Either wrap the image in an anchor as Thomas said which will work for a click, or if you want it on mouse over as you say in your post you need to add a bit of javascript on mouseover for the image to open the new link. Personally i dont open links until they are clicked, as it would annoy the users to have thousands of windows open everytime they hovered over something

f1 fan 16 Posting Whiz in Training

The only way to achieve it when the server is down is to do some fancy dns and hope the updates propogate in time.

If you have a mirror site then dont leave it for times when the other is down. Make use of it and load balance, that way you should have a better chance if the primary goes down.

To be honest if it is that important to you (which most sites are) and you are worried about availability that you have gone to another mirror i would be inclined to look at your current primary hoster and see why they cant guarantee the uptime. Maybe look to move. Though you may be your hoster in which case i understand the dilemma and go back to my earlier point that you should load balance.

f1 fan 16 Posting Whiz in Training

Youre welcome and yes you have it. I would still advise that if you get time you move it over to stored procedures. They save on performance and security etc.

f1 fan 16 Posting Whiz in Training

The command builder object sees the changes in our data set and automatically makes the changes accordingly in the datastore. So with it we dont need insert statement.

You misunderstood that. The data adapter sees the rows that have been changed (it actually iterates through each table and checks the row state) and depending on whether the row state is one of added, modified or deleted it calls the appropriate command to do the work.
If you take a step back to think about it... it is impossible for the command to know which value you want to go where. It knows nothing about your database (it only knows to pass some string to the database - the command does not execute it nor check it - you could have set the string as "send me ten million us dollars and a pizza" and it would only fail when you tried to execute it (the database would fail not the command)). So you have to tell it. Trust me, i have been doing this for a long time and spend a lot of time writing each of the stored procs for SQL (well i dont - i have written a generator, but the generator spends a lot of time writing them and i spend a lot of time telling the adapter each one).

You have to write it. Humor me and try it.

f1 fan 16 Posting Whiz in Training

What are you using for your webpages? Dreamweaver? I use asp.net2 but i am sure i can make it work in other languages if you tell me. However i am also working on a feature on one of my sites that will allow you to email yourself (and forward for now but later will add the ability for you to copy others) any webpage. It only takes me a few lines of code. So maybe i will get it going in the next day or so and send you the link :)

If you use photoshop, up your resolution once you capture the image. A good screen resolution is 92 dpi. For print i go to 300dpi.

f1 fan 16 Posting Whiz in Training

your query is wrong, it isnt comma delimited you need a where clause made of logical operators. In your case you want all the rows WHERE the movietitle = @title AND moviedate = @date AND movietime = @time. You could have used ORs, or < or > or <> etc but in your particular case you wanted the rows that met all 3 requirments hence the ANDs. Follow me?

f1 fan 16 Posting Whiz in Training

Sorry but i havent used VB.NET since 2002 and not sure what isnt in there compared to C#. Glad you worked it though.

f1 fan 16 Posting Whiz in Training

Just to point out... you do know it is illegal right?

Anyway the best way to convert a cd is using any one of the many free players out there such as win media player, real audio player etc etc. All have built in rippers and support multiformats - though mp3 or wma will be your best bet. Then you upload to your site and put links in. One will be to play the file and the other would be to download the file. Not that i am paranoid, but i am, so i wont post the code here and be cited for aiding and abetting the ripping off the overpriced music industry.

f1 fan 16 Posting Whiz in Training

do you mean animated gifs? They can be made using a lot of standard photosoftware. Or you can build your own. Basically they are a set of still pictures with a timer in them to change the one showing to give the illusion of moving pictures. But then again all "moving pictures" are the same, just a series of stills showing one after the other. Broadcast standard is normally 24 frames per second (but can vary up to 30).

f1 fan 16 Posting Whiz in Training

try replacing that line with
da.SelectCommand.Parameters.AddWithValue("@title", DropDownMovie.SelectedValue)

it will add the parameter and then set the value. The other way would have been to call Parameters.Add and set the parameter and then use your other line to set the value, but the code above does both in one line so take advantage of it :)

f1 fan 16 Posting Whiz in Training

im very very very rusty on dreamweaver. However in HTML it is the "title" property you need to set. Put whatever text you want in there and when they hover over it the "tooltip" will show up. This is cross browser compatible.

However it is also limited. If you want some really nice roll over effects - check out the floating banners i offer my customers on one of my sites (www.worldsbiggestwebpage.com). Just hover over an image on there and you will see a whole new floating banner. It is cross browser compatible and uses javascrpt. I use asp.net to build them on the fly on this site but there is no reason why they cannot be hard coded too in html and the like.

f1 fan 16 Posting Whiz in Training

I forgot to mention, if you are interested in emailing a web page to someone i wrote a quick c# tutorial on it in the tutorial section here. If you are not a C# or asp.net programmer pm me and i will explain the basics and work out what you need to do.

f1 fan 16 Posting Whiz in Training

there are a couple of ways. The ALT Print screen is ok but you need a something like photoshop to up the resolution. Again it also depends on how you save it (png, bmp, jpg, gif etc). Also what resolution is the screen you are capturing on?

Another way is to copy the html source in the browser (or write code to do this for you). I tend to do this if i am sending it to someone rather than a screenshot. It all depends on what you are trying to show (i often send an html email or similar to a client, especially when the site in question isnt live and not possible to send a link).

f1 fan 16 Posting Whiz in Training

you need to use divs and stylesheets so it will be cross browser compatible and give you so much control. HTML is for content - CSS is for layout. If you try and stick to that you wont go far wrong.

Just as some constructive criticism - the color scheme makes it very hard to read. A lot of users will bounce on entry because of it.

f1 fan 16 Posting Whiz in Training

I am devloping Image Comparison Application in ASP.net which compares images irrespective of it's format,size and gives result in Percentage Format!!

I want to know whether it's possible to comapre 2 images using asp.net irrespective of their format,size and result should be in percenatge format like 80%-90% like that...And the criterias for comparison are not "image size,pixel by pixel comparison and height,width". But they are other than this!! Can anyone suggest criterias for such comparison?....

So you arent developing one. You want someone to do it all for you?

Notwithstanding that. Have you any idea on the complexity of the task? Before i go into too much depth - what is your level of programming capability? For a start do you know how images are stored?

f1 fan 16 Posting Whiz in Training

you havent written an insert, update or delete query. Just a select query. your cmd is a "select" command it ONLY knows about getting data. You need a new command for each of the CRUD actions you intend to do (you should in theory write one for each but if you know 100% you will never need a delete then you can leave it out). So you cannot call Update on a command whos SQL is a SELECT query.

Create a new command but this time an Insert Command (with Inser INTO sql or the name of an insert stored proc or query in your database.

I would recommend you use a data adapter and fill all 4 commands in and use this to do everything you need.

If you need more explanation let me know

f1 fan 16 Posting Whiz in Training

You didnt add the parameter to the da select command. You referenced it and set its value but it doesnt exist. In the line before you set the value you need to add a parameter with the name "@title". The command knows nothing about your sql query so you have to tell it everything including any parameters you want.

f1 fan 16 Posting Whiz in Training

Can you mark it as solved then please so we know. :)

f1 fan 16 Posting Whiz in Training

i think i am clear now :) you disable the key normally but when you have a field they need to fill in you want to enable it again? I would add two events to each textbox client side. The first is on enter call your javascript function you have but this time enable the key. The second would be on leave to call the javascript function you have that disables the key. That way you know it is only active for that textbox and you wont have to worry about other problems. You should be able to use the script you have already so i wont post one here.
The downside is you have to do it for each textbox, but it does give you more control (for example you wouldnt want to enable it on the form or it may go back when they are not in a textbox and hit the backspace key).

Hope it helps. Let me know if you need anything more

f1 fan 16 Posting Whiz in Training

Is it the users password or the application password? Its going to be tricky. Best place would be isolated storage and possibly some encryption but you wont stop a determined person finding it.

I would have to ask why you have the requirement. It is obviously not your pc so why wont you let me (for example) do whatever i want to my own pc? If it is crucial to have this information then store it where the average person cannot accidently delete it and make it known in the helpfile or whatever that they remove it at their own risk. You can only go so far at protecting things on other peoples pcs. It is their own after all. Its the same with anything else. I guess car manufacturers have hidden the fuel pump from the average driver, but if you are determined to remove it, dont complain when the car wont start.