|
Several controls on my UserControl have little red exclamation point icons over them. Hovering over them, or clicking them (with either mouse button) tells me nothing about what they mean. When I run my web page, it works fine. Huh???
Thanks in advance for any help.
Jamie Nordmeyer
Portland, Oregon, USA
|
|
|
|
|
Hello!
Is anyone familiar with how to make an ASP template site.
Would this require making an Application for IIS? or no?
Anyone have some advice or ideas?
Thanks,
-Sean
|
|
|
|
|
mrhsean wrote:
Is anyone familiar with how to make an ASP template site.
Would this require making an Application for IIS? or no?
The common way is to use INCLUDE files.
You have your template code in seperate INCLUDE files which are then included into the content pages.
e.g.
Your template files:
header.asp
<html>
<head>
<title><%=strTitle%></title>
</head>
<body>
menu.asp
<table align="left">
<tr>
<td>
<a href="default.asp">Home</a><br>
<a href="about.asp">About</a>
</td>
</tr>
</table>
footer.asp
<p>Copyright Joe Schmoe</p>
</body>
</html>
Now your pages:
default.asp
<%
Dim strTitle
strTitle = "Home"
%>
<!-- #include file="header.asp" -->
<!-- #include file="menu.asp" -->
<h1>Welcome to my page</h1>
<p>Hi, blah blah balhb albhablahb</p>
<!-- #include file="footer.asp" -->
about.asp
<%
Dim strTitle
strTitle = "About"
%>
<!-- #include file="header.asp" -->
<!-- #include file="menu.asp" -->
<h1>About Us</h1>
<p>Hi, blah blah balhb albhablahb some other content</p>
<!-- #include file="footer.asp" -->
The above will have two content pages called about.asp and default.asp. Both use the header.asp, menu.asp and footer.asp template files which wrap around the individual content for each page.
You can then edit the menu.asp file and it will be reflected in both the home and about pages.
Hope that is what you meant by templates
regards,
Paul Watson
Bluegrass
Cape Town, South Africa
The greatest thing you'll ever learn is just to love, and to be loved in return - Moulin Rouge
Tim Smith wrote:
Over here in the third world of humor (a.k.a. BBC America),
peterchen wrote:
We should petition microsoft to a "target=_Paul" attribute.
|
|
|
|
|
I create one TextArea in FrontPage and set it :
...
One
Two
Three
....
I want that, when choose one option and click submit, it will link to my data on my hard disk
help me...
thanks !!
|
|
|
|
|
i want to know where can registry free homepage account!
i need a free web space (3-10MB)
please introduce me some.... thank you!
|
|
|
|
|
|
How do you display 25 messages per page in this forum?
|
|
|
|
|
i think we can't change this set!
i can't find some option to change this...
|
|
|
|
|
Use the combo box at the top of the messages, I use DHTML view and I get the option to change to 25 messages.
Michael
|
|
|
|
|
I know that... DHTML and stuff... but how that thing WORKS ?!
|
|
|
|
|
I am trying to populate a textbox that has the password type set. I want to put junk in it so it looks like there is something there, not the correct password of course. It doesn't seem to matter if I add text in the html
<asp:textbox runat="server" type="password">Junk Here
or assign it through code
txtPassword.Text = "Junk Here";
When the control is rendered it is empty. Is this by desing or am I missing something? I just want some placeholder characters.
|
|
|
|
|
Hmm.... as I remember you need to use "value" property, like:
<input type=password value="Jank here">
Maybe it changed in .NET? Dunno
Philip Patrick
Web-site: www.stpworks.com
"Two beer or not two beer?" Shakesbeer
Need Web-based database administrator? You already have it!
|
|
|
|
|
That's the ticket. Curious that value isn't a recognized attribute for a textbox control but it puts the text in, where as the text property does not.
|
|
|
|
|
I want to create my own file type, which when requested by the web server is handled differently than simply sending its data to the client. It should pass through either a ASP.NET page or an application, which transforms the file (which is actually an XML file) according to an XSL stylesheet, on the server side, and sends the resulting data to the client as if that was the data the file actually contained.
I've looked into the IIS Manager applet, and what I'm looking for seems to be in here: Expand Web sites, right click default web site, choose properties, choose home directory, click configuration.
So, it looks like I need to write an application. A dll, actually. Problem is, how? How do I recieve the data I need (the filename of the file to transform), and give back the data I want to give (the transformed XML)? Perhaps I get passed a HttpRequest and HttpResponse object, that I Response.Write() to? So what does my Main() look like?
Can I even do this with a managed DLL? All the ones on that list don't seem to be, as I can't ildasm.exe them.
Someone must have done this before. Help?
-Domenic Denicola- [CPUA 0x1337]
MadHamster Creations
"I was born human. But this was an accident of fate - a condition merely of time and place. I believe it's something we have the power to change..."
|
|
|
|
|
Create an HTTPHandler, and use web.config to assign it to the extension:
[In Web.Config]
<httpHandlers>
<add verb="*" path="*.CustomExtension" type="MyHandler.ExtensionHandler, MyHandler" />
</httpHandlers>
[In ExtensionHandler.cs]
using System;
using System.Web;
namespace MyHandler
{
public class ExtensionHandle : IHttpHandler
{
public void ProcessRequest(HttpContext context) {
HttpResponse Response = context.Response;
HttpRequest Request = context.Request;
}
public bool IsReusable {
get {
return true;
}
}
}
}
If you're just transforming XML files, you may want to look at the XSLISAPI filter from MS, which does exactly that.
|
|
|
|
|
THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU.
This looks perfect! Researching XSLISPAI right now, but more importantly I have acquired the knowledge of how to do this myself, in MANAGED code!
-Domenic Denicola- [CPUA 0x1337]
MadHamster Creations
"I was born human. But this was an accident of fate - a condition merely of time and place. I believe it's something we have the power to change..."
|
|
|
|
|
OK, the sample I got this from was posted to the GotDotNet site by Donald Buchanan. The instructions to get it working are:
- Create a new web project, and add ExtensionHandler.cs to it
- Create or update the web.config file in the root of your project with the HTTPHandler details
- Open IIS Admin
- Find your project, and add the mapping for your extension.
- This should be mapped to the aspnet_isapi.dll - just copy the path from the aspx extension.
- You can limit the verbs to GET, HEAD, POST and DEBUG.
- Tick the "Script Engine" option, and [optionally] un-tick "Check that file exists".
- If you have URLScan installed, you may need to modify the configuration to allow the extension through. The URLScan.ini file contains details of how to do this.
- Compile your project.
- Run!
|
|
|
|
|
Hi,
In ASP, can we display aan image on the page which is
present in a VARIANT variable.
Sameer
|
|
|
|
|
You can use Response.BinaryWrite if you have the data of image. Remember to set up the header of the page to apropriate content-type
Philip Patrick
Web-site: www.stpworks.com
"Two beer or not two beer?" Shakesbeer
Need Web-based database administrator? You already have it!
|
|
|
|
|
In my ASP.NET application I have an asp:image and I want OnMouseOver() handle for it but I can't find it.Is that possible for this control?
Mazy
"The more I search, the more my need
For you,
The more I bless, the more I bleed
For you."The Outlaw Torn-Metallica
|
|
|
|
|
OnMouseover and the like are client side. You can always add the attribute and provide the JavaScript to handle it.
|
|
|
|
|
Thank ou for your reply.
Mark Nischalke wrote:
You can always add the attribute and provide the JavaScript to handle it.
Could you please give me more details about it?
Mazy
"The more I search, the more my need
For you,
The more I bless, the more I bleed
For you."The Outlaw Torn-Metallica
|
|
|
|
|
<asp:image runat=server onmouseover='YourFunctionHere()'>
Provide the JavaScript function in a script block, or inline it, and your set. Just because the attribute doesn't show up doesn't stop you from adding it.
|
|
|
|
|
Thank you.
Mazy
"The more I search, the more my need
For you,
The more I bless, the more I bleed
For you."The Outlaw Torn-Metallica
|
|
|
|
|
I´m trying to run ASP.NET pages on my server but it´s not working. Even if I created a new project with VS.NET when I execute a page I receive this message:
Server Application Unavailable
The web application you are attempting to access on this web server is currently unavailable. Please hit the "Refresh" button in your web browser to retry your request.
Administrator Note: An error message detailing the cause of this specific request failure can be found in the system event log of the web server. Please review this log entry to discover what caused this error to occur.
I checked the Event View and found this two entrys:
Entry 1:aspnet_wp.exe could not be launched because the username and/or password supplied in the processModel section of the config file are invalid.
Entry 2:aspnet_wp.exe could not be started. HRESULT for the failure: 80004005
Anyone know what is causing this and how can I solve it !?
Thanks
Mauricio Ritter - Brazil
Sonorking now: 100.13560 Trank
I've gone sending to outer space, to find another race
|
|
|
|