ASP / ASP.net

ASP (VB, C#) / PHP code reference

ASP (vb.net and c#.net) and PHP are the most common language for web development environment. This are not the fully conversion of one to other but get a quick references. We could get the ASP Convertor for free from the net but this might help to the developer when we work in different cross language or want to learn the basic syntax of similar different languages. More >

The file web.sitemap required by XmlSiteMapProvider does not exist.

The most common case when the “The file web.sitemap required by XmlSiteMapProvider does not exist” error is received is when a SiteMap control was added to a WebForm, however you don’t have a mandatory Web.sitemap file in the root of your web application.
To fix this error, make sure you have this file in the root directory, and that it is a valid XML file that has the website’s sitemap defined. An example Web.sitemap file can be seen below:

<?xml version=1.0 encoding=utf-8 ?>

<siteMap xmlns=http://schemas.microsoft.com/AspNet/SiteMap-File-1.0 >

<siteMapNode url=Default.aspxtitle=Geekpedia description=Home Page of Geekpedia.com >

<siteMapNode url=Register.aspx title=Registration description=Register a new account. />

<siteMapNode url=SignIn.aspx title=Sign-In description=Sign-in into your existing account. />

</siteMapNode>

</siteMap>

The ASP.NET Repeater Web Server Control

<asp:Repeater id="myRepeaterPlain" runat="server">
  <ItemTemplate>
    <%# DataBinder.Eval(Container.DataItem, "Id") %>,
    <%# DataBinder.Eval(Container.DataItem, "Name") %>,
    <%# DataBinder.Eval(Container.DataItem, "URL") %>,
    <%# DataBinder.Eval(Container.DataItem, "Image") %>
    <br />
  </ItemTemplate>
</asp:Repeater>

Include files with asp.net

 

An ASP.NET include, or server-side include, is a plain HTML, HTML/ASP.NET, or ASP.NET-only file that sits outside of a parent Web page. The power of a simple include file is tremendous—it allows you to re-use content that will appear on multiple pages throughout your site. Instead of making the same change 100 times to update 100 pages, you could use an include, update the include file once and have the change populated across all 100 pages. Nice, huh? More >