Click here to Skip to main content
15,920,438 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionDataGrid and DropdownList Pin
Mkanchha23-Apr-07 19:02
Mkanchha23-Apr-07 19:02 
AnswerRe: DataGrid and DropdownList Pin
gauthee23-Apr-07 19:30
gauthee23-Apr-07 19:30 
GeneralRe: DataGrid and DropdownList Pin
Mkanchha23-Apr-07 19:40
Mkanchha23-Apr-07 19:40 
GeneralRe: DataGrid and DropdownList Pin
_AK_23-Apr-07 19:53
_AK_23-Apr-07 19:53 
QuestionUrgent... Regarding implementing infragistics webgrid with hierarhcy Pin
krishsenthilraj23-Apr-07 15:59
krishsenthilraj23-Apr-07 15:59 
AnswerRe: Urgent... Regarding implementing infragistics webgrid with hierarhcy Pin
Sandeep Akhare23-Apr-07 19:31
Sandeep Akhare23-Apr-07 19:31 
QuestionHow to link image in WebControl Pin
TiborAus23-Apr-07 15:56
TiborAus23-Apr-07 15:56 
QuestionMaking a Codebehind "Page Patch" to an ASP.NET site Pin
Nostromo7723-Apr-07 12:39
Nostromo7723-Apr-07 12:39 
Hello,

I'm trying to make a single "page patch" to an existing ASP.NET website. All I want to do is comment-out some phone number validation code that I want the app to ignore, and recompile the dll to include this change. I've been told that one way this can be done is to "hotwire" the codebehind page by changing the this line of the .aspx page:

<%@ Page Language="vb" AutoEventWireup="false" Codebehind="checkout_main.aspx.vb" Inherits="mywebsite.checkout_main"%>

...so that "Codebehind=" reads "Src=", and so that the project name is stripped out of the inherits, so that "mywebsite.checkout_main" just reads "checkout_main". However, now I get a compilation error when I run the page with these changes:

Server Error in '/' Application.<br />
Compilation Error<br />
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.<br />
<br />
Compiler Error Message: BC30188: Declaration expected.<br />
<br />
Source Error:<br />
<br />
Line 5:  Namespace mywebsite<br />
Line 6:  <br />
***Line 7:  Partial Class checkout_main *** [emphasis mine, this line was marked red by the error page]<br />
Line 8:      Inherits System.Web.UI.Page<br />
Line 9:      Protected WithEvents loginid As System.Web.UI.WebControls.TextBox


Here is the part of the codebehind page the error seems to be referencing:

Imports System.Data.SqlClient<br />
Imports System.Web.Mail<br />
<br />
Namespace mywebsite<br />
<br />
Partial Class checkout_main<br />
    Inherits System.Web.UI.Page<br />
    Protected WithEvents loginid As System.Web.UI.WebControls.TextBox<br />
    Protected WithEvents password As System.Web.UI.WebControls.TextBox<br />
    Protected WithEvents password1 As System.Web.UI.WebControls.TextBox<br />
    Protected WithEvents CompareFieldValidator1 As System.Web.UI.WebControls.CompareValidator<br />
    Protected WithEvents hint_q As System.Web.UI.WebControls.DropDownList<br />
    Protected WithEvents Hint_answeer As System.Web.UI.WebControls.TextBox<br />
    Protected WithEvents Salutation As System.Web.UI.WebControls.DropDownList<br />
    Dim myconnection As SqlConnection<br />
    Dim mycommand As SqlCommand<br />
    Dim chk_lib As New main()<br />
    Dim retval As String<br />
    Dim insertstr As String<br />
    Dim b_addr As String<br />
    Dim b_city1 As String<br />
    Dim b_state1 As String<br />
    Dim b_pn As String<br />
    Dim ots As String


When I change Src and Inherits back, things work ok, just not with the changes. I must be doing something very simple wrong... any advice would be greatly appreciated.
QuestionApplication level storage or file read Pin
Glenn E. Lanier II23-Apr-07 11:48
Glenn E. Lanier II23-Apr-07 11:48 
QuestionAccessing tags on a Master page [modified] Pin
Alaric_23-Apr-07 10:23
professionalAlaric_23-Apr-07 10:23 
AnswerRe: Accessing tags on a Master page Pin
szukuro23-Apr-07 22:44
szukuro23-Apr-07 22:44 
GeneralRe: Accessing tags on a Master page Pin
Alaric_24-Apr-07 9:03
professionalAlaric_24-Apr-07 9:03 
Questioncalling stored proc in a loop Pin
drequinox23-Apr-07 9:58
drequinox23-Apr-07 9:58 
AnswerRe: calling stored proc in a loop Pin
Christian Graus23-Apr-07 11:07
protectorChristian Graus23-Apr-07 11:07 
AnswerRe: calling stored proc in a loop Pin
Colin Angus Mackay23-Apr-07 11:47
Colin Angus Mackay23-Apr-07 11:47 
GeneralRe: calling stored proc in a loop Pin
drequinox23-Apr-07 23:51
drequinox23-Apr-07 23:51 
Questionconn string property Pin
Hasan Ali23-Apr-07 7:43
Hasan Ali23-Apr-07 7:43 
GeneralStop spamming the forum. Pin
Guffa23-Apr-07 8:49
Guffa23-Apr-07 8:49 
AnswerRe: conn string property Pin
Christian Graus23-Apr-07 11:08
protectorChristian Graus23-Apr-07 11:08 
QuestionBarCode Generation Pin
adnanrafiq23-Apr-07 6:43
adnanrafiq23-Apr-07 6:43 
AnswerRe: BarCode Generation Pin
Christian Graus23-Apr-07 11:15
protectorChristian Graus23-Apr-07 11:15 
QuestionMissing Properties Pin
Goudax23-Apr-07 5:32
Goudax23-Apr-07 5:32 
QuestionHow to Receive and Send Payment TO QuickBooks 2005 Pin
Software_Guy_12323-Apr-07 5:20
Software_Guy_12323-Apr-07 5:20 
Questiondatatable manuplation Pin
Hasan Ali23-Apr-07 5:03
Hasan Ali23-Apr-07 5:03 
AnswerRe: datatable manuplation Pin
Hasan Ali23-Apr-07 5:04
Hasan Ali23-Apr-07 5:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.