我需要C#中的示例代码,以在完成的pdf文档的所有页面上插入背景图像.我正在使用iTextSharp库.
我的代码:
*的.aspx:
<asp:DropDownList ID="CountryList" CssClass="CountryList" runat="server"
OnSelectedIndexChanged="CountryList_SelectedIndexChanged" />
Run Code Online (Sandbox Code Playgroud)
*.aspx.cs:
protected void Page_Load(object sender, EventArgs e)
{
CountryList.SelectedIndexChanged +=
new EventHandler(CountryList_SelectedIndexChanged);
...
}
protected void CountryList_SelectedIndexChanged(object sender, EventArgs e)
{
LoadCityList(CountryList, CityList);
}
Run Code Online (Sandbox Code Playgroud)
但这不起作用.