Shaofh

Shaofh

随笔分类 -  Asp.net

使用ASP.NET获得AD帐号
摘要:使用ASP.NET获得AD帐号 “域\用户名”1.在IIS中将访问方式更改为不允许匿名访问2.在Web.config中将验证方式更改为 <identity impersonate="true"/> <authentication mode="Windows" />3.在源代码中使用 var1 = Security.Principal.WindowsI... 阅读全文

posted @ 2007-06-12 21:27 sh37 阅读(498) 评论(0) 推荐(0)

分页时使当前页码变色
摘要:''以下代碼放在DataGrid的ItemCreated事件中即可 Dim i As Integer If e.Item.ItemType = ListItemType.Pager Then Dim _labPage As Label Dim pager As TableCell pager = CType(e.Item.Controls(0), TableCell) For i = 0 To p... 阅读全文

posted @ 2006-09-05 16:57 sh37 阅读(441) 评论(0) 推荐(0)

自動生成帶文字的圖片
摘要:'str欲添加的文字 , width 圖片寬度,height圖片高度,filename 圖片名Private Function CreatePic(ByVal Str As String, ByVal width As Integer, ByVal heightAs Integer, ByVal filename As String) Dim bitmap As Bitmap = N... 阅读全文

posted @ 2006-07-07 14:53 sh37 阅读(1766) 评论(7) 推荐(0)

vb.net後台抓取網頁內容
摘要:Public Function GetContent(ByVal url As String) On Error Resume Next Dim XmlHttp As Object XmlHttp = CreateObject("Microsoft.XMLHttp") XmlHttp.Open("POST", url, False) ... 阅读全文

posted @ 2006-07-03 15:43 sh37 阅读(1202) 评论(0) 推荐(0)

DataTable 增加行
摘要:''''''''''''''''''''''''''''''''''''''''''''''''''''''''VB.net '' 阅读全文

posted @ 2006-05-25 16:10 sh37 阅读(576) 评论(0) 推荐(0)

导航