I made two asp.net pages with VB.Net code, the first page is to post a message to the acceess data base, and the second page contains a repeater wich shows all the messages in the access database, but the repeater shows the posted messages without any line breaks. (line1. line2)
so what is the solution??
I have created usercontrol templates and stored the template code in database. The templates are for instance postcards, visiting cards etc..
I want to load these usercontrol templates dynamically to my web page. I referred to http://aspalliance.com site where the author has mentioned about use of usercontrol templates...
I want to know how I can load the the usercontrol using the template code from database on the web page...
please help me...
thanks in advance...
Hi there. A UserControl, as a subclass of TemplateControl can use the LoadControl() method to load a usercontrol given a virtual file path. Unfortunately, there isn't an override that allows you to load a usercontrol given a string (which could be fed by your database source).
However... in ASP.NET 2.0 we now have the VirtualPathProvider[^] class. It seems to me you may be able to build your own VirtualPathProvider to intercept requests for ".ascx" files and instead get that data from the database.
That sounds like a pretty good concept for a CP article...
Hello. I am having some trouble sharing a web application with Visual SourceSafe. Here is what I've done:
-I have created a web application with VisualStudio2005 and saved it to the folder 'C:\Projects\WebSite' in my workstation.
-Then I added it to SourceSafe 6.0 (to '$\Projects\WebSite') with the 'add solution to source control' option in VisualStudio2005.
-A developer in other workstation entered SourceSafe and clicked get latest version in '$\Projects\WebSite'. The web application was copied locally to 'C:\Projects\WebSite'.
-Then he double clicked the solution file to open the project. VisualStudio returned an error message saying that the folder 'WebSite' does not existed, and then it automatically created an empty new 'WebSite' folder beneath 'C:\Projects\WebSite'.
I don't understand why it searches for 'C:\Projects\WebSite\WebSite' instead of 'C:\Projects\WebSite'.
I also noticed that, when opening the solution file with notepad, there is a reference to the absolute path of the solution as in the workstation where it was originally created before being added to source safe.
What am I doing wrong? Any help?
Thank you very much.
When we use 'add solution to source control' in VS2005 it automatically adds to source safe the needed files. For web applications there is just a solution file, not a project file, so if I don't add the solution file, my web application cannot be opened by other developers.
Maybe there's some tricky detail.
Hi. I am still having trouble with VS2005 websites and visual sourcesafe.
I created a new ASP.NET website for testing in 'C:\Projects\MyWebSite' and noticed there is two different options in the SourceControl menu:
- Add solution to source control
- Add web site to source control
When choosing the second option the solution file is not added to source safe, just the folders and aspx files. That's fine for me.
Then another developer entered source safe and 'get latest version' to his workstation. The website is copied without a solution file, so we need to create one.
And this is the point where we get stuck. We create a new empty web site and point it to 'C:\Projects\MyWebSite'. But after doing this the aspx files seem like they have lost the integration with source safe.
Can anyone give me a simple example on how to setup things to share a website in source safe?
I am creating template columns at run time without using any control in item template .
But my requirement is to apply css on it. Css will put background image in this template column at runtime.
How can i do it.