Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 ASP.NET
 Using both C# and VB.net in aspx pages

Author  Topic 

rtutus
Aged Yak Warrior

522 Posts

Posted - 2006-11-11 : 21:49:30
question: can we include both c# and vb in teh Single-File Page Model
aspx pages (that don t have a code behind)?

In the aspx view, where we do:
<script language=C# runat=server> .... </script>
Can we include both a C# script and another <script> tag for vb.net script in the same aspx page
Thank you

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2006-11-12 : 10:15:38
no you can't.



Go with the flow & have fun! Else fight the flow
blog thingie: http://weblogs.sqlteam.com/mladenp
Go to Top of Page

Merkin
Funky Drop Bear Fearing SQL Dude!

4970 Posts

Posted - 2006-11-12 : 20:39:15
Why would you want to do that ?


Damian
"A foolish consistency is the hobgoblin of little minds." - Emerson
Go to Top of Page

rtutus
Aged Yak Warrior

522 Posts

Posted - 2006-11-13 : 00:23:00
just out of curiosity. or sometimes we need to maintain code that someone s started in c# and we re more comfortanble adding scripts in the page but using VB or the other way around. sorry if my question didn t make sense.
Go to Top of Page

rtutus
Aged Yak Warrior

522 Posts

Posted - 2006-11-14 : 00:10:46
can we put vb in an aspx page and c# in another aspx page (no code behind, just single file page model)
Thanks
Go to Top of Page

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2006-11-14 : 05:20:54
no you can't

you can however have one C# and one VB.net project.



Go with the flow & have fun! Else fight the flow
blog thingie: http://weblogs.sqlteam.com/mladenp
Go to Top of Page

chiragkhabaria
Master Smack Fu Yak Hacker

1907 Posts

Posted - 2006-11-15 : 03:47:29
I guess you can do that by making an the dll in the particular language and adding the reference of it .. but its only for the class files not sure about aspx files.

Chirag

http://chirikworld.blogspot.com/
Go to Top of Page
   

- Advertisement -