Programming in .NET – part 9 -site map and localization

The site map is relatively easy: Add a new item – find “Site Map” and accept the default name (Web.sitemap) And put the following <?xml version=“1.0“ encoding=“utf-8“ ?> <siteMap xmlns=“http://schemas.microsoft.com/AspNet/SiteMap-File-1.0“ >   <siteMapNode url=“default.aspx“ title=“Main“  description=“First Page“>     <siteMapNode url=“frmPublisherList.aspx“ title=“All publishers“  description=“Publishers list“ >       <siteMapNode url=“frmPublisher_Insert.aspx“ title=“New Publisher“ description=“Add new“></siteMapNode>       <siteMapNode url=“frmPublisher_Edit.aspx“ […]

Continue reading →

tutorial .NET – p8 – edit in ASP.NET

  Now we will edit the Publisher objects . Add a new WebForm , name it frmPublisher_Insert.aspx and make sure the “Place code in separate file” and “Select master page” are both selected by default. Change in source view the title from “Untitled Page” to “Insert Publisher” Now we must put controls in place to […]

Continue reading →

cu ce m-am mai batut in ultimul timp

cu optimizare aplicatie sa mearga mai repede – si am reusit sa gasesc articolul astahttp://www.mostlylucid.co.uk/archive/2003/12/09/664.aspx in care spune ca intr-un gridview e mai rapid sa faci conversia la obiect + proprietati decit eval -care foloseste late binding adica – folositi asta  <asp:Label ID=”lblNume” runat=”server” Text='<%# string.Format(“iata {0}”,((obiect)Container.DataItem).nume) %>’ ></asp:Label> in loc de asta <asp:Label ID=”lblNume” […]

Continue reading →

App_LocalResources si meta:resourcekey

Urasc programatorii fara imaginatie! Am incercat sa folosesc meta:resourcekey ca sa traduc automat in Engleza si in Romana.Am creat fisierele nume.aspx.en.resx si nume.aspx.ro.resx, am pus meta:resourcekey , am pus codul de schimbare de limba in Application_BeginRequest si … nimic… TREBUIE SA FIE SI nume.aspx.resx PENTRU INVARIANT CULTURE … altfel nu merge!De ce naiba nu au […]

Continue reading →