|
hi
i got the error like this
BC30456: 'CreateResourceBasedLiteralControl' is not a member of 'ASP.masterpage_master'
do u have any idea about this
|
|
|
|
|
This error is code specific, can you share the code so that I can look into it and let you know what could be the error.
Thanks
|
|
|
|
|
hi
this is the code in MasterPage
in source
<%@ Master Language="VB" AutoEventWireup="false" CodeFile="MasterPagePos.master.vb" Inherits="MasterPagePos">
'in code File
Public Class MasterPagePos
Inherits System.Web.UI.MasterPage
End Class
|
|
|
|
|
I need entire code since what you are talking about is code related error.
|
|
|
|
|
hi
actually i got the error like this
BC30456: 'CreateResourceBasedLiteralControl' is not a member of 'ASP.masterpage_master'
do u have any idea about this
|
|
|
|
|
I have a Web App project with a few Page items, as well as a UserControl item. I would like to use this UserControl within the Pages, but I can't seem to add it to the Toolbox. When I do a drag-drop, I get a Text element, which is just the filename of the UserControl.
Am I going about this the correct way? Should I instead set up the UserControl as totally separate project and somehow reference it to get into the Toolbox?
|
|
|
|
|
You shouldn't be using the toolbox at all, because it doesn't really generate nice HTML. You should just write the code in your aspx to add it.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
User controls cant be added to the toolbox
To use t just drag the user control directl to the page
Alexei Rodriguez
|
|
|
|
|
As the others have posted, you do not use the toolbox to add your usercontrol.
Instead you drag and drop it, but you may need to be in Design view as you otherwise
will just get a reference to the file.
|
|
|
|
|
OK, I went ahead and added the UserControl to a Panel in a Page, but the UserControl was rendered as just a general rectangle, in which there was the message "Error Rendering Control - An unhandled exception has occured. The directive is missing the 'tagprefix' attribute." When I attempted to execute the Web App, I got an error, "The directive is missing a 'tagprefix' attribute.
So it seems that I need to add this attribute. I have never heard of this attribute before. Shouldn't the IDE add this attribute automatically? Or perhaps this is just a standard Microsoft bug?
|
|
|
|
|
Not sure why it didn't add it automaticly. It should do so.
The tagprefix it is reffering to, must be something similar to this line
<%@ Register src="WebUserControl1.ascx" tagname="WebUserControl1" tagprefix="uc1" %>
which is added at the top outside the tags
You can always add this line yourself. Just name the src, tagname and tagprefix accordingly.
Hope this helps.
|
|
|
|
|
Hi,
This is my first or second post here.
I came across an article that mentioned that is possible to setup either the asp.net server so that it doesn't re-compile on every change.
That files can be changed and then the whole thing can be complied at once.
Does this sound right? and if it does how?
Thanks,
Chris Bishop
Web Developer
GeekPower
|
|
|
|
|
|
What are you talking about??
Tu run yout site just hit F5
If you want to deploy yous app you can use the copy website tool
If you want to deploy your app (Precompiled) you can use the publish wizard, choose the allow this site to be updatable option if needed
Alexei Rodriguez
|
|
|
|
|
What I want to do is use the copy website tool to move files up to the server.
But I don't want the server to auto-compile the files and allow the changes to be seen right away.
I want to be able to get all the files uploaded and then tell it to compile everything and display the changes.
If a few files compile first then people get errors because these files make references that don't exist until the other files
get compiled.
Chris Bishop
Web Developer
GeekPower
|
|
|
|
|
Dont make a big deal out of nothing
Just upload your files during the night, i dont think you have a site with a lot of traffic
Also, you cat take you site offline for a little while and dont let anyone access your site, just put an htm file in the root of your file and name it App_Offline.htm
Alexei Rodriguez
|
|
|
|
|
Chris D Bishop wrote: I want to be able to get all the files uploaded and then tell it to compile everything and display the changes.
It works the other way.
You compile the website first and upload the compiled files (DLLs and ASPX). This is known as pre-compiling. Websites are often updated after taking it off-line to avoid bad user experience. ASP.NET supports this by adding a app_offline.htm file to your root directory. More information here[^].
Best wishes,
Navaneeth
|
|
|
|
|
Hi
i'm looking for a series of useful and practical tutorials which demonstrates how to generate .aspx pages automatically using xsl (or better technologies to accomplish this).
i found this article[^], but it's not useful for me.
my goal is generate Insert,Update,Delete,Report pages base on my data in database.
my another scenario is that those page should have masterPage and can customizable with third party controls.
i can do this via string templates in my code, but its very hard-coded and dosn't readability.
any help would be great appreciated.
|
|
|
|
|
An aspx page itself capable to generate dynamic html using the server side code, xsl also doing the same thing. Both are produce html as output. The final output send to client browser is always html. So what you mean by dynamic pages? Do you want to display page names on browser address bar that are not in server? In that case you can use url rewriting.
|
|
|
|
|
Hi Kannan Ar
no, i don't do that.
i want to create a web application base on database schema, my app generate pages for that web application which do CRUD commands for each objects that user selected (New, Edit, Display and ShowList pages for each table/view).
i want to generate these pages automaticallu to free developer from hard coding for CRUD scenarios.
|
|
|
|
|
So you want separate web pages for each table in database. Since the tables in a database are fixed number, why do you want to create additional pages at runtime? They might be also fixed number right? I can't see any benefits on such an implementation. I am sorry may be I am not an expert on this subject.
|
|
|
|
|
|
|
|
vnsraj wrote: link given below for more details.
http://somewebguy.wordpress.com/2009/05/08/itextsharp-simplify-your-html-to-pdf-creation/[^]
Did you ask the guy who wrote the article?
|
|
|
|