Ext pops up a panel panel information, Panel information read from the database __ database

Source: Internet
Author: User

<%@ Page language= "C #" autoeventwireup= "true" codebehind= UserInfo.aspx.cs "inherits=" GPM. UserInfo "%> <! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">

 

Using System; Using System.Data; Using System.Configuration; Using System.Collections; Using System.Web; Using System.Web.Security; Using System.Web.UI; Using System.Web.UI.WebControls; Using System.Web.UI.WebControls.WebParts; Using System.Web.UI.HtmlControls; Using Entity; Using Utility; Using Business; namespace GPM {public partial class UserInfo:System.Web.UI.Page {//user name public string UserName = string. Empty; User work number public string account = String. Empty; The user role name public string is part = string. Empty; User type public string usertype = string. Empty; Phone number public string phone = string. Empty; Department public string DepartMent = string. Empty; UserID public string UserID = string. Empty; protected void Page_Load (object sender, EventArgs e) {if (! Page.IsPostBack) {if (session["account"]!= null) {UserName = session[' account ']. ToString (); String Where = "Username=" + "'" + UserName + "'"; DataTable DT = new Business.User.UserInfo (). Getdatabyoption ("Users", where); if (DT. Rows.Count > 0) {account = DT. rows[0]["Industrynum"]. ToString (); Usertype = DT. rows[0]["Usertype"]. ToString (); DepartMent = DT. rows[0]["Department"]. ToString (); Phone = DT. rows[0]["Tel"]. ToString (); UserID = DT. rows[0]["UserID"]. ToString (); role = new Business.User.UserInfo (). Getrolebyuserid (UserID). Rows[0][0]. ToString (); }//getrolebyuserid}}}}

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.