Click here to Skip to main content
14,391,572 members
Rate this:
Please Sign up or sign in to vote.
See more:

I have some problems in 2010.

The first is how to add swf flash in aspx?
Is there any particular code because I just wanted to add a banner that's all.

The second is my login page. When users enter their id it will show up the main page and its for user bt. When admin enter their id it will enter the main page and I have to click admin site on the top hyperlink and it automatically logout and once I enter back admin password and then only it redirect to admin page.
How to make it like once user enter their password it redirect to user page and once admin enter admin password in the login it redirect to admin page

3rd problem is how to disable auto generate numbers because when I delete the old data in the add to cart, it never resets the number but keep continue from the the number I delete for example I delete 1-10 in a row when I enter new data it start from 11 but not from 1.

Please do assist me in this.
Thanks a lot.
Updated 24-Sep-11 8:55am
Rate this:
Please Sign up or sign in to vote.

Solution 1

Answer to third problem:

That is the way auto numbers work.

The fact what number is used should not be of interest at it should only be used to uniquely identify the record in the table. The number itself should have no meaning.

If you want to disable the auto number you can do so by changing the field type in your database, but if you do keep in mind that you will have to implement your own code to generate a number when a record is added to the table.
Philippe Mori 24-Sep-11 17:11pm
And if 2 users works with data at the same time, it will not works correctly in some case. For exemple your could select a number for one user and in the mean time another user do an operation that invalidate selected number before changes were committed.

Thus it is really not a good idea to not uses auto generated number.

You are asking for trouble by doing that.
Rate this:
Please Sign up or sign in to vote.

Solution 2

what about the login problem??can anyone solve for me???

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100