本文整理汇总了C#中System.Web.UI.HtmlControls.HtmlForm类的典型用法代码示例。如果您正苦于以下问题:C# HtmlForm类的具体用法?C# HtmlForm怎么用?C# HtmlForm使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
HtmlForm类属于System.Web.UI.HtmlControls命名空间,在下文中一共展示了HtmlForm类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: Boton_Excel_Dios_Click
protected void Boton_Excel_Dios_Click(object sender, EventArgs e)
{
StringBuilder sb = new StringBuilder();
StringWriter sw = new StringWriter(sb);
HtmlTextWriter htw = new HtmlTextWriter(sw);
Page page = new Page();
HtmlForm form = new HtmlForm();
GridView_Dios.DataSourceID = string.Empty;
GridView_Dios.EnableViewState = false;
GridView_Dios.AllowPaging = false;
GridView_Dios.DataSource = LBPD.Logica_Mostrar_Precios();
GridView_Dios.DataBind();
page.EnableEventValidation = false;
page.DesignerInitialize();
page.Controls.Add(form);
form.Controls.Add(GridView_Dios);
page.RenderControl(htw);
Response.Clear();
Response.Buffer = true;
Response.ContentType = "applicattion/vnd.ms-excel";
Response.AddHeader("Content-Disposition", "attachment;filename=data.xls");
Response.Charset = "UTF-8";
Response.ContentEncoding = Encoding.Default;
Response.Write(sb.ToString());
Response.End();
}
开发者ID:Gutylic,项目名称:Proyecto-Alfa,代码行数:27,代码来源:Precios_Dios.aspx.cs
示例2: PrintWebControl
public void PrintWebControl(Control ControlToPrint)
{
StringWriter stringWrite = new StringWriter();
System.Web.UI.HtmlTextWriter htmlWrite = new System.Web.UI.HtmlTextWriter(stringWrite);
if (ControlToPrint is WebControl)
{
Unit w = new Unit(100, UnitType.Percentage);
((WebControl)ControlToPrint).Width = w;
}
Page pg = new Page();
pg.EnableEventValidation = false;
HtmlForm frm = new HtmlForm();
pg.Controls.Add(frm);
frm.Attributes.Add("runat", "server");
frm.Controls.Add(ControlToPrint);
pg.DesignerInitialize();
pg.RenderControl(htmlWrite);
string strHTML = stringWrite.ToString();
string wstawka = Server.MapPath("~").ToString();
HttpContext.Current.Response.Clear();
HttpContext.Current.Response.Write(htmlToImage(strHTML, zmianaAdresu(wstawka)));
HttpContext.Current.Response.Write("<script>window.print();</script>");
HttpContext.Current.Response.End();
Response.Redirect("~/ListaImprez.aspx");
}
开发者ID:donor,项目名称:Projects,代码行数:32,代码来源:Wplaty.aspx.cs
示例3: PrintWebControl
public static void PrintWebControl(Control ControlToPrint, Control MyStyle)
{
StringWriter stringWrite = new StringWriter();
System.Web.UI.HtmlTextWriter htmlWrite = new System.Web.UI.HtmlTextWriter(stringWrite);
if (ControlToPrint is WebControl)
{
Unit w = new Unit(100, UnitType.Percentage);
((WebControl)ControlToPrint).Width = w;
}
System.Web.UI.Page pg = new System.Web.UI.Page();
pg.EnableEventValidation = false;
HtmlForm frm = new HtmlForm();
frm.Controls.Add(MyStyle);
pg.Controls.Add(frm);
frm.Attributes.Add("runat", "server");
frm.Controls.Add(ControlToPrint);
pg.DesignerInitialize();
pg.RenderControl(htmlWrite);
string strHTML = stringWrite.ToString();
HttpContext.Current.Response.Clear();
HttpContext.Current.Response.Write(strHTML);
HttpContext.Current.Response.Write("<script>window.print();</script>");
HttpContext.Current.Response.End();
}
开发者ID:tsandtm,项目名称:BOEdu,代码行数:26,代码来源:Prints.cs
示例4: RenderControl
public static string RenderControl(string path, object data)
{
Page pageHolder = new Page();
pageHolder.EnableEventValidation = false;
UserControl viewControl = (UserControl)pageHolder.LoadControl(path);
if (data != null)
{
Type viewControlType = viewControl.GetType();
FieldInfo field = viewControlType.GetField("Data");
if (field != null)
{
field.SetValue(viewControl, data);
}
else
{
throw new Exception("View file: " + path + " does not have a public Data property");
}
}
HtmlForm _form = new HtmlForm();
pageHolder.Controls.Add(_form);
_form.Controls.Add(viewControl);
StringWriter output = new StringWriter();
HttpContext.Current.Server.Execute(pageHolder, output, false);
return output.ToString();
}
开发者ID:jackiechou,项目名称:thegioicuaban.com,代码行数:29,代码来源:ControlExtenders.cs
示例5: PrintWebControl
public static void PrintWebControl(Control ctrl, string Script)
{
StringWriter stringWrite = new StringWriter();
System.Web.UI.HtmlTextWriter htmlWrite = new System.Web.UI.HtmlTextWriter(stringWrite);
if (ctrl is WebControl)
{
Unit w = new Unit(100, UnitType.Percentage); ((WebControl)ctrl).Width = w;
}
Page pg = new Page();
pg.EnableEventValidation = false;
if (Script != string.Empty)
{
pg.ClientScript.RegisterStartupScript(pg.GetType(), "PrintJavaScript", Script);
}
HtmlForm frm = new HtmlForm();
pg.Controls.Add(frm);
frm.Attributes.Add("runat", "server");
frm.Controls.Add(ctrl);
pg.DesignerInitialize();
pg.RenderControl(htmlWrite);
string strHTML = stringWrite.ToString();
HttpContext.Current.Response.Clear();
HttpContext.Current.Response.Write(strHTML);
HttpContext.Current.Response.Write("<script>window.print();</script>");
HttpContext.Current.Response.End();
}
开发者ID:manivts,项目名称:impexcubeapp,代码行数:26,代码来源:PrintHelper.cs
示例6: imgBtnExportarExcelArchivos_Click
protected void imgBtnExportarExcelArchivos_Click(object sender, ImageClickEventArgs e)
{
StringBuilder sb = new StringBuilder();
StringWriter sw = new StringWriter(sb);
HtmlTextWriter htw = new HtmlTextWriter(sw);
Page page = new Page();
HtmlForm form = new HtmlForm();
gvJobCancelacioneXTicket.AllowPaging = false;
gvJobCancelacioneXTicket.DataBind();
gvJobCancelacioneXTicket.EnableViewState = false;
page.EnableEventValidation = false;
page.DesignerInitialize();
page.Controls.Add(form);
form.Controls.Add(gvJobCancelacioneXTicket);
page.RenderControl(htw);
Response.Clear();
Response.Buffer = true;
Response.ContentType = "application/vnd.ms-excel";
Response.AddHeader("Content-Disposition", "attachment;filename=ArchivosDeProcedimiento.xls");
Response.Charset = "UTF-8";
//Response.Cache.SetCacheability(HttpCacheability.NoCache);
Response.ContentEncoding = System.Text.Encoding.Default;
Response.Write(sb.ToString());
Response.End();
}
开发者ID:jlaua,项目名称:WebHomologacion,代码行数:32,代码来源:wfrmTicketsEnEjecucionHostCertificacion.aspx.cs
示例7: imgBtnExportarExcelEjecucion_Click
protected void imgBtnExportarExcelEjecucion_Click(object sender, ImageClickEventArgs e)
{
StringBuilder sb = new StringBuilder();
StringWriter sw = new StringWriter(sb);
HtmlTextWriter htw = new HtmlTextWriter(sw);
Page page = new Page();
HtmlForm form = new HtmlForm();
gvIncidenciasBatch.AllowPaging = false;
gvIncidenciasBatch.DataBind();
gvIncidenciasBatch.EnableViewState = false;
page.EnableEventValidation = false;
page.DesignerInitialize();
page.Controls.Add(form);
form.Controls.Add(gvIncidenciasBatch);
page.RenderControl(htw);
Response.Clear();
Response.Buffer = true;
Response.ContentType = "application/vnd.ms-excel";
Response.AddHeader("Content-Disposition", "attachment;filename=ReporteIncidenciasBatch" + DateTime.Now.ToShortDateString() + ".xls");
Response.Charset = "UTF-8";
Response.ContentEncoding = System.Text.Encoding.Default;
Response.Write(sb.ToString());
Response.End();
}
开发者ID:jlaua,项目名称:WebHomologacion,代码行数:31,代码来源:wfrmDescargarIncidenciasBatch.aspx.cs
示例8: PrintWebControl
public static void PrintWebControl(Control ctrl, string Script)
{
StringWriter stringWrite = new StringWriter();
System.Web.UI.HtmlTextWriter htmlWrite = new System.Web.UI.HtmlTextWriter(stringWrite);
if (ctrl is WebControl)
{
Unit w = new Unit(100, UnitType.Percentage); ((WebControl)ctrl).Width = w;
}
Page pg = new Page();
pg.EnableEventValidation = false;
pg.StyleSheetTheme = "../CSS/order.css";
if (Script != string.Empty)
{
pg.ClientScript.RegisterStartupScript(pg.GetType(), "PrintJavaScript", Script);
}
HtmlLink link = new HtmlLink();
link.Href = "../CSS/order.css";
HtmlForm frm = new HtmlForm();
pg.Controls.Add(frm);
frm.Attributes.Add("runat", "server");
frm.Controls.Add(ctrl);
pg.DesignerInitialize();
pg.RenderControl(htmlWrite);
string strHTML = stringWrite.ToString();
HttpContext.Current.Response.Clear();
HttpContext.Current.Response.Write("<head runat='server'> <title>Printer - Bản in tại Support.evnit.evn.com.vn</title> <link type='text/css' rel='stylesheet' href='../CSS/order.css'><link type='text/css' rel='stylesheet' href='../CSS/style.css'></head>");
HttpContext.Current.Response.Write(strHTML);
HttpContext.Current.Response.Write("<script>window.print();</script>");
HttpContext.Current.Response.End();
}
开发者ID:trungjc,项目名称:quanlyhocsinh,代码行数:31,代码来源:PrintHelper.cs
示例9: btnexporttoexc_Click
protected void btnexporttoexc_Click(object sender, EventArgs e)
{
try
{
string sysDates = DateTime.Now.ToString("dd/MM/yyyy");
string FileName = sysDates;
string strFileName = FileName + ".xls";
btnSearch_Click(sender, e);
//GridViewExportUtil.ExportExcell(strFileName, Grdiworkreg);
string attachment = "attachment; filename=" + strFileName + " ";
Response.ClearContent();
Response.AddHeader("content-disposition", attachment);
Response.ContentType = "application/ms-excel";
StringWriter sw = new StringWriter();
HtmlTextWriter htw = new HtmlTextWriter(sw);
HtmlForm frm = new HtmlForm();
GridView2.AllowPaging = false;
GridView2.Parent.Controls.Add(frm);
frm.Attributes["runat"] = "server";
frm.Controls.Add(GridView2);
frm.RenderControl(htw);
Response.Write(sw.ToString());
Response.End();
}
catch (Exception ex)
{
ScriptManager.RegisterStartupScript(this, this.GetType(), "alert", "alert('" + ex.Message + "');", true);
}
}
开发者ID:manivts,项目名称:impexcubeapp,代码行数:34,代码来源:frmInvoiceDeliveryReport.aspx.cs
示例10: xlsport
public static void xlsport(GridView grd, string _fnm, Page p)
{
grd.Visible = true;
gridstrip(grd);
grd.DataBind();
HtmlForm form = new HtmlForm();
string attachment = "attachment; filename=" + _fnm + csclass.ranfn() + ".xls";
HttpContext.Current.Response.ClearContent();
HttpContext.Current.Response.AddHeader("content-disposition", attachment);
HttpContext.Current.Response.ContentType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
p.EnableViewState = false;
HttpContext.Current.Response.Charset = string.Empty;
System.IO.StringWriter stw = new System.IO.StringWriter();
HtmlTextWriter htextw = new HtmlTextWriter(stw);
form.Controls.Add(grd);
p.Controls.Add(form);
form.RenderControl(htextw);
HttpContext.Current.Response.Write(stw.ToString());
HttpContext.Current.Response.End();
}
开发者ID:freed0959,项目名称:HTS,代码行数:25,代码来源:ExportFile.cs
示例11: OnPreInit
protected override void OnPreInit(EventArgs e)
{
base.OnPreInit(e);
foreach (Control control in Controls)
{
if (regForm == null)
{
regForm = control as HtmlForm;
if (regForm != null) break;
}
}
if (regForm == null)
{
throw new ArgumentException("登录页面中至少添加一个服务器端表单");
}
window = new Window();
window.Title = "管理员注册";
window.Closable = false;
window.Icon = Icon.Key;
window.Width = 320;
window.Height = 185;
formPanel = new FormPanel();
formPanel.BodyStyle = "padding:20px;";
formPanel.Layout = "table";
formPanel.LayoutConfig.Add(new TableLayoutConfig()
{
Columns = 2
});
formPanel.Items.Add(new TextField()
{
FieldLabel = "用户名",
AllowBlank = false,
ColSpan = 2,
Name = "Username"
});
formPanel.Items.Add(new TextField()
{
FieldLabel = "密码",
AllowBlank = false,
ColSpan = 2,
InputType = Ext.Net.InputType.Password,
Name = "Password"
});
formPanel.Items.Add(new TextField()
{
FieldLabel = "确认密码",
AllowBlank = false,
ColSpan = 1,
InputType = Ext.Net.InputType.Password,
Name = "Password2"
});
window.Items.Add(formPanel);
regForm.Controls.Add(window);
btnReg = new KeyAddButton();
btnReg.Text = "注册";
btnReg.ID = "btnReg";
btnReg.OnClientClick = "App.direct.Reg({eventMask:{showMask:true,msg:'正在注册'}});";
window.Buttons.Add(btnReg);
}
开发者ID:dusdong,项目名称:BaseComponent,代码行数:59,代码来源:RegisterAdminPageBase.cs
示例12: Export
protected bool Export()
{
try
{
//Descargo el objeto tabla de la sesion con nombre "p_c" ó (Plan Operativo)
HtmlTable objTable = (HtmlTable)Session["p_c"];
//Instancio un objeto del tipo StringBuilder objsb
StringBuilder objsb = new StringBuilder();
//Instancio un objeto del tipo System.IO.StringWriter sw
System.IO.StringWriter sw = new System.IO.StringWriter(objsb);
//Instancio un objeto del tipo HtmlTextWriter htw
HtmlTextWriter htw = new HtmlTextWriter(sw);
//Instancio un objeto del tipo System.Web.UI.Page
System.Web.UI.Page pagina = new System.Web.UI.Page();
//Instancio un objeto del tipo HtmlForm
var form = new HtmlForm();
//Asigno valores a propiedades del objeto page instanciado
pagina.EnableEventValidation = false;
pagina.DesignerInitialize();
//Agrego el formulario instaciado a la coleccionde paginas
pagina.Controls.Add(form);
//Agrego el objeto tabla a la coleccion de controles del formulario instanciado anteriormente
form.Controls.Add(objTable);
//Realizo el proceso de renderizacion para los elementos agregados a la pagina instanciada
pagina.RenderControl(htw);
//Limpio el canal de respuesta para esta peticion
Response.Clear();
//Habilito el buffer
Response.Buffer = true;
//Asigno el tipo de contenido
Response.ContentType = "application/vnd.ms-excel";
//Asigno el nombre del documento a exportar en el header del response
Response.AddHeader("Content-Disposition", "attachment;filename=Plan_Operativo.xls");
//Asigno el tipo de charset "UTF-8"
Response.Charset = "UTF-8";
//Establesco la configuracion por defecto para la codificacion
Response.ContentEncoding = Encoding.Default;
//Realizo el proceso de escritura para el objeto objsb
Response.Write(objsb.ToString());
//Finalizo la respuesta
Response.End();
return true;
}
catch (Exception) { return false; }
}
开发者ID:MGGROUP,项目名称:BASICA,代码行数:57,代码来源:ReportMarcoLogico.aspx.cs
示例13: GetControlHtml
public string GetControlHtml(string controlLocation)
{
Page page = new Page();
UserControl userControl = (UserControl)page.LoadControl(controlLocation);
userControl.EnableViewState = false;
HtmlForm form = new HtmlForm();
form.Controls.Add(userControl);
page.Controls.Add(form);
StringWriter textWriter = new StringWriter();
HttpContext.Current.Server.Execute(page, textWriter, false);
return CleanHtml(textWriter.ToString());
}
开发者ID:davidalmas,项目名称:Samples,代码行数:12,代码来源:ScriptService.asmx.cs
示例14: imgBtnExcel_Click
protected void imgBtnExcel_Click(object sender, ImageClickEventArgs e)
{
StringBuilder sb = new StringBuilder();
StringWriter sw = new StringWriter(sb);
HtmlTextWriter htw = new HtmlTextWriter(sw);
Page page = new Page();
HtmlForm form = new HtmlForm();
gdUsuario.EnableViewState = false;
// Deshabilitar la validación de eventos, sólo asp.net 2
page.EnableEventValidation = false;
// Realiza las inicializaciones de la instancia de la clase Page que requieran los diseñadores RAD.
page.DesignerInitialize();
page.Controls.Add(form);
form.Controls.Add(gdUsuario);
page.RenderControl(htw);
Response.Clear();
Response.Buffer = true;
Response.ContentType = "application/vnd.ms-excel";
Response.AddHeader("Content-Disposition", "attachment;filename=datosHotel.xls");
Response.Charset = "UTF-8";
Response.ContentEncoding = Encoding.Default;
Response.Write(sb.ToString());
Response.End();
//Response.Clear();
//Response.AddHeader("content-disposition", "attachment;filename=Catalogo_Productos.xls");
//Response.Charset = "";
//Response.ContentType = "application/vnd.xls";
//StringWriter StringWriter = new System.IO.StringWriter();
//HtmlTextWriter HtmlTextWriter = new HtmlTextWriter(StringWriter);
//gvDatosAdmin.AllowPaging = false;
//Response.Write(StringWriter.ToString());
//Response.End();
}
开发者ID:kEpEx,项目名称:CreaturHotelListo,代码行数:49,代码来源:MostrarUsuarios.aspx.cs
示例15: TryGetControlFromXElement
// IXElementToControlMapper
public bool TryGetControlFromXElement(XElement element, out Control control)
{
if (element.Name.Namespace != Namespaces.AspNetControls)
{
control = null;
return false;
}
if (element.Name == _markerElementName)
{
control = _controls[element.Attribute("key").Value];
return true;
}
if (element.Name == _formElementName)
{
control = new HtmlForm();
element.CopyAttributes(control as HtmlForm, false);
foreach (var child in element.Nodes())
{
control.Controls.Add(child.AsAspNetControl(this));
}
return true;
}
if (element.Name == _placeholderElementName)
{
control = new PlaceHolder();
XAttribute idAttribute = element.Attribute("id");
if (idAttribute != null)
{
control.ID = idAttribute.Value;
}
foreach (var child in element.Nodes())
{
control.Controls.Add(child.AsAspNetControl(this));
}
return true;
}
throw new InvalidOperationException(string.Format("Unhandled ASP.NET tag '{0}'.", element.Name));
}
开发者ID:DBailey635,项目名称:C1-CMS,代码行数:49,代码来源:XEmbeddedControlMapper.cs
示例16: WriteAttributes
private void WriteAttributes(HtmlTextWriter writer, HtmlForm form)
{
if (form.ID != null)
writer.WriteAttribute("id", form.ClientID);
writer.WriteAttribute("name", form.Name);
writer.WriteAttribute("method", form.Method);
foreach (string key in form.Attributes.Keys)
writer.WriteAttribute(key, form.Attributes[key]);
string url = Page.Request.QueryString["postback"];
if (string.IsNullOrEmpty(url))
writer.WriteAttribute("action", Page.Request.RawUrl);
else
writer.WriteAttribute("action", url);
}
开发者ID:hemonnet,项目名称:hemonnet,代码行数:16,代码来源:FormAdapter.cs
示例17: btnExportErrors_Clicked
protected void btnExportErrors_Clicked(object sender, EventArgs e)
{
Response.Clear();
Response.AddHeader("content-disposition", "attachment; filename=ImportErrorList.xls");
Response.Charset = "";
Response.ContentType = "application/vnd.xls";
StringWriter stringWrite = new StringWriter();
HtmlTextWriter htmlWrite = new HtmlTextWriter(stringWrite);
HtmlForm newForm = new HtmlForm();
this.Controls.Add(newForm);
newForm.Controls.Add(gvErrorDetails);
newForm.RenderControl(htmlWrite);
Response.Write(stringWrite.ToString());
Response.End();
this.Dispose();
}
开发者ID:nehawadhwa,项目名称:ccweb,代码行数:17,代码来源:ImportACTSAT.aspx.cs
示例18: RetriveWebControl
public static string RetriveWebControl(String id)
{
Page pg = new Page();
pg.EnableEventValidation = false;
HtmlForm htmlForm = new HtmlForm();
pg.Controls.Add(htmlForm);
string path = @"\UserControls\maquina.ascx";
maquina control = (maquina) pg.LoadControl(path);
control.NomeMaquina = "Maquina "+id;
control.IdMaquina = int.Parse(id);
control.setaDados();
htmlForm.Controls.Add(control);
StringWriter output = new StringWriter();
HttpContext.Current.Server.Execute(pg, output, true);
return output.ToString();
}
开发者ID:andremidea,项目名称:Overview,代码行数:17,代码来源:Overview.aspx.cs
示例19: GetContactActivityPage
private string GetContactActivityPage(UserActivityView ctrlUserActivity, Contact contact, int messageCount)
{
var page = new Page();
var form = new HtmlForm { EnableViewState = false };
ctrlUserActivity = (UserActivityView)page.LoadControl(PathProvider.GetFileStaticRelativePath("SocialMedia/UserActivityView.ascx"));
InitTwitter(ctrlUserActivity, contact);
if (ctrlUserActivity.TwitterInformation.UserAccounts.Count == 0)
{
page.Controls.Add(new EmptyScreenControl
{
ImgSrc = WebImageSupplier.GetAbsoluteWebPath("empty_screen_twitter.png", ProductEntryPoint.ID),
Header = CRMSocialMediaResource.EmptyContentTwitterAccountsHeader,
Describe = CRMSocialMediaResource.EmptyContentTwitterAccountsDescribe,
ButtonHTML = String.Format(@"<a class='link underline blue plus' href='javascript:void(0);'
onclick='ASC.CRM.SocialMedia.FindTwitterProfiles(jq(this),""{0}"", 1, 9);'>{1}</a>",
contact is Company ? "company" : "people",
CRMSocialMediaResource.LinkTwitterAccount)
});
return RenderPage(page);
}
ctrlUserActivity.MessageCount = messageCount;
form.Controls.Add(ctrlUserActivity);
page.Controls.Add(form);
var executedPage = RenderPage(page);
if (ctrlUserActivity.LoadedMessageCount == 0 && ctrlUserActivity.LastException == null)
{
page = new Page();
//TODO
page.Controls.Add(new EmptyScreenControl
{
Header = CRMCommonResource.NoLoadedMessages,
});
executedPage = RenderPage(page);
}
return executedPage;
}
开发者ID:Inzaghi2012,项目名称:teamlab.v7.5,代码行数:45,代码来源:SocialMediaUI.cs
示例20: PrintWebControl
public void PrintWebControl(Control ControlToPrint)
{
StringWriter stringWrite = new StringWriter();
System.Web.UI.HtmlTextWriter htmlWrite = new System.Web.UI.HtmlTextWriter(stringWrite);
if (ControlToPrint is WebControl)
{
Unit w = new Unit(100, UnitType.Percentage);
((WebControl)ControlToPrint).Width = w;
}
Page pg = new Page();
pg.EnableEventValidation = false;
HtmlForm frm = new HtmlForm();
pg.Controls.Add(frm);
frm.Attributes.Add("runat", "server");
frm.Controls.Add(ControlToPrint);
pg.DesignerInitialize();
pg.RenderControl(htmlWrite);
string strHTML = stringWrite.ToString();
string wstawka = Server.MapPath("~").ToString();
string path = String.Format("{0}\\Images\\Rezerwacje\\{1}.gif", Server.MapPath("~"), Session["ZamowienieId"]);
//korzystanie z biblioteki websiteScreenshote
WebsitesScreenshot.WebsitesScreenshot _Obj = new WebsitesScreenshot.WebsitesScreenshot();
WebsitesScreenshot.WebsitesScreenshot.Result _Result = _Obj.CaptureHTML(htmlToImage(strHTML, zmianaAdresu(wstawka)));
if (_Result == WebsitesScreenshot.WebsitesScreenshot.Result.Captured)
{
_Obj.ImageFormat = WebsitesScreenshot.WebsitesScreenshot.ImageFormats.GIF;
_Obj.SaveImage(path);
}
_Obj.Dispose();
HttpContext.Current.Response.Clear();
HttpContext.Current.Response.Write(strHTML);
Session[Cart.Ident] = null;
HttpContext.Current.Response.Write("<script>window.print();</script>");
HttpContext.Current.Response.End();
Response.Redirect("~/ListaImprez.aspx");
}
开发者ID:donor,项目名称:Projects,代码行数:45,代码来源:CheckOut.aspx.cs
注:本文中的System.Web.UI.HtmlControls.HtmlForm类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论