使用数据库和asp.net的代码 [英] code using database and asp.net

查看:89
本文介绍了使用数据库和asp.net的代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,任何人都可以将我要求的代码发送给我.
我的数据库中有学生详细信息...
如果我在文本框中输入学生姓名并单击按钮,则该特定学生的详细信息必须显示在单独的aspx页中....
请帮助我完成此任务..

hi everyone, can any one send me the code for my requirement.
i have student details in my database...
if i enter the student name in textbox and clicked on the button.that particular student details has to display in separate aspx page....
plz help me for this task..

推荐答案

这并不困难,但是由于这是家庭作业,因此您不会得到任何代码:

1)从后面代码中的文本框中读取文本
2)使用学生姓名设置一个Session变量.
3)使用Response.Redirect转到新页面.
4)在新页面的Load事件中,读取Session变量,然后从数据库中获取相应的记录.
5)将适当的页面字段设置为数据库值.
It isn''t difficult, but as this is homework, you get no code:

1) Read the text from the text box in the code behind
2) Set a Session variable with the student name.
3) Use Response.Redirect to go to the new page.
4) In the new page Load event, read the Session variable, and fetch the appropriate record from the database.
5) Set the appropriate page fields to the database values.


这篇关于使用数据库和asp.net的代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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