需要此帮助以备不时之需 [英] Need this help for kinda urgent

查看:86
本文介绍了需要此帮助以备不时之需的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨.

我在asp.net 2010中遇到了一些问题.

首先是如何在aspx中添加swf flash?
是否有任何特定的代码,因为我只想添加一个横幅即可.

第二个是我的登录页面.当用户输入其ID时,它将显示主页及其bt用户.当管理员输入他们的ID时,它将进入主页,我必须单击顶部超链接上的管理站点,它会自动注销,一旦我输入了管理员密码,便只能将其重定向到管理页面.
如何使其像用户输入密码后将其重定向到用户页面,而管理员在登录名中输入管理员密码后将其重定向到管理页面

第三个问题是如何禁用自动生成数字,因为当我删除添加到购物车中的旧数据时,它永远不会重置数字,而是保持从我删除的数字继续,例如,当我输入新数字时,我会连续删除1-10数据从11开始但不是从1开始.

请为此提供帮助.
非常感谢.

Hi.

I have some problems in asp.net 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.

推荐答案

第三个问题的答案:

这就是自动编号的工作方式.

使用什么数字这个事实不应该引起关注,它应该仅用于唯一地标识表中的记录.数字本身应该没有任何意义.

如果要禁用自动编号,可以通过更改数据库中的字段类型来实现,但是要记住,当将记录添加到表中时,必须实现自己的代码来生成数字.
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.


有关登录问题的信息?有人可以为我解决吗?
what about the login problem??can anyone solve for me???


这篇关于需要此帮助以备不时之需的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆