<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title><![CDATA[منتدى فيجوال بيسك لكل العرب | منتدى المبرمجين العرب  - مكتبة أكواد لغات الويب]]></title>
		<link>https://vb4arb.com/vb/</link>
		<description><![CDATA[منتدى فيجوال بيسك لكل العرب | منتدى المبرمجين العرب  - https://vb4arb.com/vb]]></description>
		<pubDate>Wed, 22 Apr 2026 18:23:22 +0000</pubDate>
		<generator>MyBB</generator>
		<item>
			<title><![CDATA[3D Text نص ثلاثي]]></title>
			<link>https://vb4arb.com/vb/showthread.php?tid=13192</link>
			<pubDate>Thu, 10 Sep 2015 14:57:10 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://vb4arb.com/vb/member.php?action=profile&uid=4643">أبو عمر</a>]]></dc:creator>
			<guid isPermaLink="false">https://vb4arb.com/vb/showthread.php?tid=13192</guid>
			<description><![CDATA[اعذروني على طرح هكذا موضوع بسيط<br />
لكنها لحاجة في نفس يعقوب  <img src="https://vb4arb.com/vb/images/smilies/shy.gif" alt="Shy" title="Shy" class="smilie smilie_7" /> <br />
<img src="http://lion.our-lab.net/sw/MARSOWL-PC/201593174324.png" loading="lazy"  alt="[صورة مرفقة: 201593174324.png]" class="mycode_img" /><img src="http://lion.our-lab.net/sw/MARSOWL-PC/201593174611.png" loading="lazy"  alt="[صورة مرفقة: 201593174611.png]" class="mycode_img" /><br />
<img src="http://lion.our-lab.net/sw/MARSOWL-PC/20159318044.png" loading="lazy"  alt="[صورة مرفقة: 20159318044.png]" class="mycode_img" /><br />
<br />

<br />
<img src="https://vb4arb.com/vb/images/attachtypes/zip.gif" title="" border="0" alt=".rar" />
&nbsp;&nbsp;<a class="attachembed" href="attachment.php?aid=7899" target="_blank" title="">3dtext.rar</a> (الحجم : 478 بايت / التحميلات : 39)
]]></description>
			<content:encoded><![CDATA[اعذروني على طرح هكذا موضوع بسيط<br />
لكنها لحاجة في نفس يعقوب  <img src="https://vb4arb.com/vb/images/smilies/shy.gif" alt="Shy" title="Shy" class="smilie smilie_7" /> <br />
<img src="http://lion.our-lab.net/sw/MARSOWL-PC/201593174324.png" loading="lazy"  alt="[صورة مرفقة: 201593174324.png]" class="mycode_img" /><img src="http://lion.our-lab.net/sw/MARSOWL-PC/201593174611.png" loading="lazy"  alt="[صورة مرفقة: 201593174611.png]" class="mycode_img" /><br />
<img src="http://lion.our-lab.net/sw/MARSOWL-PC/20159318044.png" loading="lazy"  alt="[صورة مرفقة: 20159318044.png]" class="mycode_img" /><br />
<br />

<br />
<img src="https://vb4arb.com/vb/images/attachtypes/zip.gif" title="" border="0" alt=".rar" />
&nbsp;&nbsp;<a class="attachembed" href="attachment.php?aid=7899" target="_blank" title="">3dtext.rar</a> (الحجم : 478 بايت / التحميلات : 39)
]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[كود ارسال email من بريد gmail مجرب وشغال ان شاء الله -)]]></title>
			<link>https://vb4arb.com/vb/showthread.php?tid=6424</link>
			<pubDate>Wed, 17 Oct 2012 19:05:24 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://vb4arb.com/vb/member.php?action=profile&uid=3403">Raggi Tech</a>]]></dc:creator>
			<guid isPermaLink="false">https://vb4arb.com/vb/showthread.php?tid=6424</guid>
			<description><![CDATA[<div style="text-align: center;" class="mycode_align"><span style="font-family: times new roman;" class="mycode_font"><span style="font-size: 5pt;" class="mycode_size"><span style="font-weight: bold;" class="mycode_b"><span style="color: #000080;" class="mycode_color">كاتب الموضوع : <span style="color: green;" class="mycode_color">سمير عبدالواحد<br />
<br />
</span></span></span></span></span></div>
السلام عليكم<br />
احتجت من بضعت ايام إلى ارسال إيميل من الموقع عن طريق استخدام إيميلي فى gmail <br />
فأرسل لى اخونا ابو عبد الباسط جزاه الله خيرا هذا الكود وهو شغال ومجرب<br />
حبيت انشره لكم للأفاده<br />
<br />
<br />
<div class="codeblock"><div class="title">كود :</div><div class="body" dir="ltr"><code>Dim mail As MailMessage = New MailMessage()<br />
mail.To.Add("any email")<br />
mail.From = New MailAddress("your gmail account")<br />
mail.Subject = "Email using Gmail"<br />
<br />
Dim Body As String = "&lt;b&gt;Hi&lt;/b&gt;, this mail is to test sending mail using Gmail in ASP.NET"<br />
mail.Body = Body<br />
<br />
mail.IsBodyHtml = True<br />
Dim smtp As SmtpClient = New SmtpClient()<br />
smtp.Host = "smtp.gmail.com"<br />
smtp.Credentials = New System.Net.NetworkCredential("your gmail account", "your gmail password")<br />
smtp.EnableSsl = True<br />
smtp.Send(mail)<br />
MsgBox("نجح الارسال")</code></div></div>]]></description>
			<content:encoded><![CDATA[<div style="text-align: center;" class="mycode_align"><span style="font-family: times new roman;" class="mycode_font"><span style="font-size: 5pt;" class="mycode_size"><span style="font-weight: bold;" class="mycode_b"><span style="color: #000080;" class="mycode_color">كاتب الموضوع : <span style="color: green;" class="mycode_color">سمير عبدالواحد<br />
<br />
</span></span></span></span></span></div>
السلام عليكم<br />
احتجت من بضعت ايام إلى ارسال إيميل من الموقع عن طريق استخدام إيميلي فى gmail <br />
فأرسل لى اخونا ابو عبد الباسط جزاه الله خيرا هذا الكود وهو شغال ومجرب<br />
حبيت انشره لكم للأفاده<br />
<br />
<br />
<div class="codeblock"><div class="title">كود :</div><div class="body" dir="ltr"><code>Dim mail As MailMessage = New MailMessage()<br />
mail.To.Add("any email")<br />
mail.From = New MailAddress("your gmail account")<br />
mail.Subject = "Email using Gmail"<br />
<br />
Dim Body As String = "&lt;b&gt;Hi&lt;/b&gt;, this mail is to test sending mail using Gmail in ASP.NET"<br />
mail.Body = Body<br />
<br />
mail.IsBodyHtml = True<br />
Dim smtp As SmtpClient = New SmtpClient()<br />
smtp.Host = "smtp.gmail.com"<br />
smtp.Credentials = New System.Net.NetworkCredential("your gmail account", "your gmail password")<br />
smtp.EnableSsl = True<br />
smtp.Send(mail)<br />
MsgBox("نجح الارسال")</code></div></div>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[فيديوهات (يوتيوبية) تعليمية للغة ASP.Net]]></title>
			<link>https://vb4arb.com/vb/showthread.php?tid=6423</link>
			<pubDate>Wed, 17 Oct 2012 18:59:55 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://vb4arb.com/vb/member.php?action=profile&uid=3403">Raggi Tech</a>]]></dc:creator>
			<guid isPermaLink="false">https://vb4arb.com/vb/showthread.php?tid=6423</guid>
			<description><![CDATA[<div style="text-align: center;" class="mycode_align"><span style="font-family: times new roman;" class="mycode_font"><span style="font-size: 5pt;" class="mycode_size"><span style="font-weight: bold;" class="mycode_b"><span style="color: #000080;" class="mycode_color">كاتب الموضوع : <span style="color: green;" class="mycode_color">kslawy<br />
<br />
</span></span></span></span></span></div>
<span style="color: seagreen;" class="mycode_color">السلام عليكم ورحمة الله وبركاته</span><br />
<br />
<span style="color: blue;" class="mycode_color"><span style="color: royalblue;" class="mycode_color">علي الرغم من أنني لا أفهم لغة ASP إلا أنني وجدت بالصدفة قناة يوتيوبية (باسم DeveloperExpress)</span></span><br />
<br />
<span style="font-weight: bold;" class="mycode_b">تضم القناة حتى كتابي لهذه المشاركة ما يقارب الـ (300) من الفيديوهات التعليمية :</span><br />
<span style="color: green;" class="mycode_color"><br />
* أغلب الفيديوهات للغة ASP مع وجود القليل منها للغة SilverLight و WPF .<br />
* مدة بعض الفيديوهات تصل إلي الساعة وأكثر .<br />
* المحاضرون في هذه الفيديوهات يبدوا أنهم من كبار المبرمجين (علا رأسهم الشيب وأصواتهم تخينه)<br />
* بعض الفيديوهات عبارة عن مقابلات مع برمجين كبار (كبير الله) .</span><br />
<br />
* <span style="color: red;" class="mycode_color"><span style="font-weight: bold;" class="mycode_b">جزاكم الله خير</span></span>]]></description>
			<content:encoded><![CDATA[<div style="text-align: center;" class="mycode_align"><span style="font-family: times new roman;" class="mycode_font"><span style="font-size: 5pt;" class="mycode_size"><span style="font-weight: bold;" class="mycode_b"><span style="color: #000080;" class="mycode_color">كاتب الموضوع : <span style="color: green;" class="mycode_color">kslawy<br />
<br />
</span></span></span></span></span></div>
<span style="color: seagreen;" class="mycode_color">السلام عليكم ورحمة الله وبركاته</span><br />
<br />
<span style="color: blue;" class="mycode_color"><span style="color: royalblue;" class="mycode_color">علي الرغم من أنني لا أفهم لغة ASP إلا أنني وجدت بالصدفة قناة يوتيوبية (باسم DeveloperExpress)</span></span><br />
<br />
<span style="font-weight: bold;" class="mycode_b">تضم القناة حتى كتابي لهذه المشاركة ما يقارب الـ (300) من الفيديوهات التعليمية :</span><br />
<span style="color: green;" class="mycode_color"><br />
* أغلب الفيديوهات للغة ASP مع وجود القليل منها للغة SilverLight و WPF .<br />
* مدة بعض الفيديوهات تصل إلي الساعة وأكثر .<br />
* المحاضرون في هذه الفيديوهات يبدوا أنهم من كبار المبرمجين (علا رأسهم الشيب وأصواتهم تخينه)<br />
* بعض الفيديوهات عبارة عن مقابلات مع برمجين كبار (كبير الله) .</span><br />
<br />
* <span style="color: red;" class="mycode_color"><span style="font-weight: bold;" class="mycode_b">جزاكم الله خير</span></span>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[لعمل اعادة توجيه Redirection]]></title>
			<link>https://vb4arb.com/vb/showthread.php?tid=6422</link>
			<pubDate>Wed, 17 Oct 2012 18:57:24 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://vb4arb.com/vb/member.php?action=profile&uid=3403">Raggi Tech</a>]]></dc:creator>
			<guid isPermaLink="false">https://vb4arb.com/vb/showthread.php?tid=6422</guid>
			<description><![CDATA[<div style="text-align: center;" class="mycode_align"><span style="font-family: times new roman;" class="mycode_font"><span style="font-size: 5pt;" class="mycode_size"><span style="font-weight: bold;" class="mycode_b"><span style="color: #000080;" class="mycode_color">كاتب الموضوع : <span style="color: green;" class="mycode_color">Boutemine Oualid<br />
<br />
</span></span></span></span></span></div>
<br />
<div class="codeblock"><div class="title">كود :</div><div class="body" dir="ltr"><code>[SIZE=2][SIZE=2]<br />
Response.Status = [SIZE=2][color=#800000]"301 Moved Permanently"[/color][/SIZE]<br />
[/SIZE][SIZE=2]<br />
Response.AddHeader([SIZE=2][color=#800000]"Location"[/color][/SIZE][SIZE=2], [/SIZE][SIZE=2][color=#800000]"http://www.new-url.com"[/color][/SIZE][SIZE=2])[/SIZE]<br />
Response.End()<br />
[/SIZE]<br />
[/SIZE]</code></div></div>]]></description>
			<content:encoded><![CDATA[<div style="text-align: center;" class="mycode_align"><span style="font-family: times new roman;" class="mycode_font"><span style="font-size: 5pt;" class="mycode_size"><span style="font-weight: bold;" class="mycode_b"><span style="color: #000080;" class="mycode_color">كاتب الموضوع : <span style="color: green;" class="mycode_color">Boutemine Oualid<br />
<br />
</span></span></span></span></span></div>
<br />
<div class="codeblock"><div class="title">كود :</div><div class="body" dir="ltr"><code>[SIZE=2][SIZE=2]<br />
Response.Status = [SIZE=2][color=#800000]"301 Moved Permanently"[/color][/SIZE]<br />
[/SIZE][SIZE=2]<br />
Response.AddHeader([SIZE=2][color=#800000]"Location"[/color][/SIZE][SIZE=2], [/SIZE][SIZE=2][color=#800000]"http://www.new-url.com"[/color][/SIZE][SIZE=2])[/SIZE]<br />
Response.End()<br />
[/SIZE]<br />
[/SIZE]</code></div></div>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[لجعل كلمة تظهر سميكة]]></title>
			<link>https://vb4arb.com/vb/showthread.php?tid=6421</link>
			<pubDate>Wed, 17 Oct 2012 18:56:59 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://vb4arb.com/vb/member.php?action=profile&uid=3403">Raggi Tech</a>]]></dc:creator>
			<guid isPermaLink="false">https://vb4arb.com/vb/showthread.php?tid=6421</guid>
			<description><![CDATA[<div style="text-align: center;" class="mycode_align"><span style="font-family: times new roman;" class="mycode_font"><span style="font-size: 5pt;" class="mycode_size"><span style="font-weight: bold;" class="mycode_b"><span style="color: #000080;" class="mycode_color">كاتب الموضوع : <span style="color: green;" class="mycode_color">Boutemine Oualid<br />
<br />
</span></span></span></span></span></div>
الساام عليكم و رحمة الله و بركاته<br />
<br />
<div class="codeblock"><div class="title">كود :</div><div class="body" dir="ltr"><code>Imports System.Text.RegularExpressions<br />
Private Function BoldWord(ByVal words As String(), ByVal text As String) As String<br />
Dim regex As Regex<br />
Dim _words As String = String.Join("&#92;b|&#92;b", words)<br />
regex = New System.Text.RegularExpressions.Regex("&#92;b" + _words + "&#92;b", RegexOptions.IgnoreCase)<br />
Return regex.Replace(text, AddressOf _BoldWord)<br />
End Function<br />
<br />
<br />
<br />
Private Function _BoldWord(ByVal m As Match) As String<br />
Return "&lt;b&gt;" + m.Value + "&lt;/b&gt;"<br />
End Function<br />
<br />
'How to use:<br />
BoldWord(NewString() {"BoldWord"}, "make bold the BoldWord")</code></div></div>]]></description>
			<content:encoded><![CDATA[<div style="text-align: center;" class="mycode_align"><span style="font-family: times new roman;" class="mycode_font"><span style="font-size: 5pt;" class="mycode_size"><span style="font-weight: bold;" class="mycode_b"><span style="color: #000080;" class="mycode_color">كاتب الموضوع : <span style="color: green;" class="mycode_color">Boutemine Oualid<br />
<br />
</span></span></span></span></span></div>
الساام عليكم و رحمة الله و بركاته<br />
<br />
<div class="codeblock"><div class="title">كود :</div><div class="body" dir="ltr"><code>Imports System.Text.RegularExpressions<br />
Private Function BoldWord(ByVal words As String(), ByVal text As String) As String<br />
Dim regex As Regex<br />
Dim _words As String = String.Join("&#92;b|&#92;b", words)<br />
regex = New System.Text.RegularExpressions.Regex("&#92;b" + _words + "&#92;b", RegexOptions.IgnoreCase)<br />
Return regex.Replace(text, AddressOf _BoldWord)<br />
End Function<br />
<br />
<br />
<br />
Private Function _BoldWord(ByVal m As Match) As String<br />
Return "&lt;b&gt;" + m.Value + "&lt;/b&gt;"<br />
End Function<br />
<br />
'How to use:<br />
BoldWord(NewString() {"BoldWord"}, "make bold the BoldWord")</code></div></div>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[لجعل الصفحة شفافة]]></title>
			<link>https://vb4arb.com/vb/showthread.php?tid=6420</link>
			<pubDate>Wed, 17 Oct 2012 18:56:40 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://vb4arb.com/vb/member.php?action=profile&uid=3403">Raggi Tech</a>]]></dc:creator>
			<guid isPermaLink="false">https://vb4arb.com/vb/showthread.php?tid=6420</guid>
			<description><![CDATA[<div style="text-align: center;" class="mycode_align"><span style="font-family: times new roman;" class="mycode_font"><span style="font-size: 5pt;" class="mycode_size"><span style="font-weight: bold;" class="mycode_b"><span style="color: #000080;" class="mycode_color">كاتب الموضوع : <span style="color: green;" class="mycode_color">Boutemine Oualid<br />
<br />
</span></span></span></span></span></div>
السلام عليكم و رحمة الله و بركاته<br />
<br />
<div class="codeblock"><div class="title">كود :</div><div class="body" dir="ltr"><code>&lt;div style="FILTER: alpha(opacity=50); moz-opacity: 0.5;opacity:0.5;"&gt; <br />
&lt;!-- Div Content --&gt;<br />
&lt;/div&gt;<br />
// FILTER: alpha(opacity=50) For IE<br />
// moz-opacity: 0.5; For mozilla<br />
// opacity: 0.5; For firefox</code></div></div>]]></description>
			<content:encoded><![CDATA[<div style="text-align: center;" class="mycode_align"><span style="font-family: times new roman;" class="mycode_font"><span style="font-size: 5pt;" class="mycode_size"><span style="font-weight: bold;" class="mycode_b"><span style="color: #000080;" class="mycode_color">كاتب الموضوع : <span style="color: green;" class="mycode_color">Boutemine Oualid<br />
<br />
</span></span></span></span></span></div>
السلام عليكم و رحمة الله و بركاته<br />
<br />
<div class="codeblock"><div class="title">كود :</div><div class="body" dir="ltr"><code>&lt;div style="FILTER: alpha(opacity=50); moz-opacity: 0.5;opacity:0.5;"&gt; <br />
&lt;!-- Div Content --&gt;<br />
&lt;/div&gt;<br />
// FILTER: alpha(opacity=50) For IE<br />
// moz-opacity: 0.5; For mozilla<br />
// opacity: 0.5; For firefox</code></div></div>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[لتغيير اسم الملف أثناء عملية ال Upload]]></title>
			<link>https://vb4arb.com/vb/showthread.php?tid=6419</link>
			<pubDate>Wed, 17 Oct 2012 18:56:16 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://vb4arb.com/vb/member.php?action=profile&uid=3403">Raggi Tech</a>]]></dc:creator>
			<guid isPermaLink="false">https://vb4arb.com/vb/showthread.php?tid=6419</guid>
			<description><![CDATA[<div style="text-align: center;" class="mycode_align"><span style="font-family: times new roman;" class="mycode_font"><span style="font-size: 5pt;" class="mycode_size"><span style="font-weight: bold;" class="mycode_b"><span style="color: #000080;" class="mycode_color">كاتب الموضوع : <span style="color: green;" class="mycode_color">Boutemine Oualid<br />
<br />
</span></span></span></span></span></div>
السلام عليكم و رحمة الله و بركاته<br />
<br />
<br />
<div class="codeblock"><div class="title">كود :</div><div class="body" dir="ltr"><code>Public Function UploadName(ByVal file As FileUpload, ByVal Destination As String, ByVal newName As String) As String <br />
Dim fileName As String = File.PostedFile.FileName<br />
Dim newFileName As String = newName &amp; System.IO.Path.GetExtension(NomFile) <br />
File.PostedFile.SaveAs(Destination &amp; newFileName)<br />
Return newFileName <br />
End Function</code></div></div>]]></description>
			<content:encoded><![CDATA[<div style="text-align: center;" class="mycode_align"><span style="font-family: times new roman;" class="mycode_font"><span style="font-size: 5pt;" class="mycode_size"><span style="font-weight: bold;" class="mycode_b"><span style="color: #000080;" class="mycode_color">كاتب الموضوع : <span style="color: green;" class="mycode_color">Boutemine Oualid<br />
<br />
</span></span></span></span></span></div>
السلام عليكم و رحمة الله و بركاته<br />
<br />
<br />
<div class="codeblock"><div class="title">كود :</div><div class="body" dir="ltr"><code>Public Function UploadName(ByVal file As FileUpload, ByVal Destination As String, ByVal newName As String) As String <br />
Dim fileName As String = File.PostedFile.FileName<br />
Dim newFileName As String = newName &amp; System.IO.Path.GetExtension(NomFile) <br />
File.PostedFile.SaveAs(Destination &amp; newFileName)<br />
Return newFileName <br />
End Function</code></div></div>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[لارسال رسالة الكترونية eMail]]></title>
			<link>https://vb4arb.com/vb/showthread.php?tid=6418</link>
			<pubDate>Wed, 17 Oct 2012 18:55:58 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://vb4arb.com/vb/member.php?action=profile&uid=3403">Raggi Tech</a>]]></dc:creator>
			<guid isPermaLink="false">https://vb4arb.com/vb/showthread.php?tid=6418</guid>
			<description><![CDATA[<div style="text-align: center;" class="mycode_align"><span style="font-family: times new roman;" class="mycode_font"><span style="font-size: 5pt;" class="mycode_size"><span style="font-weight: bold;" class="mycode_b"><span style="color: #000080;" class="mycode_color">كاتب الموضوع : <span style="color: green;" class="mycode_color">Boutemine Oualid<br />
<br />
</span></span></span></span></span></div>
<br />
<div class="codeblock"><div class="title">كود :</div><div class="body" dir="ltr"><code>using System;<br />
using System.Text;<br />
using System.Net;<br />
using System.Net.Mail;<br />
using System.Diagnostics;<br />
private String m_Username = String.Empty;<br />
private String m_Password = String.Empty; <br />
private String m_SmtpServer = String.Empty; <br />
<br />
/// &lt;summary&gt; <br />
/// Value has been set by default at 25. Default value for SmtpServer <br />
/// &lt;/summary&gt; <br />
private int m_Port = 25; <br />
<br />
<br />
/// &lt;summary&gt; <br />
/// Sends an email with attachment <br />
/// &lt;/summary&gt; <br />
/// &lt;param name="_from"&gt;person who is sending the mail&lt;/param&gt; <br />
/// &lt;param name="_to"&gt;person who will receive the mail&lt;/param&gt; <br />
/// &lt;param name="_subject"&gt;mail subject&lt;/param&gt; <br />
/// &lt;param name="_message"&gt;mail message&lt;/param&gt; <br />
/// &lt;param name="attachment"&gt;file that will be attached to the mail&lt;/param&gt; <br />
/// &lt;returns&gt;True if mail haas been sent properly. false otherwise&lt;/returns&gt; <br />
public Boolean Send(String _from, String _to, String _subject, String _message, String attachment) <br />
{ <br />
try { <br />
MailAddress from = new MailAddress(_from); <br />
MailAddress to = new MailAddress(_to); <br />
<br />
MailMessage em = new MailMessage(from, to); <br />
//em.CC.Add(); It is also possible to add CC or BCC recipient on that way. <br />
//em.Bcc.Add(); <br />
em.BodyEncoding = Encoding.UTF8; <br />
em.IsBodyHtml = true; <br />
em.Subject = _subject; <br />
em.Body = _message; <br />
<br />
if(!String.IsNullOrEmpty(attachment)) <br />
{ <br />
Attachment a = new Attachment(attachment); <br />
em.Attachments.Add(a); <br />
} <br />
<br />
return Send(em); <br />
} <br />
catch (Exception exc) { <br />
Trace.WriteLine(String.Format("Email could not be send.", exc)); <br />
return false; <br />
} <br />
} <br />
<br />
/// &lt;summary&gt; <br />
/// Sends a Mail (MailMessage) <br />
/// &lt;/summary&gt; <br />
/// &lt;param name="_message"&gt;mail message&lt;/param&gt; <br />
/// &lt;returns&gt;True if mail haas been sent properly. false otherwise&lt;/returns&gt; <br />
private Boolean Send(MailMessage _message) <br />
{ <br />
try { <br />
if(String.IsNullOrEmpty(this.m_SmtpServer)) <br />
throw new Exception("SmtpServer must be specified"); <br />
<br />
SmtpClient client = new SmtpClient(this.m_SmtpServer); <br />
client.Port = this.m_Port; <br />
<br />
if (this.m_Username != null &amp;&amp; this.m_Password != null) { <br />
client.UseDefaultCredentials = false; <br />
client.Credentials = new NetworkCredential(this.m_Username, this.m_Password); <br />
} <br />
<br />
client.Send(_message); <br />
return true; <br />
} <br />
catch (SmtpException exc) { <br />
Trace.WriteLine(String.Format("Email could not be send.", exc)); <br />
return false; <br />
} <br />
}</code></div></div>]]></description>
			<content:encoded><![CDATA[<div style="text-align: center;" class="mycode_align"><span style="font-family: times new roman;" class="mycode_font"><span style="font-size: 5pt;" class="mycode_size"><span style="font-weight: bold;" class="mycode_b"><span style="color: #000080;" class="mycode_color">كاتب الموضوع : <span style="color: green;" class="mycode_color">Boutemine Oualid<br />
<br />
</span></span></span></span></span></div>
<br />
<div class="codeblock"><div class="title">كود :</div><div class="body" dir="ltr"><code>using System;<br />
using System.Text;<br />
using System.Net;<br />
using System.Net.Mail;<br />
using System.Diagnostics;<br />
private String m_Username = String.Empty;<br />
private String m_Password = String.Empty; <br />
private String m_SmtpServer = String.Empty; <br />
<br />
/// &lt;summary&gt; <br />
/// Value has been set by default at 25. Default value for SmtpServer <br />
/// &lt;/summary&gt; <br />
private int m_Port = 25; <br />
<br />
<br />
/// &lt;summary&gt; <br />
/// Sends an email with attachment <br />
/// &lt;/summary&gt; <br />
/// &lt;param name="_from"&gt;person who is sending the mail&lt;/param&gt; <br />
/// &lt;param name="_to"&gt;person who will receive the mail&lt;/param&gt; <br />
/// &lt;param name="_subject"&gt;mail subject&lt;/param&gt; <br />
/// &lt;param name="_message"&gt;mail message&lt;/param&gt; <br />
/// &lt;param name="attachment"&gt;file that will be attached to the mail&lt;/param&gt; <br />
/// &lt;returns&gt;True if mail haas been sent properly. false otherwise&lt;/returns&gt; <br />
public Boolean Send(String _from, String _to, String _subject, String _message, String attachment) <br />
{ <br />
try { <br />
MailAddress from = new MailAddress(_from); <br />
MailAddress to = new MailAddress(_to); <br />
<br />
MailMessage em = new MailMessage(from, to); <br />
//em.CC.Add(); It is also possible to add CC or BCC recipient on that way. <br />
//em.Bcc.Add(); <br />
em.BodyEncoding = Encoding.UTF8; <br />
em.IsBodyHtml = true; <br />
em.Subject = _subject; <br />
em.Body = _message; <br />
<br />
if(!String.IsNullOrEmpty(attachment)) <br />
{ <br />
Attachment a = new Attachment(attachment); <br />
em.Attachments.Add(a); <br />
} <br />
<br />
return Send(em); <br />
} <br />
catch (Exception exc) { <br />
Trace.WriteLine(String.Format("Email could not be send.", exc)); <br />
return false; <br />
} <br />
} <br />
<br />
/// &lt;summary&gt; <br />
/// Sends a Mail (MailMessage) <br />
/// &lt;/summary&gt; <br />
/// &lt;param name="_message"&gt;mail message&lt;/param&gt; <br />
/// &lt;returns&gt;True if mail haas been sent properly. false otherwise&lt;/returns&gt; <br />
private Boolean Send(MailMessage _message) <br />
{ <br />
try { <br />
if(String.IsNullOrEmpty(this.m_SmtpServer)) <br />
throw new Exception("SmtpServer must be specified"); <br />
<br />
SmtpClient client = new SmtpClient(this.m_SmtpServer); <br />
client.Port = this.m_Port; <br />
<br />
if (this.m_Username != null &amp;&amp; this.m_Password != null) { <br />
client.UseDefaultCredentials = false; <br />
client.Credentials = new NetworkCredential(this.m_Username, this.m_Password); <br />
} <br />
<br />
client.Send(_message); <br />
return true; <br />
} <br />
catch (SmtpException exc) { <br />
Trace.WriteLine(String.Format("Email could not be send.", exc)); <br />
return false; <br />
} <br />
}</code></div></div>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[القيام بعملية التحويل IP to Long و Long to IP لعناوين ال IP]]></title>
			<link>https://vb4arb.com/vb/showthread.php?tid=6417</link>
			<pubDate>Wed, 17 Oct 2012 18:54:08 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://vb4arb.com/vb/member.php?action=profile&uid=3403">Raggi Tech</a>]]></dc:creator>
			<guid isPermaLink="false">https://vb4arb.com/vb/showthread.php?tid=6417</guid>
			<description><![CDATA[<div style="text-align: center;" class="mycode_align"><span style="font-family: times new roman;" class="mycode_font"><span style="font-size: 5pt;" class="mycode_size"><span style="font-weight: bold;" class="mycode_b"><span style="color: #000080;" class="mycode_color">كاتب الموضوع : <span style="color: green;" class="mycode_color">Boutemine Oualid<br />
<br />
</span></span></span></span></span></div>
السلام عليكم و رحمة الله و بركاته<br />
<br />
<div class="codeblock"><div class="title">كود :</div><div class="body" dir="ltr"><code>Public Shared Function IPToLong(ByVal ipAddress As String) As Long<br />
Try<br />
Dim ip As System.Net.IPAddress = Net.IPAddress.Parse(ipAddress) <br />
Return (CLng(ip.GetAddressBytes(0)) &lt;&lt; 24) Or (CInt(ip.GetAddressBytes(1)) &lt;&lt; 16) Or (CInt(ip.GetAddressBytes(2)) &lt;&lt; 8) Or ip.GetAddressBytes(3)<br />
Catch ex As Exception <br />
Return 0 <br />
End Try<br />
<br />
End Function<br />
<br />
Public Shared Function LongToIP(ByVal ipAddress As Long) As String<br />
Try<br />
Dim tmpIP As New Net.IPAddress(ipAddress)<br />
Dim bytes() As Byte = tmpIP.GetAddressBytes() <br />
Array.Reverse(bytes)<br />
Dim addr As Long = CLng(BitConverter.ToUInt32(bytes, 0))<br />
Return New Net.IPAddress(addr).ToString() <br />
Catch ex As Exception<br />
Return ex.Message <br />
End Try<br />
End Function<br />
'How to use<br />
Dim IPFromLong As Long = IPToLong("127.0.0.1") ' return 2130706433<br />
Dim IPFromString As String = LongToIP(2130706433) ' return "127.0.0.1"</code></div></div>]]></description>
			<content:encoded><![CDATA[<div style="text-align: center;" class="mycode_align"><span style="font-family: times new roman;" class="mycode_font"><span style="font-size: 5pt;" class="mycode_size"><span style="font-weight: bold;" class="mycode_b"><span style="color: #000080;" class="mycode_color">كاتب الموضوع : <span style="color: green;" class="mycode_color">Boutemine Oualid<br />
<br />
</span></span></span></span></span></div>
السلام عليكم و رحمة الله و بركاته<br />
<br />
<div class="codeblock"><div class="title">كود :</div><div class="body" dir="ltr"><code>Public Shared Function IPToLong(ByVal ipAddress As String) As Long<br />
Try<br />
Dim ip As System.Net.IPAddress = Net.IPAddress.Parse(ipAddress) <br />
Return (CLng(ip.GetAddressBytes(0)) &lt;&lt; 24) Or (CInt(ip.GetAddressBytes(1)) &lt;&lt; 16) Or (CInt(ip.GetAddressBytes(2)) &lt;&lt; 8) Or ip.GetAddressBytes(3)<br />
Catch ex As Exception <br />
Return 0 <br />
End Try<br />
<br />
End Function<br />
<br />
Public Shared Function LongToIP(ByVal ipAddress As Long) As String<br />
Try<br />
Dim tmpIP As New Net.IPAddress(ipAddress)<br />
Dim bytes() As Byte = tmpIP.GetAddressBytes() <br />
Array.Reverse(bytes)<br />
Dim addr As Long = CLng(BitConverter.ToUInt32(bytes, 0))<br />
Return New Net.IPAddress(addr).ToString() <br />
Catch ex As Exception<br />
Return ex.Message <br />
End Try<br />
End Function<br />
'How to use<br />
Dim IPFromLong As Long = IPToLong("127.0.0.1") ' return 2130706433<br />
Dim IPFromString As String = LongToIP(2130706433) ' return "127.0.0.1"</code></div></div>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[التعامل مع ال Cookies]]></title>
			<link>https://vb4arb.com/vb/showthread.php?tid=6416</link>
			<pubDate>Wed, 17 Oct 2012 18:52:47 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://vb4arb.com/vb/member.php?action=profile&uid=3403">Raggi Tech</a>]]></dc:creator>
			<guid isPermaLink="false">https://vb4arb.com/vb/showthread.php?tid=6416</guid>
			<description><![CDATA[<div style="text-align: center;" class="mycode_align"><span style="font-family: times new roman;" class="mycode_font"><span style="font-size: 5pt;" class="mycode_size"><span style="font-weight: bold;" class="mycode_b"><span style="color: #000080;" class="mycode_color">كاتب الموضوع : <span style="color: green;" class="mycode_color">Boutemine Oualid<br />
<br />
</span></span></span></span></span></div>
السلام عليكم و رحمة الله و بركاته<br />
<br />
<br />
<div class="codeblock"><div class="title">كود :</div><div class="body" dir="ltr"><code>' Read<br />
Dim cookie As HttpCookie = Request.Cookies("cookieName")<br />
Dim value As String = cookie.Value<br />
<br />
'Write<br />
Dim cookie As New HttpCookie("cookieName")<br />
cookie.Value = "maValue"<br />
Response.Cookies.Add(cookie)</code></div></div>]]></description>
			<content:encoded><![CDATA[<div style="text-align: center;" class="mycode_align"><span style="font-family: times new roman;" class="mycode_font"><span style="font-size: 5pt;" class="mycode_size"><span style="font-weight: bold;" class="mycode_b"><span style="color: #000080;" class="mycode_color">كاتب الموضوع : <span style="color: green;" class="mycode_color">Boutemine Oualid<br />
<br />
</span></span></span></span></span></div>
السلام عليكم و رحمة الله و بركاته<br />
<br />
<br />
<div class="codeblock"><div class="title">كود :</div><div class="body" dir="ltr"><code>' Read<br />
Dim cookie As HttpCookie = Request.Cookies("cookieName")<br />
Dim value As String = cookie.Value<br />
<br />
'Write<br />
Dim cookie As New HttpCookie("cookieName")<br />
cookie.Value = "maValue"<br />
Response.Cookies.Add(cookie)</code></div></div>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[معرفة مكتبات البريد الإلكتروني التي يمكن استخدامها في السيرفر - Asp]]></title>
			<link>https://vb4arb.com/vb/showthread.php?tid=6415</link>
			<pubDate>Wed, 17 Oct 2012 18:51:54 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://vb4arb.com/vb/member.php?action=profile&uid=3403">Raggi Tech</a>]]></dc:creator>
			<guid isPermaLink="false">https://vb4arb.com/vb/showthread.php?tid=6415</guid>
			<description><![CDATA[<div style="text-align: center;" class="mycode_align"><span style="font-family: times new roman;" class="mycode_font"><span style="font-size: 5pt;" class="mycode_size"><span style="font-weight: bold;" class="mycode_b"><span style="color: #000080;" class="mycode_color">كاتب الموضوع : <span style="color: green;" class="mycode_color">AhmedEssawy<br />
<br />
</span></span></span></span></span></div>
يقوم هذا الكود بعرض جميع المكتبات التي يمكنك استخدامها للتعامل مع البريد الإلكتروني من خلال ASP ، ويتمد الكود على مجموعة من المكتبات المشهورة التي يقوم باضافتها ضمن مصفوفة theComponents ، ومن ثم يقوم بإنشاء نسخة من كل منهم ، وفي حالة وجود خطأ يتم تداركه والتعرف عليه ، وهو في حالتنا يعني أن المكتبة غير موجودة .<br />
<br />
في ختام الأمر يقوم بطباعة كل المكتبات التي لم تحدث أخطاء أثناء تعريفها .<br />
<br />
والآن إلى الأمر :<br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">كود :</div><div class="body" dir="ltr"><code>&lt;% @ Language="VBScript" %&gt;<br />
&lt;% Option Explicit %&gt;<br />
&lt;%<br />
Dim theComponents(18)<br />
theComponents(0) = Array("ABMailer.Mailman", "ABMailer v2.2+")<br />
theComponents(1) = Array("Persits.MailSender", "ASPEMail")<br />
theComponents(2) = Array("SMTPsvg.Mailer", "ASPMail")<br />
theComponents(3) = Array("SMTPsvg.Mailer", "ASPQMail")<br />
theComponents(4) = Array("CDONTS.NewMail", "CDONTS (IIS 3/4/5)")<br />
theComponents(5) = Array("CDONTS.NewMail", "Chili!Mail (Chili!Soft ASP)")<br />
theComponents(6) = Array("CDO.Message", "CDOSYS (IIS 5/5.1/6)")<br />
theComponents(7) = Array("dkQmail.Qmail", "dkQMail")<br />
theComponents(8) = Array("Dundas.Mailer", "Dundas Mail (QuickSend)")<br />
theComponents(9) = Array("Dundas.Mailer", "Dundas Mail (SendMail)")<br />
theComponents(10) = Array("Geocel.Mailer", "GeoCel")<br />
theComponents(11) = Array("iismail.iismail.1", "IISMail")<br />
theComponents(12) = Array("Jmail.smtpmail", "JMail")<br />
theComponents(13) = Array("MDUserCom.MDUser", "MDaemon")<br />
theComponents(14) = Array("ASPMail.ASPMailCtrl.1", "OCXMail")<br />
theComponents(15) = Array("ocxQmail.ocxQmailCtrl.1", "OCXQMail")<br />
theComponents(16) = Array("SoftArtisans.SMTPMail", "SA-Smtp Mail")<br />
theComponents(17) = Array("SmtpMail.SmtpMail.1", "SMTP")<br />
theComponents(18) = Array("VSEmail.SMTPSendMail", "VSEmail")<br />
Function IsObjInstalled(strClassString)<br />
On Error Resume Next<br />
<br />
'// Initialize default values<br />
IsObjInstalled = False<br />
Err = 0<br />
'// Testing code<br />
Dim xTestObj<br />
Set xTestObj = Server.CreateObject(strClassString)<br />
<br />
If 0 = Err Then IsObjInstalled = True<br />
<br />
'// Cleanup<br />
Set xTestObj = Nothing<br />
Err = 0<br />
<br />
On Error Goto 0<br />
End Function<br />
Response.Write "&lt;html&gt;" &amp; vbNewLine &amp; _<br />
vbNewLine &amp; _<br />
"&lt;head&gt;" &amp; vbNewLine &amp; _<br />
" &lt;title&gt;E-mail Component Test&lt;/title&gt;" &amp; vbNewLine &amp; _<br />
"&lt;/head&gt;" &amp; vbNewLine &amp; _<br />
vbNewLine &amp; _<br />
"&lt;body bgColor=doublequotewhitedoublequote text=doublequotemidnightbluedoublequote link=doublequotedarkbluedoublequote aLink=doublequotereddoublequote vLink=doublequotereddoublequote&gt;" &amp; vbNewLine &amp; _<br />
"&lt;font face=doublequoteVerdana, Arial, Helveticadoublequote&gt;" &amp; vbNewLine &amp; _<br />
"&lt;table border=doublequote0doublequote cellspacing=doublequote0doublequote cellpadding=doublequote0doublequote align=doublequotecenterdoublequote&gt;" &amp; vbNewLine &amp; _<br />
" &lt;tr valign=doublequotetopdoublequote&gt;" &amp; vbNewLine &amp; _<br />
" &lt;td bgcolor=doublequoteblackdoublequote&gt;" &amp; vbNewLine &amp; _<br />
" &lt;table border=doublequote0doublequote cellspacing=doublequote1doublequote cellpadding=doublequote4doublequote&gt;" &amp; vbNewLine &amp; _<br />
" &lt;tr valign=doublequotetopdoublequote&gt;" &amp; vbNewLine &amp; _<br />
" &lt;td bgcolor=doublequotemidnightbluedoublequote colspan=doublequote2doublequote align=doublequotecenterdoublequote&gt;&lt;font size=doublequote2doublequote color=doublequotemintcreamdoublequote&gt;&lt;b&gt;E-mail Component Test&lt;/b&gt;&lt;/font&gt;&lt;/td&gt;" &amp; vbNewLine &amp; _<br />
" &lt;/tr&gt;" &amp; vbNewLine<br />
Dim i<br />
For i = 0 To UBound(theComponents)<br />
Response.Write " &lt;tr&gt;" &amp; vbNewLine &amp; _<br />
" &lt;td bgColor=doublequote#9FAFDFdoublequote align=doublequoterightdoublequote&gt;&lt;font size=doublequote2doublequote&gt;&lt;strong&gt;" &amp; theComponents(i)(1) &amp; ":&amp;nbsp;&lt;/strong&gt;&lt;/font&gt;&lt;/td&gt;" &amp; vbNewLine &amp; _<br />
" &lt;td bgColor=doublequote#9FAFDFdoublequote align=doublequotecenterdoublequote&gt;&lt;font size=doublequote2doublequote&gt;"<br />
<br />
If Not IsObjInstalled(theComponents(i)(0)) Then<br />
Response.Write("not installed")<br />
Else<br />
Response.Write("&lt;strong&gt;installed!&lt;/strong&gt;")<br />
End If<br />
<br />
Response.Write "&lt;/font&gt;&lt;/td&gt;" &amp; vbNewLine &amp; _<br />
" &lt;/tr&gt;" &amp; vbNewline<br />
Next<br />
<br />
Response.Write " &lt;/table&gt;" &amp; vbNewLine &amp; _<br />
" &lt;/td&gt;" &amp; vbNewLine &amp; _<br />
" &lt;/tr&gt;" &amp; vbNewLine &amp; _<br />
"&lt;/table&gt;" &amp; vbNewLine &amp; _<br />
"&lt;/font&gt;" &amp; vbNewLine &amp; _<br />
"&lt;/body&gt;" &amp; vbNewLine &amp; _<br />
vbNewLine &amp; _<br />
"&lt;/html&gt;" &amp; vbNewLine<br />
%&gt;</code></div></div>]]></description>
			<content:encoded><![CDATA[<div style="text-align: center;" class="mycode_align"><span style="font-family: times new roman;" class="mycode_font"><span style="font-size: 5pt;" class="mycode_size"><span style="font-weight: bold;" class="mycode_b"><span style="color: #000080;" class="mycode_color">كاتب الموضوع : <span style="color: green;" class="mycode_color">AhmedEssawy<br />
<br />
</span></span></span></span></span></div>
يقوم هذا الكود بعرض جميع المكتبات التي يمكنك استخدامها للتعامل مع البريد الإلكتروني من خلال ASP ، ويتمد الكود على مجموعة من المكتبات المشهورة التي يقوم باضافتها ضمن مصفوفة theComponents ، ومن ثم يقوم بإنشاء نسخة من كل منهم ، وفي حالة وجود خطأ يتم تداركه والتعرف عليه ، وهو في حالتنا يعني أن المكتبة غير موجودة .<br />
<br />
في ختام الأمر يقوم بطباعة كل المكتبات التي لم تحدث أخطاء أثناء تعريفها .<br />
<br />
والآن إلى الأمر :<br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">كود :</div><div class="body" dir="ltr"><code>&lt;% @ Language="VBScript" %&gt;<br />
&lt;% Option Explicit %&gt;<br />
&lt;%<br />
Dim theComponents(18)<br />
theComponents(0) = Array("ABMailer.Mailman", "ABMailer v2.2+")<br />
theComponents(1) = Array("Persits.MailSender", "ASPEMail")<br />
theComponents(2) = Array("SMTPsvg.Mailer", "ASPMail")<br />
theComponents(3) = Array("SMTPsvg.Mailer", "ASPQMail")<br />
theComponents(4) = Array("CDONTS.NewMail", "CDONTS (IIS 3/4/5)")<br />
theComponents(5) = Array("CDONTS.NewMail", "Chili!Mail (Chili!Soft ASP)")<br />
theComponents(6) = Array("CDO.Message", "CDOSYS (IIS 5/5.1/6)")<br />
theComponents(7) = Array("dkQmail.Qmail", "dkQMail")<br />
theComponents(8) = Array("Dundas.Mailer", "Dundas Mail (QuickSend)")<br />
theComponents(9) = Array("Dundas.Mailer", "Dundas Mail (SendMail)")<br />
theComponents(10) = Array("Geocel.Mailer", "GeoCel")<br />
theComponents(11) = Array("iismail.iismail.1", "IISMail")<br />
theComponents(12) = Array("Jmail.smtpmail", "JMail")<br />
theComponents(13) = Array("MDUserCom.MDUser", "MDaemon")<br />
theComponents(14) = Array("ASPMail.ASPMailCtrl.1", "OCXMail")<br />
theComponents(15) = Array("ocxQmail.ocxQmailCtrl.1", "OCXQMail")<br />
theComponents(16) = Array("SoftArtisans.SMTPMail", "SA-Smtp Mail")<br />
theComponents(17) = Array("SmtpMail.SmtpMail.1", "SMTP")<br />
theComponents(18) = Array("VSEmail.SMTPSendMail", "VSEmail")<br />
Function IsObjInstalled(strClassString)<br />
On Error Resume Next<br />
<br />
'// Initialize default values<br />
IsObjInstalled = False<br />
Err = 0<br />
'// Testing code<br />
Dim xTestObj<br />
Set xTestObj = Server.CreateObject(strClassString)<br />
<br />
If 0 = Err Then IsObjInstalled = True<br />
<br />
'// Cleanup<br />
Set xTestObj = Nothing<br />
Err = 0<br />
<br />
On Error Goto 0<br />
End Function<br />
Response.Write "&lt;html&gt;" &amp; vbNewLine &amp; _<br />
vbNewLine &amp; _<br />
"&lt;head&gt;" &amp; vbNewLine &amp; _<br />
" &lt;title&gt;E-mail Component Test&lt;/title&gt;" &amp; vbNewLine &amp; _<br />
"&lt;/head&gt;" &amp; vbNewLine &amp; _<br />
vbNewLine &amp; _<br />
"&lt;body bgColor=doublequotewhitedoublequote text=doublequotemidnightbluedoublequote link=doublequotedarkbluedoublequote aLink=doublequotereddoublequote vLink=doublequotereddoublequote&gt;" &amp; vbNewLine &amp; _<br />
"&lt;font face=doublequoteVerdana, Arial, Helveticadoublequote&gt;" &amp; vbNewLine &amp; _<br />
"&lt;table border=doublequote0doublequote cellspacing=doublequote0doublequote cellpadding=doublequote0doublequote align=doublequotecenterdoublequote&gt;" &amp; vbNewLine &amp; _<br />
" &lt;tr valign=doublequotetopdoublequote&gt;" &amp; vbNewLine &amp; _<br />
" &lt;td bgcolor=doublequoteblackdoublequote&gt;" &amp; vbNewLine &amp; _<br />
" &lt;table border=doublequote0doublequote cellspacing=doublequote1doublequote cellpadding=doublequote4doublequote&gt;" &amp; vbNewLine &amp; _<br />
" &lt;tr valign=doublequotetopdoublequote&gt;" &amp; vbNewLine &amp; _<br />
" &lt;td bgcolor=doublequotemidnightbluedoublequote colspan=doublequote2doublequote align=doublequotecenterdoublequote&gt;&lt;font size=doublequote2doublequote color=doublequotemintcreamdoublequote&gt;&lt;b&gt;E-mail Component Test&lt;/b&gt;&lt;/font&gt;&lt;/td&gt;" &amp; vbNewLine &amp; _<br />
" &lt;/tr&gt;" &amp; vbNewLine<br />
Dim i<br />
For i = 0 To UBound(theComponents)<br />
Response.Write " &lt;tr&gt;" &amp; vbNewLine &amp; _<br />
" &lt;td bgColor=doublequote#9FAFDFdoublequote align=doublequoterightdoublequote&gt;&lt;font size=doublequote2doublequote&gt;&lt;strong&gt;" &amp; theComponents(i)(1) &amp; ":&amp;nbsp;&lt;/strong&gt;&lt;/font&gt;&lt;/td&gt;" &amp; vbNewLine &amp; _<br />
" &lt;td bgColor=doublequote#9FAFDFdoublequote align=doublequotecenterdoublequote&gt;&lt;font size=doublequote2doublequote&gt;"<br />
<br />
If Not IsObjInstalled(theComponents(i)(0)) Then<br />
Response.Write("not installed")<br />
Else<br />
Response.Write("&lt;strong&gt;installed!&lt;/strong&gt;")<br />
End If<br />
<br />
Response.Write "&lt;/font&gt;&lt;/td&gt;" &amp; vbNewLine &amp; _<br />
" &lt;/tr&gt;" &amp; vbNewline<br />
Next<br />
<br />
Response.Write " &lt;/table&gt;" &amp; vbNewLine &amp; _<br />
" &lt;/td&gt;" &amp; vbNewLine &amp; _<br />
" &lt;/tr&gt;" &amp; vbNewLine &amp; _<br />
"&lt;/table&gt;" &amp; vbNewLine &amp; _<br />
"&lt;/font&gt;" &amp; vbNewLine &amp; _<br />
"&lt;/body&gt;" &amp; vbNewLine &amp; _<br />
vbNewLine &amp; _<br />
"&lt;/html&gt;" &amp; vbNewLine<br />
%&gt;</code></div></div>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[معرفة مسار البرنامج واسم التطبيق في ASP.net]]></title>
			<link>https://vb4arb.com/vb/showthread.php?tid=6414</link>
			<pubDate>Wed, 17 Oct 2012 18:51:13 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://vb4arb.com/vb/member.php?action=profile&uid=3403">Raggi Tech</a>]]></dc:creator>
			<guid isPermaLink="false">https://vb4arb.com/vb/showthread.php?tid=6414</guid>
			<description><![CDATA[<div style="text-align: center;" class="mycode_align"><span style="font-family: times new roman;" class="mycode_font"><span style="font-size: 5pt;" class="mycode_size"><span style="font-weight: bold;" class="mycode_b"><span style="color: #000080;" class="mycode_color">كاتب الموضوع : <span style="color: green;" class="mycode_color">AhmedEssawy<br />
<br />
</span></span></span></span></span></div>
<br />
<div class="codeblock"><div class="title">كود :</div><div class="body" dir="ltr"><code>Option Explicit<br />
Option Strict<br />
Imports System<br />
Imports System.IO<br />
Class ThisApp<br />
Private mAppPath As String<br />
Private mExeName As String<br />
Public ReadOnly Property AppPath() As String<br />
Get<br />
Return mAppPath<br />
End Get<br />
End Property<br />
Public ReadOnly Property ExeName() As String<br />
Get<br />
Return mExeName<br />
End Get<br />
End Property<br />
Public Sub New()<br />
Dim p As Path<br />
Try<br />
mAppPath = System.Reflection.Assembly.GetExecutingAssembly.Location<br />
mExeName = Dir(mAppPath)<br />
mAppPath = p.GetFullPath((Left(mAppPath, (Len(mAppPath) - Len(mExeName)))))<br />
Catch<br />
MsgBox(Err.Description, MsgBoxStyle.Critical, "Error!")<br />
End Try<br />
End Sub<br />
End Class<br />
Module modMain<br />
Sub Main()<br />
Dim MyApp As ThisApp = New ThisApp()<br />
MsgBox(MyApp.AppPath, MsgBoxStyle.Information, "App Path")<br />
MsgBox(MyApp.ExeName, MsgBoxStyle.Information, "Exe Name")<br />
End Sub<br />
End Module</code></div></div>]]></description>
			<content:encoded><![CDATA[<div style="text-align: center;" class="mycode_align"><span style="font-family: times new roman;" class="mycode_font"><span style="font-size: 5pt;" class="mycode_size"><span style="font-weight: bold;" class="mycode_b"><span style="color: #000080;" class="mycode_color">كاتب الموضوع : <span style="color: green;" class="mycode_color">AhmedEssawy<br />
<br />
</span></span></span></span></span></div>
<br />
<div class="codeblock"><div class="title">كود :</div><div class="body" dir="ltr"><code>Option Explicit<br />
Option Strict<br />
Imports System<br />
Imports System.IO<br />
Class ThisApp<br />
Private mAppPath As String<br />
Private mExeName As String<br />
Public ReadOnly Property AppPath() As String<br />
Get<br />
Return mAppPath<br />
End Get<br />
End Property<br />
Public ReadOnly Property ExeName() As String<br />
Get<br />
Return mExeName<br />
End Get<br />
End Property<br />
Public Sub New()<br />
Dim p As Path<br />
Try<br />
mAppPath = System.Reflection.Assembly.GetExecutingAssembly.Location<br />
mExeName = Dir(mAppPath)<br />
mAppPath = p.GetFullPath((Left(mAppPath, (Len(mAppPath) - Len(mExeName)))))<br />
Catch<br />
MsgBox(Err.Description, MsgBoxStyle.Critical, "Error!")<br />
End Try<br />
End Sub<br />
End Class<br />
Module modMain<br />
Sub Main()<br />
Dim MyApp As ThisApp = New ThisApp()<br />
MsgBox(MyApp.AppPath, MsgBoxStyle.Information, "App Path")<br />
MsgBox(MyApp.ExeName, MsgBoxStyle.Information, "Exe Name")<br />
End Sub<br />
End Module</code></div></div>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[معرفة طول الملف Asp]]></title>
			<link>https://vb4arb.com/vb/showthread.php?tid=6413</link>
			<pubDate>Wed, 17 Oct 2012 18:50:50 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://vb4arb.com/vb/member.php?action=profile&uid=3403">Raggi Tech</a>]]></dc:creator>
			<guid isPermaLink="false">https://vb4arb.com/vb/showthread.php?tid=6413</guid>
			<description><![CDATA[<div style="text-align: center;" class="mycode_align"><span style="font-family: times new roman;" class="mycode_font"><span style="font-size: 5pt;" class="mycode_size"><span style="font-weight: bold;" class="mycode_b"><span style="color: #000080;" class="mycode_color">كاتب الموضوع : <span style="color: green;" class="mycode_color">AhmedEssawy<br />
<br />
</span></span></span></span></span></div>
<br />
<div class="codeblock"><div class="title">كود :</div><div class="body" dir="ltr"><code>[COLOR=#000080]&lt;%<br />
Private Function FileLen(ByVal pathname)<br />
Dim objFSO, objFile<br />
On Error Resume Next<br />
Set objFSO = Server.CreateObject("Scripting.FileSystemObject")<br />
Set objFile = objFSO.GetFile(pathname)<br />
If Err Then<br />
FileLen = Null<br />
Else<br />
FileLen = CLng( objFile.Size )<br />
End If<br />
Set objFile = Nothing<br />
Set objFSO = Nothing<br />
On Error GoTo 0<br />
End Function<br />
%&gt;[/COLOR]</code></div></div>]]></description>
			<content:encoded><![CDATA[<div style="text-align: center;" class="mycode_align"><span style="font-family: times new roman;" class="mycode_font"><span style="font-size: 5pt;" class="mycode_size"><span style="font-weight: bold;" class="mycode_b"><span style="color: #000080;" class="mycode_color">كاتب الموضوع : <span style="color: green;" class="mycode_color">AhmedEssawy<br />
<br />
</span></span></span></span></span></div>
<br />
<div class="codeblock"><div class="title">كود :</div><div class="body" dir="ltr"><code>[COLOR=#000080]&lt;%<br />
Private Function FileLen(ByVal pathname)<br />
Dim objFSO, objFile<br />
On Error Resume Next<br />
Set objFSO = Server.CreateObject("Scripting.FileSystemObject")<br />
Set objFile = objFSO.GetFile(pathname)<br />
If Err Then<br />
FileLen = Null<br />
Else<br />
FileLen = CLng( objFile.Size )<br />
End If<br />
Set objFile = Nothing<br />
Set objFSO = Nothing<br />
On Error GoTo 0<br />
End Function<br />
%&gt;[/COLOR]</code></div></div>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[معرفة ال Ip للمستخدم من خلال Asp]]></title>
			<link>https://vb4arb.com/vb/showthread.php?tid=6412</link>
			<pubDate>Wed, 17 Oct 2012 18:49:36 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://vb4arb.com/vb/member.php?action=profile&uid=3403">Raggi Tech</a>]]></dc:creator>
			<guid isPermaLink="false">https://vb4arb.com/vb/showthread.php?tid=6412</guid>
			<description><![CDATA[<div style="text-align: center;" class="mycode_align"><span style="font-family: times new roman;" class="mycode_font"><span style="font-size: 5pt;" class="mycode_size"><span style="font-weight: bold;" class="mycode_b"><span style="color: #000080;" class="mycode_color">كاتب الموضوع : <span style="color: green;" class="mycode_color">AhmedEssawy<br />
<br />
</span></span></span></span></span><br />
<br />
<div class="codeblock"><div class="title">كود :</div><div class="body" dir="ltr"><code>&lt;%<br />
Dim UserIPAddress<br />
UserIPAddress = Request.ServerVariables("HTTP_X_FORWARDED_FOR")<br />
If UserIPAddress = "" Then<br />
UserIPAddress = Request.ServerVariables("REMOTE_ADDR")<br />
End If<br />
%&gt;</code></div></div><br />
</div>]]></description>
			<content:encoded><![CDATA[<div style="text-align: center;" class="mycode_align"><span style="font-family: times new roman;" class="mycode_font"><span style="font-size: 5pt;" class="mycode_size"><span style="font-weight: bold;" class="mycode_b"><span style="color: #000080;" class="mycode_color">كاتب الموضوع : <span style="color: green;" class="mycode_color">AhmedEssawy<br />
<br />
</span></span></span></span></span><br />
<br />
<div class="codeblock"><div class="title">كود :</div><div class="body" dir="ltr"><code>&lt;%<br />
Dim UserIPAddress<br />
UserIPAddress = Request.ServerVariables("HTTP_X_FORWARDED_FOR")<br />
If UserIPAddress = "" Then<br />
UserIPAddress = Request.ServerVariables("REMOTE_ADDR")<br />
End If<br />
%&gt;</code></div></div><br />
</div>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[لمنع بيانات صفحة معينة من التخزين في chash من خلال ASP]]></title>
			<link>https://vb4arb.com/vb/showthread.php?tid=6411</link>
			<pubDate>Wed, 17 Oct 2012 18:49:05 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://vb4arb.com/vb/member.php?action=profile&uid=3403">Raggi Tech</a>]]></dc:creator>
			<guid isPermaLink="false">https://vb4arb.com/vb/showthread.php?tid=6411</guid>
			<description><![CDATA[<div style="text-align: center;" class="mycode_align"><span style="font-family: times new roman;" class="mycode_font"><span style="font-size: 5pt;" class="mycode_size"><span style="font-weight: bold;" class="mycode_b"><span style="color: #000080;" class="mycode_color">كاتب الموضوع : <span style="color: green;" class="mycode_color">AhmedEssawy<br />
<br />
</span></span></span></span></span></div>
<br />
<div class="codeblock"><div class="title">كود :</div><div class="body" dir="ltr"><code>&lt;%<br />
'FROM MIND Magazine,<br />
'September 1999 issue<br />
'GeekToGeek column by<br />
'Robert Hess<br />
'Below must be place before HTML tag<br />
'and everything else on page<br />
response.expires = -1<br />
response.AddHeader "Pragma", "no-cache"<br />
response.AddHeader "cache-control", "no-store"<br />
%&gt;<br />
&lt;HTML&gt;<br />
&lt;HEAD&gt;<br />
&lt;TITLE&gt;My Web Page&lt;/TITLE&gt;<br />
&lt;%<br />
'To Test code:<br />
'Load the page, go to <br />
'a different page, <br />
'then click back. You'll<br />
'see the time change (i.e.,<br />
'page not being loaded from <br />
'cache)<br />
'This prevents pages from being cached,<br />
'but not images on page. <br />
response.write now()<br />
%&gt;<br />
&lt;/HEAD&gt;<br />
&lt;BODY&gt;</code></div></div>]]></description>
			<content:encoded><![CDATA[<div style="text-align: center;" class="mycode_align"><span style="font-family: times new roman;" class="mycode_font"><span style="font-size: 5pt;" class="mycode_size"><span style="font-weight: bold;" class="mycode_b"><span style="color: #000080;" class="mycode_color">كاتب الموضوع : <span style="color: green;" class="mycode_color">AhmedEssawy<br />
<br />
</span></span></span></span></span></div>
<br />
<div class="codeblock"><div class="title">كود :</div><div class="body" dir="ltr"><code>&lt;%<br />
'FROM MIND Magazine,<br />
'September 1999 issue<br />
'GeekToGeek column by<br />
'Robert Hess<br />
'Below must be place before HTML tag<br />
'and everything else on page<br />
response.expires = -1<br />
response.AddHeader "Pragma", "no-cache"<br />
response.AddHeader "cache-control", "no-store"<br />
%&gt;<br />
&lt;HTML&gt;<br />
&lt;HEAD&gt;<br />
&lt;TITLE&gt;My Web Page&lt;/TITLE&gt;<br />
&lt;%<br />
'To Test code:<br />
'Load the page, go to <br />
'a different page, <br />
'then click back. You'll<br />
'see the time change (i.e.,<br />
'page not being loaded from <br />
'cache)<br />
'This prevents pages from being cached,<br />
'but not images on page. <br />
response.write now()<br />
%&gt;<br />
&lt;/HEAD&gt;<br />
&lt;BODY&gt;</code></div></div>]]></content:encoded>
		</item>
	</channel>
</rss>