| | |
ASP in ASP.NET application
Please support our ASP.NET advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Jun 2005
Posts: 4
Reputation:
Solved Threads: 0
I'm building an ASP.NET app, but there ASP includes in the dreamweaver template that includes other asp pages.
I'm getting this error:
BC30289: Statement cannot appear within a method body. End of method assumed.
Line 10:
Line 11:
Line 12: sub navTabs()
Line 13: response.write("<img src='/images/" + img + "' hspace='0' border='0' usemap='#navTabs' />")
Line 14: end sub
I brought all of the code directly into the template, but it has changed anything. Any suggestions?
I'm getting this error:
BC30289: Statement cannot appear within a method body. End of method assumed.
Line 10:
Line 11:
Line 12: sub navTabs()
Line 13: response.write("<img src='/images/" + img + "' hspace='0' border='0' usemap='#navTabs' />")
Line 14: end sub
I brought all of the code directly into the template, but it has changed anything. Any suggestions?
•
•
Join Date: Jun 2005
Posts: 4
Reputation:
Solved Threads: 0
•
•
•
•
Originally Posted by tgreer
You can't mix ASP and ASP.NET.
What are my options to fixing the problem?
Thanks,
Sam
•
•
Join Date: Dec 2004
Posts: 1,655
Reputation:
Solved Threads: 35
You can dymanically load images with ASP.NET. I'm not sure why you'd need an "include", by which I guess you mean an SSI (server-side-include). Your ASP.NET WebForm code-behind file will use standard programming to render image controls.
Or, you can encode all your image selection logic in a separate WebForm, and set the src attributes of your img element to that WebForm.
Or, you can encode all your image selection logic in a separate WebForm, and set the src attributes of your img element to that WebForm.
Sam,
You can use Usercontrols..I think thats what you need..Just create a page as a user control and reference the user control page in every page you create..
Check out this URL..
http://msdn.microsoft.com/library/de...ercontrols.asp
You can use Usercontrols..I think thats what you need..Just create a page as a user control and reference the user control page in every page you create..
Check out this URL..
http://msdn.microsoft.com/library/de...ercontrols.asp
![]() |
Similar Threads
- ASP / ASP. Net Software Delivery Engineer - Oxford - Client-facing (Web Development Job Offers)
- Free ASP.NET Application with code to practice (ASP.NET)
- diference between asp and asp.net (ASP)
- asp.net application in MAC OS (ASP.NET)
- Porting asp to asp.NET (with fileup) (ASP.NET)
Other Threads in the ASP.NET Forum
- Previous Thread: Get frame height and width
- Next Thread: Pseudo web page names
| Thread Tools | Search this Thread |
.net 2.0 3.5 activexcontrol advice ajax alltypeofvideos asp asp.net bc30451 beginner bottomasp.net browser businesslogiclayer button c# c#gridviewcolumn cac checkbox class commonfunctions compatible confirmationcodegeneration content contenttype countryselector courier css database datagrid datagridview datagridviewcheckbox datalist deadlock deployment development dgv dropdownlist dropdownmenu dynamic edit embeddingactivexcontrol findcontrol flash flv formatdecimal forms formview gridview homeedition iframe iis javascript jquery list menu microsoft mono mssql multistepregistration nameisnotdeclared novell numerical objects order panelmasterpagebuttoncontrols problem ratings rotatepage schoolproject search security serializesmo.table sessionvariables silverlight smartcard sql sqlserver2005 ssl suse textbox tracking treeview unauthorized validatedate validation vb.net video virtualdirectory vista visual-studio visualstudio vs2008 web webarchitecture webdevelopemnt webdevelopment webservice xml youareanotmemberofthedebuggerusers






