<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/">
  <channel>
    <title>Lập trình web Asp.net</title>
    <description>Lập trình website ngôn ngữ asp.net, thủ thuật lập trình web, lập trình asp.net</description>
    <pubDate>Sat, 18 Jul 2026 03:29:33 +0000</pubDate>
    <lastBuildDate>Sat, 18 Jul 2026 03:29:33 +0000</lastBuildDate>
    <generator>Diễn đàn CNTT | Forum CNTT Cộng đồng Tin học Việt Nam ITSEOVN</generator>
    <link>https://itseovn.com/forums/web-aspnet/</link>
    <atom:link rel="self" type="application/rss+xml" href="https://itseovn.com/forums/web-aspnet/index.rss"/>
    <item>
      <title>Kiểm tra số điện thoại đúng định dạng trong c# asp.net</title>
      <pubDate>Thu, 13 Mar 2025 09:18:10 +0000</pubDate>
      <link>https://itseovn.com/threads/kiem-tra-so-dien-thoai-dung-dinh-dang-trong-c-asp-net.328868/</link>
      <guid>https://itseovn.com/threads/kiem-tra-so-dien-thoai-dung-dinh-dang-trong-c-asp-net.328868/</guid>
      <author>invalid@example.com (seolagi)</author>
      <dc:creator>seolagi</dc:creator>
      <content:encoded><![CDATA[Xin cái code kiểm tra số điện thoại đúng định dạng trong c# asp.net với cả nhà. Em đang code cái giỏ hàng, lúc khách đặt hàng, cần kiểm tra đúng định dạng số điện thoại mới cho lưu xuống database, vì sợ spam không đúng sđt hoặc khách hàng gõ không đúng số điện thoại. Cảm ơn]]></content:encoded>
      <slash:comments>2</slash:comments>
    </item>
    <item>
      <title>The ObjectContext instance has been disposed asp.net mvc c#</title>
      <pubDate>Mon, 09 Dec 2024 05:53:30 +0000</pubDate>
      <link>https://itseovn.com/threads/the-objectcontext-instance-has-been-disposed-asp-net-mvc-c.331793/</link>
      <guid>https://itseovn.com/threads/the-objectcontext-instance-has-been-disposed-asp-net-mvc-c.331793/</guid>
      <author>invalid@example.com (seolagi)</author>
      <dc:creator>seolagi</dc:creator>
      <content:encoded><![CDATA[Lỗi: The ObjectContext instance has been disposed and can no longer be used for operations that require a connection khi sử dụng cache MemoryCache để lưu trữ dữ liệu và sử dụng: override void Dispose, _context.Dispose() không sử dụng.<br />
<br />
Chạy web lần đầu thì không sao, nhưng khi chạy lần 2, cache nó gọi lên thì cái _context.Dispose() đã xóa dữ liệu liên kết, làm không thể kết nối được. Giờ làm sao để vượt qua được lỗi này.<br />


<div class="bbCodeBlock bbCodeCode">
	<div class="type">Mã:</div>
	<pre>
using (var _context = new YourDbContext())
{
    var data =...</pre>
</div><a href="https://itseovn.com/threads/the-objectcontext-instance-has-been-disposed-asp-net-mvc-c.331793/" class="internalLink">The ObjectContext instance has been disposed asp.net mvc c#</a>]]></content:encoded>
      <slash:comments>3</slash:comments>
    </item>
    <item>
      <title>Read text .txt file on other websites in c# MVC</title>
      <pubDate>Mon, 26 Jun 2023 11:41:38 +0000</pubDate>
      <link>https://itseovn.com/threads/read-text-txt-file-on-other-websites-in-c-mvc.325979/</link>
      <guid>https://itseovn.com/threads/read-text-txt-file-on-other-websites-in-c-mvc.325979/</guid>
      <author>invalid@example.com (seolagi)</author>
      <dc:creator>seolagi</dc:creator>
      <content:encoded><![CDATA[Mình muốn đọc toàn bộ nội dung trên 1 file text .txt trên 1 web nào đó thì làm như thế nào, cho mình code đọc file, lấy nội dung trong file text .txt của 1 website bất kỳ với.<br />
<br />
Ý là: hiện tại mình đang code 1 cái web, đọc file .text ở 1 web của khách hàng, để lấy nội dung trong file text đó index dữ liệu. Giúp mình cách lấy với, cảm ơn]]></content:encoded>
      <slash:comments>2</slash:comments>
    </item>
    <item>
      <title>Đọc ghi nối file text .txt trong c# như thế nào?</title>
      <pubDate>Sun, 25 Jun 2023 13:21:42 +0000</pubDate>
      <link>https://itseovn.com/threads/doc-ghi-noi-file-text-txt-trong-c-nhu-the-nao.325982/</link>
      <guid>https://itseovn.com/threads/doc-ghi-noi-file-text-txt-trong-c-nhu-the-nao.325982/</guid>
      <author>invalid@example.com (seolagi)</author>
      <dc:creator>seolagi</dc:creator>
      <content:encoded><![CDATA[Đọc ghi nối file text .txt trong c# như thế nào? hiện tại mình đang muốn đọc file .txt và ghi file vào trong file .txt này, và file được nối tiếp với nhau thì làm như thế nào? <br />
cho mình xin code đọc ghi file đơn giản nhanh trong c# mvc với, cảm ơn]]></content:encoded>
      <slash:comments>2</slash:comments>
    </item>
    <item>
      <title>Ignore SSL Certificate DownloadString WebClient read file .txt c# MVC</title>
      <pubDate>Fri, 23 Jun 2023 02:39:53 +0000</pubDate>
      <link>https://itseovn.com/threads/ignore-ssl-certificate-downloadstring-webclient-read-file-txt-c-mvc.325980/</link>
      <guid>https://itseovn.com/threads/ignore-ssl-certificate-downloadstring-webclient-read-file-txt-c-mvc.325980/</guid>
      <author>invalid@example.com (seolagi)</author>
      <dc:creator>seolagi</dc:creator>
      <content:encoded><![CDATA[Hiện tại mình đang sử dụng code dưới, để tải file text từ 1 website bất kỳ về web của mình để xử lý, nhưng khi <a href="https://itseovn.com/forums/download-phan-mem/" class="keywordReplace">download</a> đọc file read dưới dạng http thường thì tải đọc bình thường, nhưng khi đọc các file, các web có https thì không đọc được. Nó báo lỗi dưới.<br />
Có cách nào bỏ qua https (Ignore SSL Certificate) bỏ qua ssl mỗi khi đọc tải file .txt trên 1 web bất kỳ không giúp mình với. Cảm ơn<br />


<div class="bbCodeBlock bbCodeCode">
	<div class="type">Mã:</div>
	<pre>
var url = &quot;https://tenweb.com/text.txt&quot;;
var textFromFile = (new...</pre>
</div><a href="https://itseovn.com/threads/ignore-ssl-certificate-downloadstring-webclient-read-file-txt-c-mvc.325980/" class="internalLink">Ignore SSL Certificate DownloadString WebClient read file .txt c# MVC</a>]]></content:encoded>
      <slash:comments>2</slash:comments>
    </item>
    <item>
      <title>Redirect 301 images old to new image in asp.net mvc c#?</title>
      <pubDate>Sat, 25 Mar 2023 16:56:22 +0000</pubDate>
      <link>https://itseovn.com/threads/redirect-301-images-old-to-new-image-in-asp-net-mvc-c.325542/</link>
      <guid>https://itseovn.com/threads/redirect-301-images-old-to-new-image-in-asp-net-mvc-c.325542/</guid>
      <author>invalid@example.com (seolagi)</author>
      <dc:creator>seolagi</dc:creator>
      <content:encoded><![CDATA[Cho mình hỏi, hiện tại mình đang muốn redirect 301 hình ảnh cũ sang hình ảnh mới trong asp.net. mvc c# thì làm như thế nào. Hiện tại mình tìm mà không có ai chỉ cả.<br />
Bạn nào biết cách redirect 301 1 tấm hình cũ sang hình mới như thế nào trong asp.net mvc giúp mình với. Cảm ơn]]></content:encoded>
      <slash:comments>1</slash:comments>
    </item>
    <item>
      <title>Schema ld-Json Video Youtube Markup Google</title>
      <pubDate>Sat, 21 Jan 2023 01:53:40 +0000</pubDate>
      <link>https://itseovn.com/threads/schema-ld-json-video-youtube-markup-google.325418/</link>
      <guid>https://itseovn.com/threads/schema-ld-json-video-youtube-markup-google.325418/</guid>
      <author>invalid@example.com (seolagi)</author>
      <dc:creator>seolagi</dc:creator>
      <content:encoded><![CDATA[Code cấu trúc dữ liệu dạng ld-json video youtube của google trên 1 page có nhiều video youtube, add cấu trúc dữ liệu, sau đó add video youtube dạng json tải trang cho nhẹ website chuẩn 2023 của google được cập nhật mới nhất.<br />


<div class="bbCodeBlock bbCodeCode">
	<div class="type">Mã:</div>
	<pre>
&lt;script type=&quot;application/ld+json&quot;&gt;
{
    &quot;@context&quot;: &quot;https://schema.org&quot;,
    &quot;@type&quot;: &quot;ItemList&quot;,
    &quot;itemListElement&quot;: [
        {
            &quot;@type&quot;: &quot;ListItem&quot;,
            &quot;position&quot;: 1,
            &quot;item&quot;: {
                &quot;@type&quot;: &quot;VideoObject&quot;,...</pre>
</div><a href="https://itseovn.com/threads/schema-ld-json-video-youtube-markup-google.325418/" class="internalLink">Schema ld-Json Video Youtube Markup Google</a>]]></content:encoded>
    </item>
    <item>
      <title>Redirect 301 from one website to another using web.config asp.net</title>
      <pubDate>Fri, 29 Oct 2021 03:15:49 +0000</pubDate>
      <link>https://itseovn.com/threads/redirect-301-from-one-website-to-another-using-web-config-asp-net.323859/</link>
      <guid>https://itseovn.com/threads/redirect-301-from-one-website-to-another-using-web-config-asp-net.323859/</guid>
      <author>invalid@example.com (seolagi)</author>
      <dc:creator>seolagi</dc:creator>
      <content:encoded><![CDATA[<span style="font-family: 'helvetica'"><span style="color: rgb(20, 20, 20)">HI mọi người, mình đang muốn: Redirect 301 from one website to another using web.config asp.net nghĩa là mình muốn redirect 301 trong hosting <a href="https://itseovn.com/forums/vps-hosting-linux-windows/" class="keywordReplace">vps</a> máy chủ trong file web.config aps.net mvc redirect 301 chuyển hướng <b>url cũ</b> sang <b>url mới</b> thì làm như thế nào?<br />
<br />
VD: web của mình là google.com có <b>url cũ</b> (<b>url old</b>) là: <a href="https://itseovn.com/redirect/?url=https://google.com/abc-301-alll.html" target="_blank" class="externalLink" rel="nofollow">https://google.com/abc-301-alll.html</a> muốn redirect sang 1 website <b>url mới</b> <b>(url new)</b> là...</span></span><br />
<br />
<a href="https://itseovn.com/threads/redirect-301-from-one-website-to-another-using-web-config-asp-net.323859/" class="internalLink">Redirect 301 from one website to another using web.config asp.net</a>]]></content:encoded>
      <slash:comments>1</slash:comments>
    </item>
    <item>
      <title>Tự động thêm rel='nofollow' vào thẻ tag a Outlink ngoài trong Ckeditor</title>
      <pubDate>Mon, 25 Oct 2021 07:36:39 +0000</pubDate>
      <link>https://itseovn.com/threads/tu-dong-them-rel-nofollow-vao-the-tag-a-outlink-ngoai-trong-ckeditor.323832/</link>
      <guid>https://itseovn.com/threads/tu-dong-them-rel-nofollow-vao-the-tag-a-outlink-ngoai-trong-ckeditor.323832/</guid>
      <author>invalid@example.com (seolagi)</author>
      <dc:creator>seolagi</dc:creator>
      <content:encoded><![CDATA[Hiện tại cái Ckeditor trình soạn thảo văn bản của khi chèn outlink muốn chèn nofollow của tag a rel=nofollow cực quá, cứ copy chuyển sang Mã HTML add thêm nó vô.<br />
Có cách nào tự động trong cái trình soạn thảo văn bản Ckeditor, cứ thấy outlink là chèn rel=nofollow không mọi người. Bạn nào biết giúp mình với.<br />
<br />
Trình soạn thảo Ckeditor khi chèn link như dưới, nếu là link ngoài nó tự chèn rel=nofollow<br />


	<a href="https://itseovn.com/attachments/37397/" target="_blank">View attachment 37397</a>
	
<br />
<br />
Nó tự chèn vào như sau:<br />


	<a href="https://itseovn.com/attachments/37398/" target="_blank">View attachment 37398</a>]]></content:encoded>
      <slash:comments>3</slash:comments>
    </item>
    <item>
      <title>Lỗi: The Type or Namespace name 'MVC' does not exits in the 'System.Web'</title>
      <pubDate>Mon, 18 Oct 2021 05:24:30 +0000</pubDate>
      <link>https://itseovn.com/threads/loi-the-type-or-namespace-name-mvc-does-not-exits-in-the-system-web.323806/</link>
      <guid>https://itseovn.com/threads/loi-the-type-or-namespace-name-mvc-does-not-exits-in-the-system-web.323806/</guid>
      <author>invalid@example.com (seolagi)</author>
      <dc:creator>seolagi</dc:creator>
      <content:encoded><![CDATA[Tự nhiên website mình update từ visual studio 2017 lên 2019 thì bị lỗi rất nhiều, tuy lỗi thế nhưng khi chạy thì vẫn chạy bình thường, nó chỉ báo lỗi vậy thôi chứ khong đúng.<br />
<br />
Bạn nào chuyển code từ visual phiên bản cũ sang phiên bản mới mà bị lỗi này không giúp mình sửa lỗi với, mình xài visual studio 2019 phiên bản có activate bản quyền.<br />
<br />
Dotnet 4.7 y chang cái cũ mà lại bị lỗi này<br />
<br />


	<a href="https://itseovn.com/attachments/37394/" target="_blank">View attachment 37394</a>
	
 <br />
<br />
Lỗi như sau:<br />
<ul>
<li>Predefined type &#039;System.Object&#039; is not defined or...</li>
</ul><br />
<a href="https://itseovn.com/threads/loi-the-type-or-namespace-name-mvc-does-not-exits-in-the-system-web.323806/" class="internalLink">Lỗi: The Type or Namespace name &#039;MVC&#039; does not exits in the &#039;System.Web&#039;</a>]]></content:encoded>
      <slash:comments>2</slash:comments>
    </item>
    <item>
      <title>Download File cài đặt và Key Visual Studio 2019 Professional + Enterprise full bản quyền</title>
      <pubDate>Sun, 10 Oct 2021 11:35:37 +0000</pubDate>
      <link>https://itseovn.com/threads/download-file-cai-dat-va-key-visual-studio-2019-professional-enterprise-full-ban-quyen.323770/</link>
      <guid>https://itseovn.com/threads/download-file-cai-dat-va-key-visual-studio-2019-professional-enterprise-full-ban-quyen.323770/</guid>
      <author>invalid@example.com (admin)</author>
      <dc:creator>admin</dc:creator>
      <content:encoded><![CDATA[Bộ cài đặt download File cài đặt và Key: Visual Studio 2019 Professional và Visual Studio 2019 Enterprise full cài đặt và key bản quyền 100% từ nhà cung cấp.<br />
<br />
Phiên bản cài đặt được tải trực tiếp từ nhà cung cấp nên các bạn yên tâm cài đặt, dữ liệu được download từ máy chủ nhà cung cấp Visual Studio về.<br />
<br />
Visual Studio được cung cấp bởi Microsoft là 1 <a href="https://itseovn.com/forums/lap-trinh-phan-mem/" class="keywordReplace">phần mềm</a> lập trình khá nổi tiếng bao gồm các ngôn ngữ như: VB+, C#, C++,... có rất nhiều phiên bản từ Visual Studo 2005 đến 2021 và ngày càng...<br />
<br />
<a href="https://itseovn.com/threads/download-file-cai-dat-va-key-visual-studio-2019-professional-enterprise-full-ban-quyen.323770/" class="internalLink">Download File cài đặt và Key Visual Studio 2019 Professional + Enterprise full bản quyền</a>]]></content:encoded>
    </item>
    <item>
      <title>Redirect 301 trên Global.asax trong asp.net c# 100% thành công</title>
      <pubDate>Fri, 15 Jan 2021 03:17:18 +0000</pubDate>
      <link>https://itseovn.com/threads/redirect-301-tren-global-asax-trong-asp-net-c-100-thanh-cong.315558/</link>
      <guid>https://itseovn.com/threads/redirect-301-tren-global-asax-trong-asp-net-c-100-thanh-cong.315558/</guid>
      <author>invalid@example.com (admin)</author>
      <dc:creator>admin</dc:creator>
      <content:encoded><![CDATA[Hôm qua có bạn hỏi mình cách Redirect 301 từ liên kết A sang liên kết B trên tập tin Global.asax trong asp.net c# như thế nào vì bạn có tìm hiểu trên mạng nhưng code không redirect dạng 301 được.<br />
<br />
Để Redirect 301 trong tập tin Global.asax bạn vào method của Application_BeginRequest thêm vào như sau:<br />


<div class="bbCodeBlock bbCodeCode">
	<div class="type">Mã:</div>
	<pre>void Application_BeginRequest(object sender, EventArgs e)
{
    // Code that runs on every request
    if...</pre>
</div><a href="https://itseovn.com/threads/redirect-301-tren-global-asax-trong-asp-net-c-100-thanh-cong.315558/" class="internalLink">Redirect 301 trên Global.asax trong asp.net c# 100% thành công</a>]]></content:encoded>
      <slash:comments>1</slash:comments>
    </item>
    <item>
      <title>Xem Key visual studio professional và Enterprise 2017 bản quyền trọn đời</title>
      <pubDate>Wed, 23 Dec 2020 06:00:38 +0000</pubDate>
      <link>https://itseovn.com/threads/xem-key-visual-studio-professional-va-enterprise-2017-ban-quyen-tron-doi.321844/</link>
      <guid>https://itseovn.com/threads/xem-key-visual-studio-professional-va-enterprise-2017-ban-quyen-tron-doi.321844/</guid>
      <author>invalid@example.com (seolagi)</author>
      <dc:creator>seolagi</dc:creator>
      <content:encoded><![CDATA[Xem Key visual studio professional và Enterprise 2017 bản quyền trọn đời với các bạn, hiện tại cái của mình nó hết bản dùng thử, giờ mở lên là nó tự tắt đi đóng lại hiccc, mình đang xài bản visual studio 2017 professional.<br />
Bạn nào có key bản quyền chia sẻ mình với, mình muốn kích hoạt để lập trình web asp.net mvc.<br />
Bạn nào có key bản quyền mất phí cũng được, chia sẻ cho mình với ạ<br />
Cảm ơn các bạn.]]></content:encoded>
      <slash:comments>1</slash:comments>
    </item>
    <item>
      <title>Tính tỷ lệ phần trăm giảm giá trong c# như thế nào?</title>
      <pubDate>Wed, 16 Dec 2020 08:41:15 +0000</pubDate>
      <link>https://itseovn.com/threads/tinh-ty-le-phan-tram-giam-gia-trong-c-nhu-the-nao.321794/</link>
      <guid>https://itseovn.com/threads/tinh-ty-le-phan-tram-giam-gia-trong-c-nhu-the-nao.321794/</guid>
      <author>invalid@example.com (seolagi)</author>
      <dc:creator>seolagi</dc:creator>
      <content:encoded><![CDATA[Hi mọi người giúp em cái cách tính lấy %(Percentage) tỷ lệ giảm giá của sản phẩm giữa giá cũ và giá mới với ạ.<br />
<br />
VD: em có sản phẩm có giá 100.000đ và giá giảm là 90.000đ. Mình ướng tính là biết giảm 10% vậy? làm sao để lấy ra hiển thị cho người dùng thấy giảm 10% ạ.<br />


<div class="bbCodeBlock bbCodeCode">
	<div class="type">Mã:</div>
	<pre>var price= 100;
var pricenew = 90;
string Percentage =  100 - 90; //sao ra 10% ?</pre>
</div>]]></content:encoded>
      <slash:comments>2</slash:comments>
    </item>
    <item>
      <title>Đổi tên, Move, Rename File và Folder trong asp.net, C#</title>
      <pubDate>Mon, 14 Dec 2020 08:33:11 +0000</pubDate>
      <link>https://itseovn.com/threads/doi-ten-move-rename-file-va-folder-trong-asp-net-c.240395/</link>
      <guid>https://itseovn.com/threads/doi-ten-move-rename-file-va-folder-trong-asp-net-c.240395/</guid>
      <author>invalid@example.com (admin)</author>
      <dc:creator>admin</dc:creator>
      <content:encoded><![CDATA[Trong asp.net sử dụng code C# không có lệnh đổi tên thư mục, Rename thư mục, tập tin, file, folder mà chúng ta chỉ có lệnh di chuyển tập tin, file, folder, thư mục trong c# thôi. Nên ta có thể sử dụng lệnh Move, di chuyển để đổi tên hoàn toàn dễ dàng và đơn giản với code được hỗ trợ bởi thư viện IO của C#.<br />
<br />
<b>Sử dụng thư viện:</b> using System.IO;<br />
<br />
<b>Lênh Code đổi tên file, tập tin, Rename trong C#, ASP.NET</b><br />


<div class="bbCodeBlock bbCodeCode">
	<div class="type">Mã:</div>
	<pre>
string path = Server.MapPath(&quot;~&quot;);
string Fromfile = path +...</pre>
</div><a href="https://itseovn.com/threads/doi-ten-move-rename-file-va-folder-trong-asp-net-c.240395/" class="internalLink">Đổi tên, Move, Rename File và Folder trong asp.net, C#</a>]]></content:encoded>
      <slash:comments>1</slash:comments>
    </item>
    <item>
      <title>Hàm split() chuỗi string và duyệt chuỗi trong javascript</title>
      <pubDate>Wed, 25 Nov 2020 14:11:14 +0000</pubDate>
      <link>https://itseovn.com/threads/ham-split-chuoi-string-va-duyet-chuoi-trong-javascript.321583/</link>
      <guid>https://itseovn.com/threads/ham-split-chuoi-string-va-duyet-chuoi-trong-javascript.321583/</guid>
      <author>invalid@example.com (seolagi)</author>
      <dc:creator>seolagi</dc:creator>
      <content:encoded><![CDATA[Hàm split() chuỗi string và duyệt chuỗi trong <a href="https://itseovn.com/forums/javascript-js/" class="keywordReplace">javascript</a><br />
<br />
Code Javascript Split()<br />


<div class="bbCodeBlock bbCodeHtml">
	<div class="type">HTML:</div>
	<pre>
&lt;button onclick=&quot;myFunction()&quot;&gt;Try it&lt;/button&gt;
&lt;p id=&quot;demosplit&quot;&gt;&lt;/p&gt;
&lt;script&gt;
function myFunction() {
  var str = &quot;Chuỗi của bạn cần tách bởi đấu khoảng trắng&quot;;
  var res = str.split(&quot; &quot;);
  document.getElementById(&quot;demosplit&quot;).innerHTML = res;
}
&lt;/script&gt;
</pre>
</div><ul>
<li>Giá trị nhận được sẽ là 1 mảng ký tự: Chuỗi,của,bạn,cần,tách,bởi,đấu,khoảng,trắng</li>
</ul>Duyệt mảng sau khi Split()<br />


<div class="bbCodeBlock bbCodeCode">
	<div class="type">Mã:</div>
	<pre>...</pre>
</div><a href="https://itseovn.com/threads/ham-split-chuoi-string-va-duyet-chuoi-trong-javascript.321583/" class="internalLink">Hàm split() chuỗi string và duyệt chuỗi trong javascript</a>]]></content:encoded>
    </item>
    <item>
      <title>Lấy chiều cao và rộng của HttpPostedFileBase, get width Height HttpPostedFileBase</title>
      <pubDate>Wed, 25 Nov 2020 14:08:20 +0000</pubDate>
      <link>https://itseovn.com/threads/lay-chieu-cao-va-rong-cua-httppostedfilebase-get-width-height-httppostedfilebase.321581/</link>
      <guid>https://itseovn.com/threads/lay-chieu-cao-va-rong-cua-httppostedfilebase-get-width-height-httppostedfilebase.321581/</guid>
      <author>invalid@example.com (seolagi)</author>
      <dc:creator>seolagi</dc:creator>
      <content:encoded><![CDATA[Cho mình xin code lấy chiều cao và rộng của HttpPostedFileBase như thế nào vậy?, get width Height HttpPostedFileBase.<br />
<br />
Mình truyền HttpPostedFileBase từ javascript bằng formdata.append qua c# thông qua ajax ý. <br />
<br />
Trong code mình gọi ra bằng: HttpFileCollectionBase files = Request.Files, sau đó  HttpPostedFileBase file = files<i> để lấy file.</i>]]></content:encoded>
      <slash:comments>2</slash:comments>
    </item>
    <item>
      <title>Html.FormatValue datetime ngày tháng năm giờ phút giây sáng chiều như thế nào?</title>
      <pubDate>Thu, 22 Oct 2020 07:40:10 +0000</pubDate>
      <link>https://itseovn.com/threads/html-formatvalue-datetime-ngay-thang-nam-gio-phut-giay-sang-chieu-nhu-the-nao.321172/</link>
      <guid>https://itseovn.com/threads/html-formatvalue-datetime-ngay-thang-nam-gio-phut-giay-sang-chieu-nhu-the-nao.321172/</guid>
      <author>invalid@example.com (seolagi)</author>
      <dc:creator>seolagi</dc:creator>
      <content:encoded><![CDATA[Mình sửa dụng Html.FormatValue datetime mình muốn lấy ngày tháng năm giờ phút giây sáng chiều như thế nào? VD: 22-10-2020 14:13 CH thì làm như thế nào giúp mình với. Lấy đầy đủ tất cả ra như ví dụ của mình thì làm như thế nào với cái Format datetime, cảm ơn]]></content:encoded>
      <slash:comments>1</slash:comments>
    </item>
    <item>
      <title>Lỗi .woff2 404 - File or directory not found trên iis windows</title>
      <pubDate>Thu, 15 Oct 2020 04:17:48 +0000</pubDate>
      <link>https://itseovn.com/threads/loi-woff2-404-file-or-directory-not-found-tren-iis-windows.321042/</link>
      <guid>https://itseovn.com/threads/loi-woff2-404-file-or-directory-not-found-tren-iis-windows.321042/</guid>
      <author>invalid@example.com (seolagi)</author>
      <dc:creator>seolagi</dc:creator>
      <content:encoded><![CDATA[Cái fonts chữ của mình có đuôi .woff2 và .woff nó truy cập không được trên iis 8 của mình, trong khi file có trong hệ thống, các file đuôi khác thì truy cập bình thường, còn các đuôi woff nó không truy cập được báo lỗi dưới.<br />
<br />
Giúp mình với<br />
<br />
<span style="font-size: 18px"><b>404 - File or directory not found.</b></span><br />
<span style="font-size: 15px"><b>The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.</b></span>]]></content:encoded>
      <slash:comments>1</slash:comments>
    </item>
    <item>
      <title>Tối ưu tốc độ PageSpeed MVC asp.net toàn tập</title>
      <pubDate>Thu, 17 Sep 2020 17:14:22 +0000</pubDate>
      <link>https://itseovn.com/threads/toi-uu-toc-do-pagespeed-mvc-asp-net-toan-tap.320598/</link>
      <guid>https://itseovn.com/threads/toi-uu-toc-do-pagespeed-mvc-asp-net-toan-tap.320598/</guid>
      <author>invalid@example.com (admin)</author>
      <dc:creator>admin</dc:creator>
      <content:encoded><![CDATA[<b>Demo web: <a href="https://lovemama.vn" target="_blank" target="_blank" class="externalLink WhiteListed" rel="nofollow">https://lovemama.vn</a> (web mvc5)<br />
<br />


	<a href="https://itseovn.com/attachments/37157/" target="_blank">View attachment 37157</a>
	
 <br />
</b><br />
<span style="font-size: 18px"><span style="color: #b30000"><b>1. Rel=preload fonts fontawesome và fonts website</b></span></span><br />
<ul>
<li>Web của bạn gặp lỗi yêu cầu tải fonts trước &#039;preload&#039;.</li>
<li>Khắp phục lỗi này bạn lên header web chèn code sau vào.</li>
</ul>

<div class="bbCodeBlock bbCodeHtml">
	<div class="type">HTML:</div>
	<pre>
&lt;link rel=&quot;preload&quot; as=&quot;font&quot; href=&quot;/fonts/fontawesome-webfont.woff?v=4.2.0&quot; type=&quot;font/woff2&quot; crossorigin=&quot;anonymous&quot;&gt;
&lt;link rel=&quot;preload&quot; as=&quot;font&quot;...</pre>
</div><a href="https://itseovn.com/threads/toi-uu-toc-do-pagespeed-mvc-asp-net-toan-tap.320598/" class="internalLink">Tối ưu tốc độ PageSpeed MVC asp.net toàn tập</a>]]></content:encoded>
    </item>
    <item>
      <title>Dùng Ajax truyền reCAPTCHA value vào controller như thế nào? mvc c#</title>
      <pubDate>Fri, 10 Apr 2020 05:45:16 +0000</pubDate>
      <link>https://itseovn.com/threads/dung-ajax-truyen-recaptcha-value-vao-controller-nhu-the-nao-mvc-c.318481/</link>
      <guid>https://itseovn.com/threads/dung-ajax-truyen-recaptcha-value-vao-controller-nhu-the-nao-mvc-c.318481/</guid>
      <author>invalid@example.com (seolagi)</author>
      <dc:creator>seolagi</dc:creator>
      <content:encoded><![CDATA[HI mọi người, em muốn check recaptcha trong ajax truyền từ jquery javascript vào trong controller của web, mà em không biết truyền và lấy nó như thế nào. Code em ở bên dưới, bạn nào biết giúp em với ạ. Giúp em cách dùng Ajax truyền reCAPTCHA value vào controller như thế nào? mvc c#<br />
<br />
<b>Tại View em chèn</b><br />


<div class="bbCodeBlock bbCodeHtml">
	<div class="type">HTML:</div>
	<pre>&lt;div class=&quot;g-recaptcha&quot; data-sitekey=&quot;@recaptchaPublickey&quot;&gt;&lt;/div&gt;</pre>
</div><b>Tại footer em chèn</b><br />


<div class="bbCodeBlock bbCodeHtml">
	<div class="type">HTML:</div>
	<pre>
&lt;script&gt;
$(&quot;#btnSubmit&quot;).click(function () {
        var rname =...</pre>
</div><a href="https://itseovn.com/threads/dung-ajax-truyen-recaptcha-value-vao-controller-nhu-the-nao-mvc-c.318481/" class="internalLink">Dùng Ajax truyền reCAPTCHA value vào controller như thế nào? mvc c#</a>]]></content:encoded>
      <slash:comments>1</slash:comments>
    </item>
    <item>
      <title>Cách đổi Inch sang Pixel (In to Px) mà lập trình viên nên biết</title>
      <pubDate>Thu, 26 Mar 2020 03:49:43 +0000</pubDate>
      <link>https://itseovn.com/threads/cach-doi-inch-sang-pixel-in-to-px-ma-lap-trinh-vien-nen-biet.315726/</link>
      <guid>https://itseovn.com/threads/cach-doi-inch-sang-pixel-in-to-px-ma-lap-trinh-vien-nen-biet.315726/</guid>
      <author>invalid@example.com (admin)</author>
      <dc:creator>admin</dc:creator>
      <content:encoded><![CDATA[Cách tính Inch tương ứng với số Pixel trên màn hình trong lập trình website rất cần thiết, số in tương ứng với số px mà rất nhiều bạn lập trình viên không biết rõ.<br />
<br />
<b>Cách tính In và px như sau:</b><br />
<ul>
<li>1 in = 96 pixel (X)</li>
<li>1 pixel (X) = 0.0104166667 in</li>
</ul><b>Ví dụ:</b> <br />
<ul>
<li>Đổi màn hình điện thoại có số inch là 5.8 thành bao nhiêu pixel thì làm như sau:</li>
<li>5.8 in = 5.8 x 96 = 556.8 pixel (X)</li>
</ul><b>Bảng Inch thông dụng đổi sang pixel</b><br />
<br />
<table width="94%" border="1" align="center"><tr><td class="tditseovn">Inch...</td></tr></table><a href="https://itseovn.com/threads/cach-doi-inch-sang-pixel-in-to-px-ma-lap-trinh-vien-nen-biet.315726/" class="internalLink">Cách đổi Inch sang Pixel (In to Px) mà lập trình viên nên biết</a>]]></content:encoded>
      <slash:comments>1</slash:comments>
    </item>
    <item>
      <title>Lọc toàn bộ Email trong 1 file, 1 trang web, chuỗi html với asp.net (c#)</title>
      <pubDate>Wed, 04 Mar 2020 07:23:17 +0000</pubDate>
      <link>https://itseovn.com/threads/loc-toan-bo-email-trong-1-file-1-trang-web-chuoi-html-voi-asp-net-c.177377/</link>
      <guid>https://itseovn.com/threads/loc-toan-bo-email-trong-1-file-1-trang-web-chuoi-html-voi-asp-net-c.177377/</guid>
      <author>invalid@example.com (phamcongson)</author>
      <dc:creator>phamcongson</dc:creator>
      <content:encoded><![CDATA[Việc lọc email trong 1 chuỗi hay 1 trang web, hay 1 file text chứa tùm lum các ký tự chữ số,.. và email khá quan trọng khi bạn có 1 list Email từ gmail, nhưng khi lấy về nó lại lộn xộn gồm email và chữ dính vào không thể copy bằng tay được.<br />
<br />
Code lấy toàn bộ email trong 1 file text chứa lung tung các ký tự,.. làm như sau:<br />
<br />
<b>Sử dụng thư viện</b><br />


<div class="bbCodeBlock bbCodeCode">
	<div class="type">Mã:</div>
	<pre>
using System.Text.RegularExpressions;
</pre>
</div><b>Code Lọc Email</b><br />


<div class="bbCodeBlock bbCodeCode">
	<div class="type">Mã:</div>
	<pre>
public void LocEmail()
{
        //Lấy đường dẫn chứa file linh...</pre>
</div><a href="https://itseovn.com/threads/loc-toan-bo-email-trong-1-file-1-trang-web-chuoi-html-voi-asp-net-c.177377/" class="internalLink">Lọc toàn bộ Email trong 1 file, 1 trang web, chuỗi html với asp.net (c#)</a>]]></content:encoded>
      <slash:comments>14</slash:comments>
    </item>
    <item>
      <title>Xóa link, url trong chuỗi code HTML sử dụng asp.net (C#)</title>
      <pubDate>Mon, 16 Dec 2019 09:36:04 +0000</pubDate>
      <link>https://itseovn.com/threads/xoa-link-url-trong-chuoi-code-html-su-dung-asp-net-c.177162/</link>
      <guid>https://itseovn.com/threads/xoa-link-url-trong-chuoi-code-html-su-dung-asp-net-c.177162/</guid>
      <author>invalid@example.com (admin)</author>
      <dc:creator>admin</dc:creator>
      <content:encoded><![CDATA[Trong lập trình, khi bạn lấy dữ liệu toàn bộ 1 web hoặc bài viết của 1 website thường bị dính url, đường dẫn, link trong 1 chuỗi, 1 đoạn code hoặc bài viết đó.<br />
Việc tìm kiếm và xóa link, url này khá phức tạp nếu bạn sử dụng code thủ công. Hôm nay mình hướng dẫn các bạn đoạn code sử dụng thư viện <b>RegularExpressions </b>với hàm<b> Regex</b> với chuỗi ký tự tìm kiếm.<br />


<div class="bbCodeBlock bbCodeCode">
	<div class="type">Mã:</div>
	<pre>
Regex.Replace(str, @&quot;&lt;a\b[^&gt;]+&gt;([^&lt;]*(?:(?!&lt;/a)&lt;[^&lt;]*)*)&lt;/a&gt;&quot;, &quot;$1&quot;)
</pre>
</div><ul>
<li>Với str là chuỗi được truyền vào...</li>
</ul><br />
<a href="https://itseovn.com/threads/xoa-link-url-trong-chuoi-code-html-su-dung-asp-net-c.177162/" class="internalLink">Xóa link, url trong chuỗi code HTML sử dụng asp.net (C#)</a>]]></content:encoded>
      <slash:comments>13</slash:comments>
    </item>
    <item>
      <title>Lấy đường dẫn(địa chỉ) url của trang web hiện tại trong asp.net</title>
      <pubDate>Wed, 20 Nov 2019 09:06:32 +0000</pubDate>
      <link>https://itseovn.com/threads/lay-duong-dan-dia-chi-url-cua-trang-web-hien-tai-trong-asp-net.182/</link>
      <guid>https://itseovn.com/threads/lay-duong-dan-dia-chi-url-cua-trang-web-hien-tai-trong-asp-net.182/</guid>
      <author>invalid@example.com (admin)</author>
      <dc:creator>admin</dc:creator>
      <content:encoded><![CDATA[Để lấy được url, tên host, đường dẫn web trong ngôn ngữ asp.net bạn làm như sau:<br />
<br />
<span style="color: #b30000"><b>1. Lấy địa chỉ web đã được RewiteURL và Hosting</b></span><br />
<b><br />
VD lấy :</b> threads/lay-duong-dan-dia-chi-url-cua-trang-web-hien-tai-trong-asp-net.182/<br />


<div class="bbCodeBlock bbCodeCode">
	<div class="type">Mã:</div>
	<pre>
string url= HttpContext.Current.Request.RawUrl.ToString();
</pre>
</div><b>VD lấy hosting:</b> itseovn.com<br />


<div class="bbCodeBlock bbCodeCode">
	<div class="type">Mã:</div>
	<pre>
string strHost = HttpContext.Current.Request.Url.Host.ToString();
</pre>
</div><span style="color: #b30000"><b>2. Lấy địa chỉ URL toàn bộ trang...</b></span><br />
<br />
<a href="https://itseovn.com/threads/lay-duong-dan-dia-chi-url-cua-trang-web-hien-tai-trong-asp-net.182/" class="internalLink">Lấy đường dẫn(địa chỉ) url của trang web hiện tại trong asp.net</a>]]></content:encoded>
      <slash:comments>2</slash:comments>
    </item>
    <item>
      <title>Sử dụng ValidateInput và AllowHtml trong HTML Asp.net MVC(C#)</title>
      <pubDate>Wed, 20 Nov 2019 09:04:06 +0000</pubDate>
      <link>https://itseovn.com/threads/su-dung-validateinput-va-allowhtml-trong-html-asp-net-mvc-c.271421/</link>
      <guid>https://itseovn.com/threads/su-dung-validateinput-va-allowhtml-trong-html-asp-net-mvc-c.271421/</guid>
      <author>invalid@example.com (admin)</author>
      <dc:creator>admin</dc:creator>
      <content:encoded><![CDATA[Sử dụng ValidateInput và AllowHtml trong HTML Asp.net MVC(C#) là 2 phần bổ trợ thêm cho ASP.NE MVC có thêm ngoại lệ khi người dùng gõ mã HTML vào Input được phép lưu xuống database.<br />
<br />
Vì mặc định của asp.net mvc sẽ không cho phép html được chèn xuống databse để tránh hacker tấn công web.<br />
<br />
Để bỏ mặc định cho phép người dùng chèn mã HTML vào thì asp.net MVC C# cho bạn 2 lựa chọn sử sủ dụng ValidateInput hoặc AllowHtml.<br />
<br />
Nếu không cho phép chèn HTML mà bạn cố chèn thì web bạn mặc định sẽ báo như...<br />
<br />
<a href="https://itseovn.com/threads/su-dung-validateinput-va-allowhtml-trong-html-asp-net-mvc-c.271421/" class="internalLink">Sử dụng ValidateInput và AllowHtml trong HTML Asp.net MVC(C#)</a>]]></content:encoded>
      <slash:comments>1</slash:comments>
    </item>
    <item>
      <title>Xóa ký tự đặc biệt Remove Character đầu hoặc cuối chuỗi c# asp.net mvc</title>
      <pubDate>Sat, 13 Jul 2019 15:01:20 +0000</pubDate>
      <link>https://itseovn.com/threads/xoa-ky-tu-dac-biet-remove-character-dau-hoac-cuoi-chuoi-c-asp-net-mvc.298204/</link>
      <guid>https://itseovn.com/threads/xoa-ky-tu-dac-biet-remove-character-dau-hoac-cuoi-chuoi-c-asp-net-mvc.298204/</guid>
      <author>invalid@example.com (admin)</author>
      <dc:creator>admin</dc:creator>
      <content:encoded><![CDATA[<span style="color: #b30000"><b>Cách xóa ký tự đặc biệt remove character ở đầu chuỗi hoặc cuối chuỗi trong C# asp.net MVC như thế nào? hôm nay itseovn sẽ hướng dẫn chi tiết các bạn như sau:</b></span><br />
<ul>
<li><b>Key serch:</b> xóa ký tự cuối cùng hay đầu chuỗi hay bất kỳ trong c#</li>
</ul><h2 class="theh2">Cách 1: Xóa theo vị trí cần xác định</h2><br />
<h3 class="theh3">Xóa ký tự đặc biệt hay chỉ định bất kỳ ở đầu chuỗi:</h3><br />
<ul>
<li><b>TrimStart(KyTuCanXoa)</b></li>
<li>Hàm xóa đầu chuỗi những ký tự hoặc chuỗi ký tự được truyền vào.</li>
<li>Có...</li>
</ul><br />
<a href="https://itseovn.com/threads/xoa-ky-tu-dac-biet-remove-character-dau-hoac-cuoi-chuoi-c-asp-net-mvc.298204/" class="internalLink">Xóa ký tự đặc biệt Remove Character đầu hoặc cuối chuỗi c# asp.net mvc</a>]]></content:encoded>
    </item>
    <item>
      <title>Replace tất cả email address trong chuỗi string truyền vào asp.net c# MVC</title>
      <pubDate>Thu, 20 Jun 2019 08:49:50 +0000</pubDate>
      <link>https://itseovn.com/threads/replace-tat-ca-email-address-trong-chuoi-string-truyen-vao-asp-net-c-mvc.294260/</link>
      <guid>https://itseovn.com/threads/replace-tat-ca-email-address-trong-chuoi-string-truyen-vao-asp-net-c-mvc.294260/</guid>
      <author>invalid@example.com (seolagi)</author>
      <dc:creator>seolagi</dc:creator>
      <content:encoded><![CDATA[<b>Mình có cái chuỗi </b><br />
<br />
string = &quot;chào mừng các bạn tới với website diễn đàn, mọi thông tin vui lòng liên hệ email: <a href="mailto:seo@gmail.com">seo@gmail.com</a> hoặc <a href="mailto:suport@pharma360.vn">suport@pharma360.vn</a>, chúng tôi xin chân thành cảm ơn.&quot;<br />
<br />
<b>Giờ mình muốn code replace tất cả Email khúc đầu của nó thành</b><br />
<br />
kết quả = &quot;<span style="color: #b30000"><i>chào mừng các bạn tới với website diễn đàn, mọi thông tin vui lòng liên hệ email: (Email đã bị ẩn)xxx@gmail.com hoặc <i>(Email đã bị ẩn)</i><a href="mailto:xxx@pharma360.vn">xxx@pharma360.vn</a>,...</i></span><br />
<br />
<a href="https://itseovn.com/threads/replace-tat-ca-email-address-trong-chuoi-string-truyen-vao-asp-net-c-mvc.294260/" class="internalLink">Replace tất cả email address trong chuỗi string truyền vào asp.net c# MVC</a>]]></content:encoded>
      <slash:comments>3</slash:comments>
    </item>
    <item>
      <title>Redirect default.aspx to root home 301 in web.config asp.net c#</title>
      <pubDate>Wed, 14 Nov 2018 16:41:22 +0000</pubDate>
      <link>https://itseovn.com/threads/redirect-default-aspx-to-root-home-301-in-web-config-asp-net-c.280266/</link>
      <guid>https://itseovn.com/threads/redirect-default-aspx-to-root-home-301-in-web-config-asp-net-c.280266/</guid>
      <author>invalid@example.com (seolagi)</author>
      <dc:creator>seolagi</dc:creator>
      <content:encoded><![CDATA[Hiện tại web mình khi gõ domian/default.aspx thì nó không chuyển sang trang chủ, giờ làm sao để redirect trang default.aspx sang trang chủ, root của web dưới dạng 301 là chuyễn vĩnh viễn ý. Chuyển trong web.config làm như thế nào giúp mình với. <br />
Cảm ơn]]></content:encoded>
      <slash:comments>1</slash:comments>
    </item>
    <item>
      <title>Lấy Id Event OnClick Button trong Page_Load asp.net c#</title>
      <pubDate>Wed, 31 Oct 2018 02:07:26 +0000</pubDate>
      <link>https://itseovn.com/threads/lay-id-event-onclick-button-trong-page_load-asp-net-c.278307/</link>
      <guid>https://itseovn.com/threads/lay-id-event-onclick-button-trong-page_load-asp-net-c.278307/</guid>
      <author>invalid@example.com (seolagi)</author>
      <dc:creator>seolagi</dc:creator>
      <content:encoded><![CDATA[Hi mọi người, mình có cái buttion click event Onclick từ page .aspx làm sao để bắt được sự kiện id tên của event này là btnSave hay btnDelete được trong Page_Load vậy? Code của mình ở dưới.<br />
<br />
Ý mình muốn là khi người dùng click vào btnSave tức là sự kiện OnClick=&quot;btnSave_Click&quot; khi load vào trong Page_Load  mình sẽ bắt được sự kiện đó là btnSave hay btnDelete ý. Để mình phân biệt được mà xử lý dữ liệu.<br />
<br />
<b>Trong file .aspx</b><br />


<div class="bbCodeBlock bbCodeCode">
	<div class="type">Mã:</div>
	<pre>
&lt;asp:Button ID=&quot;btnSave&quot; runat=&quot;server&quot; Text=&quot;Lưu&quot;...</pre>
</div><a href="https://itseovn.com/threads/lay-id-event-onclick-button-trong-page_load-asp-net-c.278307/" class="internalLink">Lấy Id Event OnClick Button trong Page_Load asp.net c#</a>]]></content:encoded>
      <slash:comments>3</slash:comments>
    </item>
  </channel>
</rss>
