Adding C# Web Form To VB Web Application

Feb 18, 2011

Is there any way to add a C# Web Form to an ASP.NET 4.0 Web Application that is written in VB.NET? I had an ASP.NET 2.0 WEB SITE that I recently converted to an ASP.NET 4.0 WEB APPLICATION. It was mostly written in VB.NET with a couple pages that had C# code behinds. I've read the following article (the end section about mulitple languages): [URL]

1) When I converted my site to an application, it didn't seem to add an APP_CODE folder at all
2) I'm not looking to just write a simple class, I actually want to be able to add a WEB FORM with a C# code behind

When I try to add a new item and I select which type of item I want to add, I am only given to option to add a VISUAL BASIC web form. I have a workaround right now. If I need a new web form with a C# code behind, I take one of my old C# web forms and just copy and paste the form and C# code behind into the project and then rename it and change the class name as well. Then i make my changes and do what I need to do. It seems to work, but I was just wondering if there was an easier way.

You might wonder why want to put C# forms in my VB app. I wrote my app in VB (not well versed in C# but I can read it). I have a programmer working for me that is much more efficient with C#. I don't really have the budget to spend weeks/months getting her up to speed with VB

View 2 Replies


Similar Messages:

How To Store And Retriew Xls File Into Sql Database In The Form Form Of Byte[] Using C# In Web Application

Jul 9, 2010

how to store into sql data base and and how to retriew xls file as xls file from database in the form form of byte[] using c# in asp.net application.

View 1 Replies

How To Submit The Values Of A Form To Another Form In A Different Application

Feb 28, 2011

I have two asp.net applications webapp1 and webapp2, in each application i have a asp.net form Deafult.aspx

I want to do a form submit from Default.aspx in webapp1 and recieve the value in webapp2.

I tried to do it with simply setting action ="webapp2 location" but it is throwing the bellow error

Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster.

I even added the machinekey element to web.config

but it is still showing the same error.

This is the code for webapp1 form which sends data to webapp2

[Code]....

View 2 Replies

Visual Studio :: How To Remove The Unused References In Form Level/vb.net Application And Web Application

Feb 3, 2010

How to remove the unused references in form level, vb.net application and web application?

How can I use fxcop to identity undisposed objects like dataset, dataview, connection, stream...? Any one having custom rules for the same?

View 1 Replies

Adding Clock To The Form?

Sep 28, 2010

I want to add a running clock on my aspx form. which after certain period of time like 30 minutes or something. After 30 minutes the form should automatically submitted.

View 5 Replies

AJAX :: Adding Form To A Tabcontainer?

Jan 19, 2010

I am novice to this and I would appreciate any suggestions from your side.

I have several forms that works individually.

I would like them to be placed in the ajax toolkit tabcontainer. When I copy the form inside the contenttemplate, the post does not work.

View 4 Replies

Converting Windows Form Application In Web Application?

Dec 27, 2010

Is it possible to convert a windows form application into a web application?

If it is not possible, how can I add the OpenFileDialog in a web application form?

I cannot see it in the toolbox if i choose new web application. On the other hand, I can see it if I choose windows form application.

View 21 Replies

Adding Contact Form To General Page By Id?

May 18, 2010

i have some web site with one page call genPage.aspx for all regular site pages, the title and the content of the page is changing by the pageId on the url (queryString). All the page looks the same (title, content and images and the same structure)im want to add contact form to the page with the pageId=7 only and dont have idea how to do this. (i know in classic asp it was : <if pageId = 7> html code and then <end if> but in asp.net i cant find the way. [Code]....

View 3 Replies

Web Forms :: Adding Active X Control To Form?

Feb 4, 2010

Long time programmer just now getting into .NET so There may be something better but I would like to use the Graphics Server Extended Graph (Graphs32.ocx) on my form.

I tried to put it in the Toolbox by going to Tools --> Choose Toolbox Items --> Com Components tab
then check that item and press OK. From what I saw in help files, it should now appear in the Toolbox. Unfortunately, I can't find it anywhere. Did I miss a step in this process? I then tried adding the ocx to the project Bin folder and repeating the steps. Still can't see it. If I can't get it onto the Toolbox, is there another way I could put the control on the form ?

View 2 Replies

Web Forms :: How To Web Form Is Adding /null/ To Query String

Jul 21, 2010

I am using IIS 7 and have URL rewrite turned on for a friendly URL.

The problem is that in side that pages repeater (right under the captcha) when I click on the images in there the page redirects to /null/ which then throws a 404 error. I have turned off url rewrite and removed all rules and that didnt solve the problem so I dont think its related to that.

I have also noticed that in my master page if I use <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

then the client side ajax fails to load, sys becomes undefined and that may be the problem here

I'm at a loss, this is the first time I have seen these problems occur.

View 7 Replies

Web Forms :: Adding Values To Form Tag In Mastersite From Site?

Sep 30, 2010

nable to cast object of type 'System.Web.UI.HtmlControls.HtmlForm' to type 'System.Web.UI.HtmlControls.HtmlGenericControl'.Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.InvalidCastException: Unable to cast object of type 'System.Web.UI.HtmlControls.HtmlForm' to type 'System.Web.UI.HtmlControls.HtmlGenericControl'.Source Error:

[Code]....

/* MasterPage mp = (MasterPage)this.Master;

View 1 Replies

DataSource Controls :: Adding Values To A Table In A Form?

May 17, 2010

I guess the code is totally right and doesn't require any change in it,, however am getting an error which says "Conversion failed when converting the varchar value '11/11/2010' to data type int."check the attached file ..

[Code]....

View 7 Replies

Web Forms :: Order Form - Adding Product Details

Apr 10, 2012

I am making a web form in whose name is order.aspx in which user have to add his details .like name contact no etc. but my problem is there are products which i have listed in combo box . if user  select any one item from it it shows its quantity .after selecting he quantity the details of product must be displayed in grid view below .then if user select second product it should do the same grid view must add the second product details to it  and so on.

View 1 Replies

Using Createuserwizard Control Adding Additional Fields To Create A User Registration Form

Mar 17, 2010

I want to create a user registration form, I used the CreateUserWizard control, and i intend to add more filed with the wizard interface, the fields were firstname,lastname, telephone all these with the textBox control and sex-male or female with a radioButton control, and upload photo with the FileUpload control.

After a successfull submit to the sql database, i should be able to retrieve all this informtion inluding the photo uploaded in another aspx page using any of the data control in y toolbox and resizein the photo to be 100/100 pixel size. pls could you write out the code (step by step details) to follow to implement all this in my asp.net 3.5 c# website. I have already created a table in my database, using userId as my ForeignKey.

View 1 Replies

Data Controls :: Adding Records To Two Database Tables In Single Form Page?

Jan 25, 2014

I a problem defining the variable @Bestilling in the codeBehind for adding the record to the database using a single form page. The database design with corresponding form are as below:

My ASPX.CS:
 
private void GridView1_BindData()
{
SqlConnection conn = new SqlConnection(connStr);
SqlDataAdapter dAd = new SqlDataAdapter("SELECT kart_DemoOrder.OrderID,

[Code]....

I get error in the method: "GridView1_AddNewRecord".

Must declare the scalar variable "@BestillingID". Is there a way to use only one Add Method and not two as I did?

View 1 Replies

Adding TreeNodes Within Web Application?

Jun 26, 2010

This thread is basically a continuation from my last post. I have a website that uses a TreeView Control. Each TreeNode represents a virtual directory and I wish for the user to be able to create a new Node/Virtual Directory. This site is for family photos. Each family member has their own node with a Child Node called "Albums". Within this "Albums" node, a family member can have as many Nodes/Virtual Directory as they want with each Node/Virtual Directory containing images.Each Virtual Directory path is stored in a Database. So essentially, I'm trying to create my own photo album. My question is....how do I allow a user to create a new Node/Virtual Directory (they don't know that a VD is being created...only a Node).

View 4 Replies

Adding Google Map In .net Application?

Jul 14, 2010

i am develope web application for factory i need to add google map with location of factory
in contact us web page

View 3 Replies

Adding WCF To Existing Application?

Nov 30, 2010

I want to add WCF to existing asp.net application and host both of them in the same virtual directory is it possible ?? Also when i click new item to add app.config file from visual studio its not showing.

View 3 Replies

Adding The Website As An Application In IIS?

Jan 16, 2011

I have a website deeloped in ASP.NET and I want it to be accessed via local URL, for eg: http://localhost/website20I tried once but the CMS in my website started giving error "It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS."

View 2 Replies

Adding Features Around Classic Application?

Sep 3, 2010

I will be adding new pages and adding functionality to current pages.

I would basically like to use new technology and but I don't know how should I add it to classic ASP pages

In other words, can I <#--include--> an aspx page in Classic asp page? Or anything of that sort, may be creating a user control in ASP.NET and using it in classic ASP?

View 2 Replies

MVC :: Adding An API To Application - Customize Widgets?

Aug 13, 2010

I have created a MVC application and I want to make it customizable by adding an API to it, how do I go about doing this?

So, I have a database table called Orders with a bunch of a fields and my application is a simple form with the ListView control and users can add and delete orders. this API should allow users to add extra columns to ListView control and extra buttons as well.

View 2 Replies

WCF / ASMX :: Adding Web Service To C# Web Application

Jan 25, 2011

how to add the web service in my project and how to use it.

I am planning to use Autocomplete from ajax tool kit which needs a web service. Web service will be prepared and given to me, and i need to use it in my project for autocomplete control.

step by step procedure to add web service in my project and also how can I create a web service if i have to create my own service.

View 13 Replies

C# - Adding Delay In Application (for Debugging)?

Feb 9, 2011

I'd like to add a delay between 2 lines of code because I'm testing an updateprogress template. Ideally, the one-liner.

View 7 Replies

Adding MVC Content To An Existing Application?

Jan 31, 2011

We have a web application written in ASP.NET for .NET 3.5, using standard web forms.

Going forward we want to start building new features, and over time migrate existing features, in ASP.NET MVC.

Is such a thing doable? Can we add the necessary files to an ASP.NET web application and thus "upgrade" it to be compatible enough with MVC so that we can start adding routes, controllers, views, etc.?

The old site is using a frameset containing a top header, a left menu, and a main content. What I envisioned was to create a new masterpage for all the existing pages, integrating all of those things into each page instead, and then start adding new pages using views instead.

I understand that unless we upgrade to .NET 4 we cannot use MVC 3, so the way I see it we have the following options:

Build a new website, somehow auto logon the new site with the same credentials when logging in on the main site, and link between the sites. I see tons of problems with this solution. Integrate ASP.NET MVC 2 into the existing software, adding the necessary files, and starting to add new content in MVC style, only fixing critical bugs in the old files, and over time migrate them over to MVC. Upgrade to .NET 4 and integrate ASP.NET MVC 3, pretty much the rest the same as option 2. Wait until we can schedule a full rewrite, likely to not happen in any foreseeable future. Don't do it, keep web forms.

Note that a full rewrite is out of scope at the moment, so some transitional period is the only option we can do right now.

Option 2 and 3 are the ones we want, the rest are just for completeness.

View 1 Replies

.net - Adding A HTML Control IN C# In A Web Application?

Jan 7, 2011

I want to add a html control in C# which will display all the text from an html page selectively with the title given in my html page

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved