ASP.NET 问题。

无常名 2011-04-02 10:40:25

用C# ASP.NET实现图中的SSL功能。
不知如何下手,在网上查了很多,还是没看懂。
帮忙提供点好的资料,最好是有简单的例子或教程。
...全文
170 14 打赏 收藏 转发到动态 举报
写回复
用AI写文章
14 条回复
切换为时间正序
请发表友善的回复…
发表回复
无常名 2011-06-09
  • 打赏
  • 举报
回复
npatao 2011-05-27
  • 打赏
  • 举报
回复
请教大家,我有个随机的问题,我刚在学.net程序,有下到一个源码,就是随机抽取考卷的,下面是随机的,但是我想把随机改成不随机的,就是自动抽取前20条,排他们最开始的的输入顺序排列,该怎么样呢?谁能解答下:

下面是部分代码,请问要改哪些?
tx_extime.Value = Kminfo[3];
string lst = roandow_data(mySet.Tables[0].Rows.Count, int.Parse(Kminfo[1]));
txID.Text = lst;
txVuale.Text = Kminfo[2];
string[] lsts=lst.Split(';');
for (int i=0;i<lsts.Length;i++)
{
Table ntb = new Table();
TD1.Controls.Add(ntb);
TableRow ntr = new TableRow();
ntb.Controls.Add(ntr);
TableCell ntc = new TableCell();
ntr.Controls.Add(ntc);
Label nlb = new Label();
nlb.Font.Bold = true;
nlb.Font.Size = 11;
nlb.Text = (i+1).ToString() + "、" + mySet.Tables[0].Rows[int.Parse(lsts[i])]["q_question"].ToString();
ntc.Controls.Add(nlb);
ntr = new TableRow();
ntb.Controls.Add(ntr);
ntc = new TableCell();
ntr.Controls.Add(ntc);
RadioButtonList nrbl = new RadioButtonList();
for (char ia = 'A'; ia <= 'D'; ia++)
{
ListItem li = new ListItem();
li.Text = ia.ToString() + "、" + mySet.Tables[0].Rows[int.Parse(lsts[i])]["q_key" + ia.ToString()].ToString();
li.Value = ia.ToString();
nrbl.Items.Add(li);
}
nrbl.ID = "q_" + mySet.Tables[0].Rows[int.Parse(lsts[i])]["q_id"].ToString();
ntc.Controls.Add(nrbl);
}
Button1.Visible = true;
}
private string roandow_data(int allcount, int thecount)
{
Random rnd = new Random();
List<int> lst = new List<int>();
int i = 0;
string str = "";
while (i < thecount)
{
int j = rnd.Next(allcount);
if (lst.IndexOf(j) == -1)
{
lst.Add(j);
i++;
}
}
foreach (int j in lst)
{
if (str.Length == 0)
{
str = j.ToString();
}
else
{
str = str + ";" + j.ToString();
}
}
return str;

哪位能够解答下!!
无常名 2011-05-27
  • 打赏
  • 举报
回复
无常名 2011-05-27
  • 打赏
  • 举报
回复
伙计你不用吧~!~!没这么帮贴的啊~!
无常名 2011-05-06
  • 打赏
  • 举报
回复
哪位大侠帮帮忙啊~!
无常名 2011-04-02
  • 打赏
  • 举报
回复
[Quote=引用 3 楼 taomanman 的回复:]

参考
http://tech.techweb.com.cn/thread-388864-1-1.html
[/Quote]
C#代码里面怎么体现啊?
dong_very_good 2011-04-02
  • 打赏
  • 举报
回复
不太清楚。
webhermit 2011-04-02
  • 打赏
  • 举报
回复
无常名 2011-04-02
  • 打赏
  • 举报
回复
没有懂吗?
子夜__ 2011-04-02
  • 打赏
  • 举报
回复
安全套接层协议层

前个字请不要一起读。

配置IIS

参考
yaganblw 2011-04-02
  • 打赏
  • 举报
回复
四楼那什么意思
li358871791 2011-04-02
  • 打赏
  • 举报
回复
发送邮件时我们会使用ssl处理
client.EnableSsl = true;//经过ssl加密
无常名 2011-04-02
  • 打赏
  • 举报
回复

62,046

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。

希望和大家一起共同营造一个活跃、友好的社区氛围。

试试用AI创作助手写篇文章吧