Featured post

c# - Usage of Server Side Controls in MVC Frame work -

i using asp.net 4.0 , mvc 2.0 web application. project requiremrnt have use server side control in application not possibl in noraml case. ideally want use adrotator control , datalist control. i saw few samples , references in codepleax mvc controllib howwver found less useful. can tell how utilize theese controls in asp.net application along mvc. note: please provide functionalities related adrotator , datalist controls not equivalent functionalities thanks in advace. mvc pages not use normal .net solution makes use of normal .net components impossible. a normal .net page use event driven solution call different methods service side mvc use actions , view completly different way handle things. also, mvc not use viewstate normal .net controlls require. found article discussing mixing of normal .net , mvc.

asp.net - Convert this PHP function to get server variables to VB .Net -


i having trouble getting server variables remotely in vb .net need mimic php function.

  function showvar($string) {  if(isset($_server[$string]))  {   echo "$string: ".rawurldecode($_server[$string])."\r\n";  } }  /*normal vars*/ showvar("http_accept"); showvar("http_accept_encoding"); showvar("http_accept_language"); showvar("http_accept_charset"); showvar("http_host"); showvar("http_keep_alive"); showvar("http_cookie"); showvar("http_ua_cpu"); showvar("http_referer");  /*important vars*/ showvar("http_user_agent"); showvar("remote_addr"); showvar("remote_host"); showvar("http_connection"); showvar("http_x_forwarded_for"); showvar("http_forwarded"); showvar("http_via"); showvar("keep_alive");   showvar("http_max_forwards"); showvar("max_forwards"); showvar("http_cache_control"); showvar("http_proxy_connection");  showvar("http_x_bluecoat_via"); showvar("http_pc_remote_addr"); showvar("http_proxy___________"); showvar("http_proxy____"); showvar("http_x_fwd_ip_addr"); showvar("http_x_host"); showvar("http_x_referer"); showvar("http_x_server_hostname"); showvar("proxy_host"); showvar("proxy_port"); showvar("proxy_request"); showvar("http_client_ip"); showvar("http_pragma"); 

can me pointed in right direction? atleast show me how return 1 variable. have searched everywhere

just use request.servervariables(variablename)

example request.servervariables("logon_user")


Comments

Popular posts from this blog

c# - Usage of Server Side Controls in MVC Frame work -

cocoa - Nesting arrays into NSDictionary object (Objective-C) -

ios - Very simple iPhone App crashes on UILabel settext -