如何通过使用用户配置从数据库中获取数据以在文本框中显示 [英] How Can I Get Data From Database To Display In Textbox By Using User Confiramtion

查看:76
本文介绍了如何通过使用用户配置从数据库中获取数据以在文本框中显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个登录页面和一些关于数据库中用户的数据





成功登录后我想要求用户确认天气等他想要检索数据或者我不能如何做到这一点请建议我

如果他点击确定

i想要在文本框中显示他/她的详细信息
如果不是

i想要什么都不做





提前谢谢请建议我Devs

i have a login page and some data about user in database



after successful login i want to ask user for confirmation like weather he want to retrive the data or not how can i do that please suggest me
if he click ok
i want to display the details of him/her in textbox
if not
i want to do nothing


thanks in advance please suggest me Devs

推荐答案

登录重定向的页面后,使用jquery弹出一个确认相同的确认。这可以在文档就绪或页面加载中完成。

如果用户单击ok然后调用c#或.cs中的方法来检索数据并将其绑定在页面中,或者显示页面正常。
After Login the page to which it is redirected, Popup a confirmation using jquery about the same. This can be done either in the document ready or in the pageload.
if the user clicks ok then call the method in c# or .cs to retrieve the data and bind it in the page or else display the page normally.


这篇关于如何通过使用用户配置从数据库中获取数据以在文本框中显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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