Vajad kellegagi rääkida?
Küsi julgelt abi LasteAbi
Logi sisse
Sulge

"lbltere" - 2 õppematerjali

Veebistuudium arendus ASP NET
212
docx

Veebistuudium arendus ASP.NET

Selleks eemaldame teksti .aspx failist: <%@ Page Language="C#" CodeFile="Default.aspx.cs" Inherits="_Default" %> </head> <body> <form id="form1" runat="server"> <asp:Label ID="<b>lblTere</b>" runat="server" /> </form> </body> </html> Ning lisame selle koodi abil: using System; public partial class _Default : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { Page.Title = "Minu esimene leht"; <b>lblTere</b>.Text = "Tere maailm!"; } } Page_Load on sündmus, mis tekib iga kord lehekülje laadimisel. Selleks, et uurida genereeritava asp.net lehe omadusi saame ära kasutada Page objekti. </p> </div> <div class="searchedCenterBottom"> <div class="searchedCenterBottom2"> Informaatika → Veebiprogrammeerimine<span> </div> </div> <div class="searchedRightBottom"> 26 allalaadimist <div class="lilvoteBox"> <div style="float:left;width:100%;height:3px;background-color:#006600"></div> <div style="float:right;width:0%;height:3px;background-color:#cc0000"></div> </div> </div> </div> </a> <a href="nimetu-m108309.html" class="searchResult"> <div class="searchedContainer"> <div class="searchedLeft" title="Nimetu"> <img data-src="108309-smallpicture-0.jpeg" class="shadow lazyImg" alt="Nimetu" width="101" height="142"> <div class="PageLK3">575</div> <div class="DocFormat FormatColor-docx">docx</div> </div> <div class="searchedCenter"> <h2>Nimetu</h2> <p> Selleks eemaldame teksti .aspx failist: <%@ Page Language="C#" CodeFile="Default.aspx.cs" Inherits="_Default" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title /> </head> <body> <form id="form1" runat="server"> <asp:Label ID="<b>lblTere</b>" runat="server" /> </form> </body> </html> Ning lisame selle koodi abil: using System; public partial class _Default : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { Page.Title = "Minu esimene leht"; <b>lblTere</b>.Text = "Tere maailm!"; } } Page_Load on sündmus, mis tekib iga kord lehekülje laadimisel. Selleks, et uurida genereeritava asp.net lehe omadusi saame ära kasutada Page objekti. </p> </div> <div class="searchedCenterBottom"> <div class="searchedCenterBottom2"> Informaatika → Informaatika<span> </div> </div> <div class="searchedRightBottom"> 33 allalaadimist <div class="lilvoteBox"> <div style="float:left;width:0%;height:3px;background-color:#006600"></div> <div style="float:right;width:100%;height:3px;background-color:#cc0000"></div> </div> </div> </div> </a> <div class="searchedBottomLinks"> <div class="pages"></div> </div> </div> </div> <script> window.onload = function () { $(".filterCat").select2({ width: '250px', }); $(".filters").select2({ width: '150px', minimumResultsForSearch: -1 }); } </script> <div id="moveTo"></div> <div id="mover" class="movebox center"></div> <div class="clear"></div> <div class="center"> <p> <!-- GOOGLE ADS --> </p> <p><br></p> </div> </div> </div> <script type="text/javascript"> function downloadJSAtOnload() { var element = document.createElement("script"); element.src = "js/rest.js"; document.body.appendChild(element); } if (window.addEventListener) window.addEventListener("load", downloadJSAtOnload, false); else if (window.attachEvent) window.attachEvent("onload", downloadJSAtOnload); else window.onload = downloadJSAtOnload; </script> <script type="text/javascript"> var popupTrigger=[]; function sendGA(label,page){ /* if(popupTrigger.indexOf(label) < 0){ ga('send', 'event', { 'eventCategory': 'pageActions', 'eventAction': '@' + page, 'eventLabel': label }); popupTrigger.push(label); } */ gtag('event', 'pageActions', { 'page': '@' + page, 'action': label }); } function initBack(){ var re = /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/ $('#regPayment a').click(function(method) { var url = $(this).data('x'); if($('#regAgree').is(':checked')){ if($('#regEmail').val().match(re)) { $('#regMsg').text(''); $.get('register.php?go=1&emailcheck=' + $('#regEmail').val(), function(data, status){ $('#regMsg').append(data); //IF ALL GOOD, REGISTER AND GO PAYING if($('#psemail').val()!=2){ $.ajax({ url: './register.php?regEmail=' + $('#regEmail').val() }).done(function() { window.location.href = url; }); } }); }else{ $('#regMsg').html('<div class="animated pulse error">E-mail on vigane</div>'); } }else if($('#regEmail').val() == null){ window.location.href = url; }else{ $('#regMsg').html('<div class="animated pulse error">Konto loomiseks, pead reeglitega nõustuma</div>'); } }); } </script> <!-- DONWLOAD BUTTON --> <script> function downloadclick(format){ if(format == null)format=''; } </script> <div id="voteAction"></div> <div id="loading"></div> <div class="footer"> <div class="footerContainer"> <div class="footerTitle">Info</div> <a href="./kv/">K & V</a><br> <a href="./ajukas/">Mäng</a><br> <a href="./@eraopetaja">Eraõpetajad</a><br> <a href="@meist">Meist</a><br> <a href="@tellimine">Kuidas saada punkte?</a><br> <a href="kkk.php">KKK</a> <br> <a rel="nofollow" href="ads.php">Reklaam</a> <br> <a href="rss.php">Uudistevoog</a> <br> <a href="sitemap.php">Sitemap</a> <br> </div> <div class="footerContainer"> <div class="footerTitle">Kontakt</div> <a href="contact.php">Saada kiri</a><br> kiri<img src="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/PjxzdmcgZmlsbD0ibm9uZSIgaGVpZ2h0PSIyNCIgc3Ryb2tlPSJjdXJyZW50Q29sb3IiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLXdpZHRoPSIyIiB2aWV3Qm94PSIwIDAgMjQgMjQiIHdpZHRoPSIyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48Y2lyY2xlIGN4PSIxMiIgY3k9IjEyIiByPSI0Ii8+PHBhdGggZD0iTTE2IDh2NWEzIDMgMCAwIDAgNiAwdi0xYTEwIDEwIDAgMSAwLTMuOTIgNy45NCIvPjwvc3ZnPg==" height="20" width="20" style="vertical-align: bottom;filter: invert(1);" alt="@" class="is-loaded">annaabi.ee <br> Telefon: +372-569-80010 <br> Aadress: Tiskrevälja 33, Tallinn<br> OÜ LOLSOL. Registrikood: 11450433<br> <a href="./Kasutustingimused.pdf">Kasutustingimused</a> <br> <a href="./Privaatsustingimused.pdf">Privaatsustingimused</a> </div> <div class="footerContainer"> <div class="footerTitle">Sõnastikud</div> <a href="./inglise-eesti/">Inglise</a> <a href="./soome-eesti/">Soome</a> <a href="./saksa-eesti/">Saksa</a> <a href="./vene-eesti/">Vene</a> <a href="./hispaania-eesti/">Hispaania</a> <a href="./prantsuse-eesti/">Prantsuse</a> <a href="./rootsi-eesti/">Rootsi</a> <a href="./itaalia-eesti/">Itaalia</a> <a href="./ladina-eesti/">Ladina</a> <a href="./taani-eesti/">Taani</a> <a href="./esperanto-eesti/">Esperanto</a> </div> <div class="footerContainer"> <div class="footerTitle">Püsiühendus(es)</div> <a href="https://www.facebook.com/annaabi.ee/" target="_blank" rel="noopener noreferrer nofollow"><img data-src="./images/ico/fbRound55.png" width="64" height="64" alt="Facebook" class="lazyImg"></a> <a href="https://www.instagram.com/instannaabi/" target="_blank" rel="noopener noreferrer nofollow"><img data-src="./images/ico/instaRound55.png" width="64" height="64" alt="Instagram" class="lazyImg"></a> <a href="https://twitter.com/annaabiee" target="_blank" rel="noopener noreferrer nofollow"><img data-src="./images/ico/twitter55.png" width="64" height="64" alt="Twitter" class="lazyImg"></a> <a href="https://www.reddit.com/r/annaabi/" target="_blank" rel="noopener noreferrer nofollow"><img data-src="./images/ico/redditRound55.png" width="64" height="64" alt="Reddit" class="lazyImg"></a> </div> </div> <!-- <div id="noticeBox"> <div class="noticeBox"> <b>Kogu punkte magades!</b> <a href="./@sots" target="_blank" class="greenButton smallButton2">Lingi oma profiilid </a> <a onclick="closeNotice('noticeBox','noNotice')" class="noticeClose"><img src="./images/ico/close.png"></a> </div> </div> --> <div id="noticeBox"> <div class="noticeBoxAbs"> Sellel veebilehel kasutatakse küpsiseid. Kasutamist jätkates nõustute küpsiste ja veebilehe <a href="./@privaatsus" target="_blank">üldtingimustega</a> <a onclick="closeNotice('noticeBox','gdpr');" class="greenButton smallButton2" title="Nõustun">Nõustun</a> </div> </div> <script> let installPromptEvent; /* window.addEventListener('beforeinstallprompt', (event) => { // Prevent Chrome <= 67 from automatically showing the prompt event.preventDefault(); // Stash the event so it can be triggered later. installPromptEvent = event; // Update the install UI to notify the user app can be installed document.querySelector('#install-button').disabled = false; showAddToHomeScreen(); }); window.addEventListener('appinstalled', (evt) => { app.logEvent('a2hs', 'installed'); ga('send', 'event', { 'eventCategory': 'WebApp', 'eventAction': 'Install', 'eventLabel': 'Prompt Install' }); }); */ function showAddToHomeScreen() { var a2hsBtn = document.querySelector(".ad2hs-prompt"); a2hsBtn.style.display = "block"; a2hsBtn.addEventListener("click", addToHomeScreen); } function addToHomeScreen() { var a2hsBtn = document.querySelector(".ad2hs-prompt"); // hide our user interface that shows our A2HS button a2hsBtn.style.display = 'none'; // Show the prompt installPromptEvent.prompt(); // Wait for the user to respond to the prompt installPromptEvent.userChoice .then(function(choiceResult){ if (choiceResult.outcome === 'accepted') { console.log('User accepted the A2HS prompt'); ga('send', 'event', { 'eventCategory': 'WebApp', 'eventAction': 'Install', 'eventLabel': 'Installed' }); } else { console.log('User dismissed the A2HS prompt'); ga('send', 'event', { 'eventCategory': 'WebApp', 'eventAction': 'Install', 'eventLabel': 'Cancel' }); } installPromptEvent = null; });} </script> <script> if (typeof window.initJQ === 'undefined') { window.initJQ = function() { // fallback code here } } if (typeof window.initSelect2 === 'undefined') { window.initSelect2 = function() { // fallback code here } } </script> <script src="js/manup.js" defer></script> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.7.2/animate.min.css" media="none" onload="if(media!='all')media='all'"> </body> </html>