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
What is the difference between web config and machine config files?
Explain MVC model binders?
What is a web server? What are the load limits in it?
If iam developing an application that must accomodate multiple security levels though secure login and my asp.net web appplication is spanned across three web-servers (using round-robbin load balancing) what would be the best approach to maintain login-in state for the users?
Why do we use asp.net?
What is the default authentication mode for asp.net?
What are resource file and how do we generate resource file?
How many types of sessions are there in asp net?
Explain the difference between mvc (model-view-controller) and mvp (model-view-presenter)? : asp.net mvc
What are the new data controls in asp.net 2.0?
Explain the steps to be followed to use passport authentication.
Explain the basic functionality of garbage collector?
Explain Life cycle of ASP.NET page when a request is made.
Explain the difference between the web config and machine config.
What are the differnt types of handler in ASP.NET?