| | |
Adrotator
Please support our ASP.NET advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Apr 2008
Posts: 75
Reputation:
Solved Threads: 0
Suppose mine project is on desktop
C:\Documents and Settings\Mansi\Desktop\ASPStarting
& Mine XML file is in D:\Documents and Settings\Sonia\Desktop\ASPStarting\App_Data
I change the ADRORATOR source code as below-
<asp:AdRotator ID="AdRotator1" runat="server" AdvertisementFile ="C:\Documents and Settings\Mansi\Desktop\ASPStarting\App_Data\banner.xml />
When I execute the website,foll .error comes
ERROR - 'C:\Documents and Settings\Mansi\Desktop\ASPStarting\App_Data\banner.xml' is a physical path, but a virtual path was expected.
MINE XML FILE
1)I want to ask that is there any more event to write so dat adrorator works correctly.
2) In <ImageUrl>site2img2.jpg</ImageUrl> - We have to give the whole image file or not?????
3) What is impressions tag do?
C:\Documents and Settings\Mansi\Desktop\ASPStarting
& Mine XML file is in D:\Documents and Settings\Sonia\Desktop\ASPStarting\App_Data
I change the ADRORATOR source code as below-
<asp:AdRotator ID="AdRotator1" runat="server" AdvertisementFile ="C:\Documents and Settings\Mansi\Desktop\ASPStarting\App_Data\banner.xml />
When I execute the website,foll .error comes
ERROR - 'C:\Documents and Settings\Mansi\Desktop\ASPStarting\App_Data\banner.xml' is a physical path, but a virtual path was expected.
MINE XML FILE
ASP.NET Syntax (Toggle Plain Text)
<Advertisements> <Ad> <ImageUrl>site1img1.jpg</ImageUrl> <NavigateUrl>http://www.site1.com</NavigateUrl> <AlternateText>Site1 Main</AlternateText> <Impressions>50</Impressions> <Keyword>Product1</Keyword> </Ad> <Ad> <ImageUrl>site2img2.jpg</ImageUrl> <NavigateUrl>http://www.site2.com</NavigateUrl> <AlternateText>Site2 Main Page</AlternateText> <Impressions>75</Impressions> <Keyword>Product2</Keyword> </Ad> </Advertisements>
1)I want to ask that is there any more event to write so dat adrorator works correctly.
2) In <ImageUrl>site2img2.jpg</ImageUrl> - We have to give the whole image file or not?????
3) What is impressions tag do?
•
•
Join Date: Jun 2009
Posts: 452
Reputation:
Solved Threads: 82
1. You don't need to enter the physical path to AdvertisementFile property. It should be a relative path.
Change your code as below
2. You need to give the image file as like AdvertisementFile. For example, if the image file is in the root directory of the web site, then image path should be as below
If you keep the images in a folder, for example in 'images' folder, then it should be
3. Impressions is a value that indicates how often an advertisement is displayed in relation to other advertisements in the XML file.
Change your code as below
ASP.NET Syntax (Toggle Plain Text)
<asp:AdRotator ID="AdRotator1" runat="server" AdvertisementFile ="~/App_Data/banner.xml"/>
2. You need to give the image file as like AdvertisementFile. For example, if the image file is in the root directory of the web site, then image path should be as below
ASP.NET Syntax (Toggle Plain Text)
<ImageUrl>YourImageFileName.jpg</ImageUrl>
If you keep the images in a folder, for example in 'images' folder, then it should be
ASP.NET Syntax (Toggle Plain Text)
<ImageUrl>>~/Images/YourImageFileName.jpg</ImageUrl>
3. Impressions is a value that indicates how often an advertisement is displayed in relation to other advertisements in the XML file.
Last edited by Ramesh S; Sep 26th, 2009 at 6:09 am.
![]() |
Similar Threads
- Error - AdRotator Control Program (ASP.NET)
- AdRotator? (ASP.NET)
- SWF adrotator Component for ASP.NET 2.0 (ASP.NET)
- Prompt kept taking me to download PurityScan (Viruses, Spyware and other Nasties)
Other Threads in the ASP.NET Forum
- Previous Thread: Show if the User is Online / Off line with specific message
- Next Thread: ASP to HTML Converter
Views: 295 | Replies: 1
| Thread Tools | Search this Thread |
Tag cloud for ASP.NET
.net 2.0 3.5 ajax appliances application asp asp.net beginner box browser businesslogiclayer button c# cac checkbox child class complex contenttype control countryselector database datagrid datagridview datalist deployment development dgv dialog dropdownmenu dynamic dynamically edit editing embeddingactivexcontrol feedback fileuploader fill findcontrol flash flv folder form gridview gudi identity iis image javascript languages list maps menu mobile mssql nameisnotdeclared novell opera order parent problem profile radio redirect refer registration relationaldatabases reportemail response.redirect richtextbox rows search security select serializesmo.table services sessionvariables silverlight smoobjects software sql sql-server ssl tracking treeview validatedate validation vb vb.net vista visualstudio vs2008 web webapplications webarchitecture webdevelopment webprogramming wizard xsl





