将ASP.NET GridView和其他控件绑定到邮戳Dot.Net程序包

由于客户的安全问题,我需要创建一个类似于“邮戳出站活动页面”的asp.net应用程序,但没有详细信息。

当我使用正确的服务器令牌时,我已经下载了Postmark DOT.NET软件包及其正常工作,但不知道如何将数据绑定到任何asp.net控件,例如GriwView,标签等。

整周都在尝试,看来我可能没有朝着正确的方向前进。


ASPX:

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="GridView.aspx.cs" Inherits="PMA1.GridView" Async="true" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">

<asp:GridView ID="GridView1" runat="server"></asp:GridView>

</form>
</body>
</html>

CS:

using PostmarkDotNet;
using System;
using System.Collections.Generic;
using System.Linq;
using system.web;
using system.web.UI;
using system.web.UI.WebControls;

namespace PMA1
{
    public partial class GridView : system.web.UI.Page
    {
        protected async void Page_Load(object sender,EventArgs e)
        {
            var client = new PostmarkClient("Server Token");

            var matchedSentMessages = await client
                .GetOutboundMessagesAsync(0,100,"","");
        }
    }
}

需要知道如何将ASP.NET控件绑定到邮戳DOT.NET包。

qq313987933 回答:将ASP.NET GridView和其他控件绑定到邮戳Dot.Net程序包

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/3133157.html

大家都在问