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
Which asp.net objects encapsulate the state of the client and the browser?
What is a reflection?
code for "For every 5days system has to create 1text file with the corresponding date and it has to store in c-drive" by using web applications
What is the difference between a page theme and a global theme?
Can you explain page lifecycle in net?
Define what is razor? : asp.net mvc
Is it possible to develop a single web application using ASP.NET webforms and ASP.MVC?
What is cross page posting? How is it done?
What is session object? Describe in detail.
What is asp net_sessionid?
In Data grid the question is below quantity price total these are 3 fields available in data grid if you enter quantity the total has to update automatically.Price field is already filled completely
How you will improve web application performance?
Explain about asp.net 2.0 themes?
Difference between using directive vs using statement?
What is Razor View Engine