Monday 17 February 2014

Adrotator Example in asp.net


how to use Adrotator in asp.net

Introduction:

Here I will explain how to use Adrotator in asp.net using c# or how to create Automatic image changes in page without page refresh. If you want to create simple Adrotator application in asp.net using c# then do following step.

So, Now I explaining how to use Adrotator in asp.net using c#.

Description: 

In previously post I explained to  
Three tier architecture in asp.net
Remove .aspx from url in asp.net
Temp table in sql
Change the column name or datatype or size in sql server
Stored procedure with paging sql server
Calling web service without adding web reference

Three tier architecture in Asp.net

Two tier architecture in Asp.net

One tier architecture in Asp.net

Simple login code in asp.net using c#

Log out code in asp.net with C#

How to create chat application in asp.net using c#

Send mail in asp.net

Get IP address from client machine

how to publish website

Connectionstring in asp.net

 

OR
Automatic image changes in page without page refresh

--> Some times require to create page for change image after specific time without page refresh
--> then do following

-->  copy the following code in your .aspx page
------------------------------------------------------------------------------------------------

<div>
Adrotator Control : Rotates Ads without page refresh
<br />
<asp:scriptmanager id="ScriptManager1" runat="server">
</asp:scriptmanager>
<asp:timer id="Timer1" runat="server" interval="1000">
<%-- interval="1000" = >1 second--%>
</asp:timer>
<asp:updatepanel id="UpdatePanel1" runat="server">
<contenttemplate>
<center>
<asp:AdRotator ID="AdRotator1" runat="server" AdvertisementFile="~/adver.xml"
Height="120px" Width="500px" BackColor="#CC33FF" BorderColor="#3366FF"
BorderStyle="Solid" />
</center>
</contenttemplate>
</asp:updatepanel>
</div>
-- >Next , Add one XML file from solution explorer(current project)
---> and set this XML file name= adver

--> next following code copy in your XML file
------------------------------------------------------------------------------------------------



<?xml version="1.0" encoding="utf-8" ?>
<Advertisements>
  <Ad>
    <ImageUrl>~\img\kk.GIF</ImageUrl>
  </Ad>
  <Ad>
    <ImageUrl>~\img\014.JPG</ImageUrl>
  </Ad>
  <Ad>
    <ImageUrl>~\img\gh.gif</ImageUrl>
  </Ad>

</Advertisements>

-->  In above code "<ImageUrl>~\img\gh.gif</ImageUrl> " it is your image path
-->Here all images in img folder

-->Next , Run this page and every 1 second image change without page refresh.

20 comments:

  1. It is really a great work and the way in which u r sharing the knowledge is excellent.Thanks for helping me to understand basic concepts. As a beginner in Dot Net programming your post help me a lot.Thanks for your informative article.
    dot net training institute in velachery | top10 dot net training institutes in chennai

    ReplyDelete
  2. Great content thanks for sharing this informative blog which provided me technical information keep posting.
    python training in tambaram
    python training in annanagar
    python training in OMR
    python training in chennai

    ReplyDelete
  3. Thank you for taking the time and sharing this information with us. It was indeed very helpful and insightful while being straight forward and to the point.

    Blueprism training in btm

    Blueprism online training

    ReplyDelete
  4. Fantastic work! This is the type of information that should follow collective approximately the web. Embarrassment captivating position Google for not positioning this transmit higher! Enlarge taking place greater than and visit my web situate
    angularjs

    Training in chennai


    angularjs-Training in chennai

    angularjs Training in chennai

    angularjs-Training in tambaram

    angularjs-Training in sholinganallur

    angularjs-Training in velachery

    ReplyDelete
  5. It would have been the happiest moment for you,I mean if we have been waiting for something to happen and when it happens we forgot all hardwork and wait for getting that happened.
    python training Course in chennai | python training in Bangalore | Python training institute in kalyan nagar

    ReplyDelete
  6. I am happy for sharing on this blog its awesome blog I really impressed. thanks for sharing.

    Become an Expert In Software Testing Training! The most trusted and trending Programming Language. Learn from experienced Trainers and get the knowledge to crack a coding interview, @Softgen Infotech Located in BTM Layout.

    ReplyDelete
  7. This is such a good post. One of the best posts that I\'ve read in my whole life. I am so happy that you chose this day to give me this. Please, continue to give me such valuable posts. Cheers! thansk a lot
    Ai & Artificial Intelligence Course in Chennai
    PHP Training in Chennai
    Ethical Hacking Course in Chennai Blue Prism Training in Chennai
    UiPath Training in Chennai

    ReplyDelete
  8. Build web apps and services that run on Windows, Linux, and macOS using using C#, HTML, CSS, and JavaScript. Get started for free on Windows, Linux, ...really i learnt clrealy in this site about asp.net and c#....

    Android Training in Chennai

    Android Online Training in Chennai

    Android Training in Bangalore

    Android Training in Hyderabad

    Android Training in Coimbatore

    Android Training

    Android Online Training

    ReplyDelete

  9. Such a very useful article. Very interesting to read this article.I would like to thank you for the efforts you had made for writing this awesome article. After reading your article I was amazed. I know that you explain it very well. And I hope that other readers will also experience how I feel after reading your article


    Data Science Training In Chennai

    Data Science Online Training In Chennai

    Data Science Training In Bangalore

    Data Science Training In Hyderabad

    Data Science Training In Coimbatore

    Data Science Training

    Data Science Online Training

    ReplyDelete
  10. https://www.analyticspath.com/machine-learning-training-in-hyderabad
    Great post! Thanks for sharing this amazing pos

    ReplyDelete



Asp.net tutorials