1. Open Visual Studio
2. Create a New Website
3. Create New Web Page and Place AdRotator control on a page
4. Add 4 Images in Website like
2. Create a New Website
3. Create New Web Page and Place AdRotator control on a page
4. Add 4 Images in Website like
- rose1.jpg
- rose2.jpg
- rose3.jpg
- rose4.jpg
5. Add XML File from Website -> Add New Item -> Xml File
6. Write code in XML file as below
<Advertisements>
<Ad>
<ImageUrl>rose1.jpg</ImageUrl>
<NavigateUrl>http://sapnagiyanwani.blogspot.in</NavigateUrl>
<AlternateText> Sapna giyanwani </AlternateText>
<Impressions>20</Impressions>
<Keyword>Sapna</Keyword>
</Ad>
<Ad>
<ImageUrl>rose2.jpg</ImageUrl>
<NavigateUrl>http://sapnagiyanwani.blogspot.in</NavigateUrl>
<AlternateText>Sapna Giyanwani</AlternateText>
<Impressions>20</Impressions>
<Keyword>Sapna</Keyword>
</Ad>
<Ad>
<ImageUrl>rose3.jpg</ImageUrl>
<NavigateUrl>http://sapnagiyanwani.blogspot.in</NavigateUrl>
<AlternateText>Sapna Giyanwani</AlternateText>
<Impressions>20</Impressions>
<Keyword>Sapna</Keyword>
</Ad>
<Ad>
<ImageUrl>rose4.jpg</ImageUrl>
<NavigateUrl>http://sapnagiyanwani.blogspot.in</NavigateUrl>
<AlternateText>Sapna giyanwani</AlternateText>
<Impressions>20</Impressions>
<Keyword>Sapna</Keyword>
</Ad>
</Advertisements>
7. Now AdRotator ->Properties -> AdvertisementFile Property -> Set XML File which we have created.
8. Run Website.
9. When you refresh the page every time the image will change.
It is really a great work and the way in which u r sharing the knowledge is excellent.
ReplyDeleteThanks for helping me to understand basic concepts. As a beginner in java programming your post help me a lot.Thanks for your informative article.Dot Net training in chennai | Dot Net training institutes in chennai | Dot Net training in velachery
Thanks :)
DeleteThanks
ReplyDeleteI think you have a long story to share and i am glad after long time finally you cam and shared your experience.
ReplyDeletedevops online training
aws online training
data science with python online training
data science online training
rpa online training
Thanks. Keep Visiting..
DeleteThanks :)
ReplyDelete