|
Hello,
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??
Note: I'm using VB codes
Thanx
|
|
|
|
|
What's your sql?
What does your repeater look like?
|
|
|
|
|
it's a microsoft access 2003 database.
and here is my repeater's code:
<asp:repeater id="rptGuestbook" runat="Server">
<headertemplate>
<itemtemplate>
<separatortemplate>
<footertemplate>
<%# Container.DataItem ("Name") %> | E-mail: | <%# Container.DataItem ("EMail") %>
| Website:
|
<asp:hyperlink id="HyperLink" runat="server" font-names="Tahoma" font-size="X-Small" navigateurl="<%#" container.dataitem="" ("url")="" %="">>
<%# Container.DataItem ("URL") %>
| Comment:
| <%# Container.DataItem ("Comment") %>
| |
|
|
|
|
|
When you display the text, html-encode the text, then replace the line breaks (Environment.NewLine) with "<br>" (or "<br />").
---
b { font-weight: normal; }
|
|
|
|
|
Hi all
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...
|
|
|
|
|
|
Hi all,
how to calculate number of days between two days e.g
from date 01/07/2006 To date is 10/07/2006.. i want to calcilate no.of days.
Help me urgent. in asp.net
|
|
|
|
|
DateTime aDate;
DateTime anotherDate;
Timespan diff;
diff = aDate.Subtract(anotherDate);
Timespan has properties like days, years etc.
|
|
|
|
|
its working properly...
thanks for ur answer...
|
|
|
|
|
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.
|
|
|
|
|
DOn't add the solution file (sln) to VSS, you should only add the project file (csproj or vbproj).
|
|
|
|
|
In Visual Studio 2005 there is no project file for web applications, just solution file, so the problem must be other thing.
But thanks for the advice anyway.
|
|
|
|
|
If you have more than one project in the solution it does add the sln file to VSS when you use the "Add Solution to Source Control"
|
|
|
|
|
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
and
- 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?
Thank you very much.
|
|
|
|
|
The problem is on load of a page i have assigned a session variable.But while
using ajax when i come on the client side the session value is lost.
Can anyone please help me out . ITS VERY URGENT !!!
|
|
|
|
|
Hi,
use Hidden field instead of session.
|
|
|
|
|
could not do it with hidden field either.
can you please help me with the codes for hidden field .
what i did is
on server side
filenames.Value=(string)Request.QueryString["filename2"];
i am getting the value of Request.QueryString["filename2"]. But
getting the error like
System.NullReferenceException: Object reference not set to an instance of an object.
|
|
|
|
|
|
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.
Regards,
kamran
|
|
|
|
|
if i understand the problem :$
Panel panel = new Panel();
panel.Width = new Unit(100, UnitType.Percentage);
panel.Height = new Unit(100, UnitType.Percentage);
panel.CssClass = "css_class";
Height property may give you X browser problems.
hope that helps
g00fy
|
|
|
|
|
I want to execute a process on a client machine from a web page.
Like a batch file.
I tried it but it gives permission exception which is understandable.
But is there a way to execute a process on client system?
|
|
|
|
|
Simple answer is no. Would you want any webpage to be able execute a process on your system?
|
|
|
|
|
A way around it is to code up an OCX and let that do the work. Because it's installed, it's like a local app, and therefore has the correct priviledges
"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
|
|
|
|