| | |
Adrotator
Please support our ASP.NET advertiser: Intel Parallel Studio Home
![]() |
•
•
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: 442
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
| Thread Tools | Search this Thread |
.net 2.0 3.5 ajax alltypeofvideos appliances application asp asp.net beginner box browser businesslogiclayer button c# cac checkbox child class compatible content contenttype control countryselector courier dataaccesslayer database datagrid datagridview datalist deployment development dgv dialog dropdownmenu dynamic dynamically edit embeddingactivexcontrol feedback fileuploader fill findcontrol flash flv form gridview gudi iis image javascript list listbox menu mouse mssql nameisnotdeclared news novell numerical opera order parent problem radio ratings redirect registration relationaldatabases reportemail schoolproject search security select serializesmo.table sessionvariables silverlight smoobjects software sql sql-server ssl tracking treeview typeof validatedate validation vb.net videos vista visual-studio visualstudio vs2008 web webapplications webarchitecture webdevelopment webprogramming wizard xsl





