Can One website be made using two different languages like
c#,vb.net etc......

Answer Posted / ghulam moinuddin

Yes, It can be possible to make one website using two
different laguages like C# and VB.Net

Steps are Given below:
1)Create a New Website Select A blank Asp.Net Website and
Select Language Visual Basic

2)Now Add New Form (Default2.aspx) and Select its Languate
C#

3)Take a button on Default.aspx then write in its Code
Window

Partial Class _Default
Inherits System.Web.UI.Page

Protected Sub Button1_Click(ByVal sender As Object,
ByVal e As System.EventArgs) Handles Button1.Click
Response.Redirect("Default2.aspx")
End Sub
End Class

4)Now Take a button on Default.aspx then write in its Code
Window
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class Default2 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{

}
protected void Button1_Click(object sender, EventArgs e)
{
Response.Redirect("Default.aspx");
}
}

RESULT:
Now Executte your Website Both buttons will call one
another pages which are in different languages VB and C#

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the postback property in asp.net?

533


Explain difference between dataset and datareader?

591


Can you nest updatepanel within each other?

540


how to write html code with ssl

1513


What is postback pixel?

507






What is the equivalent of date() and time() in asp.net?

504


What are cookies in asp.net?

563


What is the Intermittent crashing of application in production?

546


If I have more than one version of one assemblies, then how will I use old version (how/where to specify version number?) In my application?

510


What are the different web pages?

485


What are the various types of cookies in asp.net?

532


What are Caching techniques in .NET

584


Can you explain one critical mapping? Performance issue which one is better?

454


What is xaml? Are xaml file compiled or built on runtime?

510


What does it mean your session has timed out?

515