ASP.NET - c# to vb.net

Asked By balaji
13-Dec-11 02:09 AM
please give the equivalent vb.net code for this

 System.Web.UI.Page mypage = (System.Web.UI.Page)HttpContext.Current.Handler;
  James H replied to balaji
13-Dec-11 02:11 AM
Hi Please try to do like this 
Dim mypage As System.Web.UI.Page = DirectCast(HttpContext.Current.Handler, System.Web.UI.Page)


  Sakshi a replied to balaji
13-Dec-11 02:18 AM
Dim mypage As System.Web.UI.Page = DirectCast(HttpContext.Current.Handler, System.Web.UI.Page)

you can use this website for further conversions if u need,

http://www.developerfusion.com/tools/convert/csharp-to-vb/

  Devil Scorpio replied to balaji
13-Dec-11 02:36 AM
HI,

//Declare an object of System.Web.UI.Page
Dim mypage As System.Web.UI.Page                          

// Assign the content of type System.Web.UI.Page to object
mypage = DirectCast(HttpContext.Current.Handler, System.Web.UI.Page)
  dipa ahuja replied to balaji
13-Dec-11 03:01 AM
Dim mypage As System.Web.UI.Page = DirectCast(HttpContext.Current.Handler, System.Web.UI.Page)


http://converter.telerik.com/
  avula replied to balaji
13-Dec-11 03:18 AM
Hi..

Dim mypage As System.Web.UI.Page = DirectCast(HttpContext.Current.Handler, System.Web.UI.Page)

and also use converters
http://www.developerfusion.com/tools/convert/csharp-to-vb/

regards..
  kalpana aparnathi replied to balaji
13-Dec-11 04:56 AM
Conversion of your code:

Dim mypage As System.Web.UI.Page = DirectCast(HttpContext.Current.Handler, System.Web.UI.Page)


For any code you want to convert C# to vb.net use this site

http://www.developerfusion.com/tools/convert/csharp-to-vb/
Create New Account
help
Net hi friends Any one send frequently asked Important questions in C# .Net, ADO .Net, Asp .Net and Sql Server. . . . . . . . tx in Advance. . . . . . Hi, Find this. . (B)What is an IL? (B types? (B) What is concept of Boxing and Unboxing ? (B) What is the difference between VB.NET and C#? (I) what is the difference between System exceptions and Application exceptions? (I A) What is scavenging? (B) What are different types of caching using cache object of ASP.NET? (B) How can you cache different version of same page using ASP.NET cache object? (A) How will implement Page Fragment Caching? (B) Can you compare ASP.NET
with indexers, destructors, or types. In C#, the static keyword indicates a class variable. In VB, the equivalent keyword is Shared. Its scoped to the class in which it occurs. Example is assumed. Answer2 8000 Answer3 The business logic is the aspx.cs or the aspx.vb where the code is being written. The presentation logic is done with .aspx extention. How in Sql server as var_name int How do you separate business logic while creating an ASP.NET application? There are two level of asp.net debugging 1. Page level debugging For this we have to edit the page level debugging enable the trace to true in the line in the html format of
faqs on masterpages Hi all, can anybody tell me the FAQs on Masterpages in asp.net. Thanks alot var Hi What are Master Pages in ASP.NET? or What is a Master Page? ASP.NET master pages allow you to create a consistent layout for the pages in your application A single master page defines the look and feel and standard behavior that you want for all of the
authentication modes and its implementation in projects hi, i am doing a project in asp.net. . i want to use a authentication mode in this project.it is a educational based do some authentication in this project. How To: Use Forms Authentication with SQL Server in ASP.NET 2.0 patterns & practices Developer Center J.D. Meier, Alex Mackman, Blaine Wastell, Prashant Bansode, Andy Wigley, Kishore Gopalan Microsoft Corporation August 2005 Applies To • ASP.NET version 2.0 • SQL Server 2000 Summary This How To shows you how you can do not have Active Directory accounts. This How To explains how to create a login page using the new membership Login control, configure your Web application to use forms authentication, create the user store database, grant database access to your Web application account, configure ASP.NET membership settings, and set password complexity rules. Contents Objectives Overview Summary of Steps Step
how to show directions in google map by vb.net Hi. i am working on a windows application in vb.net i hav a web browser in my application for showing up the directions in link www.youtube.com / watch?v = jocAywQhhzQ While Microsoft have released their new Virtual Earth ASP.NET Control , I still haven't found a decent wrapper that converts addresses to langitude and and have prepared the following to show you how to integrate Google Maps into your ASP.NET pages. image Demo | Code Step 1. Get a Google Maps API key In order to dll file and add it to your \ bin directory. Step 3. Set up your aspx page In your aspx page, add a few text boxes to gather the address details. You can simply use one