I've had the same problem a couple of times with different ASPX pages after renaming them and I am surprised that I can't find someone else with the same problem on stackoverflow.When I run my ASP.NET C# project, the debugger gives me a message like this one.
Error 5 The name 'txtTitle' does not exist in the current context
It seems that the aspx and aspx.cs files at no longer bound. The only fix I have found for this is to recreate the page and copy/paste my code. how to fix this without recreating the whole thing?
I have two aspx pages. I need to send a textbox(record_id) value as a parameter from page1.aspx to page2.aspx to be utilized within a SqlCommand query in the VB code behind page. I would like to pass this parameter using the session. Page1 is a gridview which displays records from a sql datasource and on the edit button click the user is redirected to page2 which populates several textboxes and drop down lists and allows the user to edit the record.
If Page1.aspx opens Page2.aspx in a window, how can I have Page1.aspx refresh once Page2.aspx is closed?I have a page with data on it and I have a LinkButton set up so the user can edit that data. The LinkButton launches another windowed page with some text fields and a "Save" & "Cancel" button. Once one of those clicks I execute a save and close the window OR just disregard the information and close the window. I was hoping to have the initial window with the data on it refresh once the 2nd window is closed.
I have two asp pages. a.aspx is layout and b.aspx is content. I want to display the contents of b.aspx inside a <div> on a.aspx. I know with PHP you can do it like so:
I have two webpage in my website namely Default.aspx and Default2.aspx
I have asp.net textbox1 and button1 inside Form tag in Default.aspx page
and i have textbox1 inside form tag in Default2.aspx page
i want when i wanna transfer the textbox1 text of default.aspx page into default2.aspx textbox1 text hidden parameters ... which will not show query string in address bar and transfer value from one page to another..
When i try to use this it gives error: txtSearch is not accesible? what am i doing wrong here? This is not complete code just a snippet. But i think it gives an idea what am i trying to do.
The problem is that when I actually download the file from my source, then upload it to my destination. The only thing in the file is a piece of text that says "System.IO.Streamreader" What am I doing wrong here?
I am converting an old asp project to a new .NET project. Now, all vb code are inside aspx files, and we are on the process of moving all vb script from aspx files to .vb files. My problem is, I can't debug the vb script inside most of the aspx files. All my friends don't have this problem. I think the problem is with vb text editor.I am using Visual Studio 2008. Is there anyway, I can make visual studio understand that aspx files have vb script inside them.
When I am editing VB code inside a .aspx file in Visual Studio 2010, my code is automatically indented in a bizarre way. I have searched through the options and can't find anything that fixes this. [I thought unchecking Pretty listing (reformatting) of code in Text Editor -> Basic -> VB Specific would for sure do the trick but it didn't]Example -- here is the beginning of a .aspx page:
<%@ Page EnableSessionState="True" Language="VB" Strict="true" %> <script language="VB" runat="Server"> Dim foo As String
If I go to the end of the "Dim foo" line and hit it will indent. If I fix the indentation, the next line will do the same thing.
I need to change the encoding from Western European... to Unicode... for every file in the project. I do not want to have to check out, open, change encoding, save and check-in every file, is there a faster way?
I have 2 pages. parent.aspx and child.aspx. In parent.aspx, i use colorbox and send some value for the child.aspx to popup.
[code]...
child.aspx will popup and shows ASPxGridView base on the value passing from parent.aspx. User will select the data from ASPxGridView. the selected data need to send back to the parent page. I code it in child.aspx.vb page.My problem is how can i get the value from child.aspx.vb and pass it to parent.aspx ?
i have my first aspx page that has data thatthe user fills in. it is in format of textbox's and at the end of it all the user clicks submit and all data goes in the database. In the database each record gets an ID field. Now when the users clicks submit and goes to the next page, i want the ID's (they could be 1 to 1000+) from the DB that he just inserted and have them available on the second page. how can i take all the id's from page 1 to page 2? can i do it in session?
I have intellisense when i type this:<p><%= boolean.falsestring %></p>
I don't have intellisense when i typ this:<p class="<%= boolean.falsestring %>"></p>
To further clarify (see line below), the first <%=%> doesn't show me intellisense popup, the second however does, why is that? <p class="<%= boolean.falsestring %>"><%= Boolean.FalseString%></p>
I put in the iframe tag as follows in my .aspx page - Now what code do I put in javascript or vb.net to make this auto resizable depending on the size of the page that comes in?
Sub emailConfirm() Dim email As String = txtMail.Text Dim name As String = txtPrenom.Text + txtNom.Text[code]....
note:I want to send Link contains a unique identifier and verify the unique identifier in the login.aspx.I don't know when to do this...I found nothing interesting on the net ...
I have a Visual Studio solution, containing .cs and .vb projects, as well as .aspx files. As usual, the .aspx files implement an ASP.NET site and make calls to the .cs and .vb projects.
Is it possible to do the reverse... i.e. make a call from a .cs or .vb file to a method in a .aspx file? (Assume for the purpose of this question that there is a good reason for doing this)
I'm trying to add some security to my ASP.NET 1.0 MVC app (VB), but I can't get it to work. At the top of my controller, I've got:[code]I'm overriding OnActionExecuting and throwing a SecurityException if the user is not in the proper role.Everything I've read states that this should by default look for Error.aspx first in the current folder (Home) then in the Shared folder. I've got Error.aspx in both folders, and all I'm getting is a "Security Exception" yellow screen of death.
My main issue is not being able to find much information about XMLBuilder. This following link looks like something I need, but I can only use XML Builder: Creating a Contact form in Visual Studio ASPX and saving to an XML file when clicking SUBMIT.My code is as follows:
In my web app, I have an aspx page which contains an html table and several lines of text. I need users to be able to download this whole page as a separate file.
In the past I have used the a webclient to do this:
Dim myWebClient As New System.Net.WebClient myWebClient.DownloadFile(strSource, strDest) Response.AddHeader("Content-Disposition", "attachment;filename=test.doc") Response.Write("test.doc")
but it appears this is only able to download html pages.
I'm trying to include an external aspx page on my aspx (VB) page. If it were php i would have done it with a line of code like <? include "http://www.google.com"; ?> what would be the equivalent of include statement for aspx? Isn't there a VERY SIMPLE way of doing this?