MVC In C# Coexisting With Webforms In VB?

Aug 11, 2010

I have inherited a really awful webforms application that is all kinds of bad--an untestable hairy mess of datasets and Page_Load events. Object oriented? N-tier? Unit tests? source control? All academic niceties to the team that built this mess.

It started life as an asp classic app, got mostly ported to VB.NET. Management denied my request to "nuke the entire site from orbit" and start over.

[Insert discourse on how ASP.NET MVC is absolutely, positively the only sane way to to .net websites anymore]

I know we might be able to interoperate between the legacy webforms and mvc. The question is, can we leave the legacy code in VB and build the new stuff in C#? I want to force the conversion to C# so the team doesn't fall back into bad habits.

Is there an MVC 2 Areas strategy that we could use here?

View 2 Replies


ADVERTISEMENT

C# - Routing In WebForms For A CMS?

Dec 8, 2011

I know that you can create routes in asp.net web forms, but how do I go about creating one that handles all my pages like [URL]? I do have a file called page.aspx that will process all the requests for the CMS. I think it's a root handler I need.

View 2 Replies

Ajax Page With ASP WebForms

Sep 14, 2011

I'm amateur with asp and .net, but i need create a page to generate xml/json output response similar to java servlet.what is the best way to do ajax response with asp forms? Asp page form with [code]

View 1 Replies

Convert A .NET 4.0 Webforms Solutions To C# 4.0?

Jun 18, 2011

I have a VB.NET 4.0 based solution (just one project) in Web Forms and needs quick conversion of the whole solution to C#.

View 1 Replies

Got Exception :Sys.WebForms.PageRequestManagerServerErrorException

Feb 22, 2012

Why I got this error Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: Invalid postback or callback argument. Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.this error appears when the event for Save command is started

[Code]...

View 1 Replies

Filling Out Webforms/textboxes Vb2010/08?

Jul 27, 2011

my problem is that i need to fill out a webform or a textbox, i tried using getelementbyid but then noticed the webform had no id only a name is there anyway of getting it to use a name instead of a id? (to be more specific instead of id= on a webpage is there any function that could use the name=?)

View 4 Replies

Passing Data Between Winforms And Webforms?

Mar 6, 2009

i'm planning on creating an application that uses both winforms and webforms and i have a few concerns before i proceed.1. is it possible to pass data between winforms and webforms?2. how about passing objects like connections, datatables, dataadapters etc. between webforms and winforms?3. i want a centralized authentication for all forms and webpages... meaning if i'm authenticated in a winform, i should also be authenticated when i launch a webform thru the winform and vice versa.

View 9 Replies

WebForms - OnClick Event For Textbox

Mar 10, 2011

I am trying to write an onclick event for textbox but VB.net does not seem to support textbox1.click(). I want to open a new form every time someone clicks on the textbox. Opening a new form is no problem, but I cant detect the click. Is there any event for textbox that detects click event? I saw something like TextboxBase that has Click but I am able to use it well.

This is how my class looks :
Partial Public Class TextBoxClick
Inherits System.Web.UI.Page
End Class

It has some basic load and init events. I am trying to write a Sub like this :
Private Sub incident_clicked(ByVal sender As Object, ByVal e As System.EventArgs) Handles Incident.OnClick
Incident.Click does not work either.
I am guessing I need to import some class to access the Click event but I am not sure which.

View 4 Replies

WebForms :: Binding A List Of Keyvaluepair To ListView?

Sep 20, 2011

I am trying to bind a New List(Of KeyValuePair(Of String, Integer)) to a listView
Currently, I have a code off:

Dim TestList As List(Of KeyValuePair(Of String, Integer))
For Each key in GetTPDesc (Which is a list of strings)
TestList.Add(New KeyValuePair(Of String, Integer)(GetTPDesc.ToString, 0))

[code].....

View 2 Replies

Search A Webforms Textbox For Specific Word (VB 2005)

Sep 30, 2011

I have been searching all morning for a sample showing a simple "find" example for an ASP.NET Webform, where a "find" button is used to find a string in a Textbox, and then Highlight it, like Word does. The following VB6 code worked perfectly, but I couldn't find .Selstart or .SelLength properties in the Text property of the ASP.NET textbox.

'find the first instance
Private Sub Command14_Click()
Command36.Visible = True

[Code]...

Is there a way to Select the Length and Start of the string in ASP.NET. The Winforms code is very similar to the VB6 code, so maybe I'm just missing something simple.

View 3 Replies

Server-side Html Coding - WebForms | Dream.In.Code?

Mar 17, 2009

What to change color of label in Web Form by letting each user click a button. Cannot figure out how to put code in aspx.vb without geting a souce code error. Is there an option in Visual Studio 2003 that allow you to key html in aspx.vb.

View 7 Replies

C# - Run A WebForms Page And An MVC Page In Different Files?

Apr 1, 2010

when i try to do this and load the webforms page, i get this error, even tho the path is correct. what can i do to get past this? i've tried running the aspx page from the root as well. nada.

[Code]...

View 3 Replies







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