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

Which object is used to encapsulate the state of the client and the browser in ASP.NET?

595


Describe session handling in a webfarm, how does it work and what are the limits?

586


What is directive in asp net?

546


What type of code, client-side or server-side, is found in a code-behind file of a Web page?

587


What is autopost?

531






How many validators do ASP.NET have?

611


What is __ requestverificationtoken?

555


What is the difference between CLICK and MOUSE DOWN Event ?

587


What are the server control tags in asp.net.?

625


How to prepare culture-specific formatting in .net.

519


What is the difference between a cookie and a pixel?

488


How to you can limit Access to Web API to Specific HTTP Verb?

670


Explain the updatepanel?

586


What are the data controls available in asp.net?

509


What is the difference between Classic ASP and ASP.Net?

537