Advertisement
PepperoniPapaya

[mpi] random thoughts

Feb 6th, 2017
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. Get current SP user login name by SPContext.Current.Web.CurrentUser.LoginName
  2.  
  3. login_name
  4. -> tblCanbo.Where(strusername or adUserName).Select(intid)
  5. -> tblCanboDonvi.Where(intidcanbo).Select(intiddonvi)
  6. -> tbldonvitructhuoc.Where(intid).Select(strtreeid or strparentid or bitkieu)
  7.  
  8. \80\web.config
  9.  
  10. </appSettings>
  11. <connectionStrings>
  12. <add name="TestDBConnectionString" connectionString="Data Source=longthhust-pc;Initial Catalog=TestDB;Persist Security Info=True;User ID=longth;Password=123" providerName="System.Data.SqlClient" />
  13. <add name="NetOffice2013_VPCPConnectionString" connectionString="Data Source=portaldb.mpi.gov.vn;Initial Catalog=NetOffice2013_VPCP;Persist Security Info=True;User ID=longth;Password=l0nTH@2016" providerName="System.Data.SqlClient" />
  14. </connectionStrings>
  15. </configuration>
  16.  
  17. ----
  18. Why use hidden field?
  19. Find out distinction between
  20. + Hidden field
  21. + Viewstate
  22. + Postback data
  23. + Nothing??
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement