c# 没有with 用法
Dim _Context as HTTPContext = HTTPContext.Current改为HTTPContext _Context=HttpContext.Current;

解决方案 »

  1.   

    private void DrawTitleBar(string title,string location)
    {
    HttpContext _context = HttpContext.Current;
    _context.Response.Write(" <table cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">");
    }
      

  2.   

    请问C#中类似wiht的用法有吗?因为这里中间还有有好大一段.Write
      

  3.   

    .write (" <font style=""font-family: Trebuchet MS, Arial; color: #FFFFFF; font-size: 10pt; font-weight: bold; text-shadow: #333333 1px 1px;"">")
    .write (" &nbsp;" & Title)这里的第二个.write里的内容怎么转换呀,其中Title是个变量名
      

  4.   

    晕with 的用法都不知道?比如
    with response
     .write ("xxx")
    end with里面的write 的.号前面就相当于默认于上面的with 指定的对象
    也就是说等同于 repsponse.write 这么简单还问别人怎么替换?自己换啊