|
no you cant use them in same page.
|
|
|
|
|
You can only use one language per page, as the code-beside is compiled (either at run time or compile time) and you an only compile one language into a single assembly.
However, you can have multiple pages that have different code-beside languages. If you are using the web application project model, this will not work as only one assembly is produced. Instead you must use the web site model, and specify the codeSubDirectories setting in the config file.
Although, why mix c# and vb.net? It is all .Net anyway. Just pick one and stick to it. Translating code from one to the other is simple enough. If you can't do the translation yourself there are hundreds of tools and websites that can do it for you.
|
|
|
|
|
The Man from U.N.C.L.E. wrote: there are hundreds of tools and websites that can do it for you.
All of which do an awful job.
|
|
|
|
|
Not at all, although I agree there are some terrible web sites out there.
I use SharpDevelop and most of the time it translates correctly. I have to say I don't translate code that much as I just write in whatever language is appropriate, but SharpDevelop definately does the job, and does it well.
Another solution would be to compile the code and use .Net Reflector to read it from the assembly. That outputs to C# or VB, along with other languages, and translates perfectly.
|
|
|
|
|
I dont think so, but yes you can use in the same project.. for that you can have different classes both C# or in VB.put it in appcode folder, make entry in web.config and now you can these classes throughout in your application. for delatills have a look in the following link
Click here
|
|
|
|
|
Yes, you can use both language by using different master page
Farogh Haider
Web developer
|
|
|
|
|
Hi Guys,
Quick question...
Is it possible to display a page from one location in an ASP.NET page?
I have an intranet application in ASP.NET 2.0 that I want to display some fileshare pages which are on our existing sharepoint portal within my site so I can keep all my menus etc for navigation.
Thank you,
oooo, the Jedi's will feel this one....
|
|
|
|
|
Have you tried iframe? Just try iframe.i guess it'll help you.
|
|
|
|
|
Thats perfect, thanks...
I'm a newb, so I've never heard of that one. Works a treat. Thank you very much.
oooo, the Jedi's will feel this one....
|
|
|
|
|
Glad to see it worked.
|
|
|
|
|
|
In addition to IFrame, look at inc. These are text files that may or may not include HTML mark up and inserted into the page using the old #insert directive.
Various manuals at my company are available this way. Each section exists as a separate formatted text file with an .inc extension. The user can retrieve single sections and the text is embedded in the page. The user can also retrieve the entire manual, which includes every section. With this technique, there is a single source for the text (which eliminates discrepancies where one page was changed an another was not), it can be reused in a variety of situations, and the use of simple mark up rather than full HTML means that managing the texts can be done by the doc writers and not IT.
|
|
|
|
|
hey, cant find how to solve this thing,
i have a test project with the following directory structure:
/root/pages/default.aspx
/root/App_LocalResources/default.aspx.resx
/root/App_LocalResources/default.aspx.fr.resx
using the following simple code:
<br />
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="TestLocale._Default" UICulture="auto:en-US" Culture="auto:en-US"%><br />
<br />
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><br />
<br />
<html xmlns="http://www.w3.org/1999/xhtml" ><br />
<head runat="server"><br />
<title></title><br />
</head><br />
<body><br />
<form id="form1" runat="server"><br />
<div><br />
<asp:Label ID="Label1" runat="server" Text="Label" meta:resourceKey="Label1"></asp:Label><br />
</div><br />
</form><br />
</body><br />
</html><br />
at the resx file i have simple mapping for Label1.Text ,
The problem: for ssome reason ASP.NET can't find local resources when my default page is not at the root folder in the project,
when i place the default.aspx in the root project the localization works, when i place the default.aspx inside a folder it doesnt work
i have been searching everywhere and couldnt find how to make it work when using folders.
any kind of help would help!
thank you.
Net
|
|
|
|
|
|
The App_LocalResources folder needs to be in same folder as the aspx file.
/root/pages/App_LocalResources/Default.aspx.resx
/root/pages/Default.aspx
Hope this helps
Martin
|
|
|
|
|
Hi
I am using Page.ClientScript.RegisterStartupScript on my page but its not working.My clientside javascript function is not getting called.
Pls help me.
|
|
|
|
|
Are you using Ajax on you page?
|
|
|
|
|
|
Page.ClientScript does not work when we use ajax on our page.Use
ScriptManager.RegisterStartupScript instead. it'll work
|
|
|
|
|
Thanks. It worked
|
|
|
|
|
Java script is case sensitive, your defined function and calling function should be same
Farogh Haider
Web developer
|
|
|
|
|
Hello All,
I am generating one tab delimited text file.
I need to copy the contents of this file into one excel file's sheet.
Please help.
Thanks in advance.
Regards,
Swati.
|
|
|
|
|
|
Hi,
This is from chandrakanth. working on dotnet.
Actually i got one problem with javascript in button click event.
i have one Datalist control. In that Datalist control i have one Linkbutton. I am trying to find the ID of Link button ID through Javascript.
But it is giving error here
"obj.substring(0, 60);"
--Object does not support this property";
Please see the below my Javascript code which i am using.
---------------------------------------------------------------
'sidebar' -- divtag id
function SwitchMenus()
{
var divObj = document.getElementById('sidebar');
var objdatalist = document.getElementById('<%#dlstToDoList.ClientID%>;').childNodes[0];
var obj = objdatalist.getElementsByTagName('ctl00_dlstToDoList_ctl00_lnkTodo'); -- Link button id
if (divObj.style.width == "22%")
{
divObj.style.width = "26%";
divObj.align = "left";
objdatalist.style.width = "100%";
obj.substring(0, 60);
}
else {
divObj.style.width = "22%";
divObj.align = "left";
obj.substring(0,40);
}
}
-------------------------------------------------------------
----------------------------------------------------------------
|
|
|
|
|
chandragaddam wrote: obj.substring(0, 60);
what are you trying to do here?
you are trying to use substring() method with an object, so it wont work .this function work with strings. make the changes accordingly
|
|
|
|