Jump to content


  • Content Count

  • Joined

  • Last visited

Everything posted by kwilliams

  1. I've thought of that, but I wanted to set the properties for several years of months in the XML doc. So May 2008 and May 2009 would both have an id of "05".But here's a solution that was forwarded to me my someone else in-case anyone's interested:<xsl:for-each select="events/month[@id >= $current_month]"> <xsl:if test="position() < 3"> <xsl:value-of select="name" /><br /> </xsl:if></xsl:for-each>In addition to that code, I also added additional code to allow for events for next year also, like this:<xsl:for-each select="events/month[(@id >=
  2. I would like to pull 3 event nodes (May, June, and July) that are located within a bunch of other nodes from the following XML doc, starting with node #2 (name=May 2008): <events> <month id="04" year="2008"> <name>April 2008</name> </month> <month id="05" year="2008"> <name>May 2008</name> </month> <month id="06" year="2008"> <name>June 2008</name> </month> <month id="07" year="2008"> <name>July 2008</name> </month> <month id="08" year="2008"> <name>August 2008</name> &
  3. I was thinking the same thing, but since the codebehind page is being called from the content.aspx page in its page declaration, shouldn't that automatically load the CB code?
  4. Sure. This is the block of code:Public Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) 'Assign path to FileInfo Class Dim strXMLPath_mc As String, strXSLPath_mc As String strXMLPath_mc = "docs/xml/content.xml" 'xml doc strXSLPath_mc = "docs/xslt/content.xsl" 'xsl doc 'Assign maincolumn XML/XSLT transformation properties xslTransform_mc.DocumentSource = strXMLPath_mc xslTransform_mc.TransformSource = strXSLPath_mc End Sub and no error are returned. What I did is place code in the XSLT doc to display whether or not the XSLT parameters were returned, like this:$xslt_category:
  5. I'm using the Master Page method on my site, but I'm having a problem with using the content page's code-behind doc (VB). If I place a block of code in the Master Page's code-behind file, it works great. But if I place that same block of code in the content page's code-behind page, it doesn't work.I thought that I had everything set up properly, but obviously the content's CB is not being called properly from the content page. Below is my code. Please let me know what I'm doing wrong. Thanks.Master Code-Behind Page(MasterPage.master.vb) Partial Class MasterPage Inherits System.Web.UI.MasterPa
  6. Because I am not a *lazy* person, I've been seriously thinking of creating an in-house solution using an RTE for the formatting of new web pages.The CMS solution that I would need would include the creation and editing of new web pages with formatting options, the maintenance of forms & documents, and the creation of new online fillable forms. If I was to do an in-house solution, I think that I could accomplish the first with the use of a good RTE, and the second with a simple ASP.NET XML form. But the third task is where I'm stumped. I'd need to use/create a RTE that allows users to creat
  7. I'm using XML docs to store basic page data across my site. So default.xml contains the data that will be displayed on default.aspx, while default.xsl formats the XML data using a XML/XSL transformation on the ASP.NET page.So I'm looking for a content management system that can work with dynamic data.
  8. I need some advice, because I'm not having very much luck finding this information.Is there a content management system out there that doesn't cost an arm and a leg that can work with XML data?
  9. Hi jesh,Thanks for the suggestions. I looked over the first article you titled "XmlDataSource" at http://msdn.microsoft.com/en-us/library/sy...datasource.aspx, and noticed this sentence: "No XSLT transformation can be specified in the Transform or TransformFile properties." So this solution wouldn't work with my setup, as my entire site uses XML/XSLT transformations from a central ASP.NET Master Page.Concerning the second suggestion, I think that it also focuses on using the ASP.NET code-behind doc to do the work, while I'd prefer a way for the XSL doc to utilize the ASP.NET calendar control o
  10. Sure. I basically want to use the ASP.NET Calendar Control (see http://www.w3schools.com/aspnet/control_calendar.asp) within a XML/XSLT transformation. After I've created a basic ASP.NET calendar within the XSLT doc, I then want to try to populate the calendar with events that are located within a XML document.I've been reading about ways to use ASP.NET controls within an XSLT document, but haven't had any success in implementing it. Do you know of a way to do this? Hope this info is more thorough, but let me know if you need any other info. Thanks.
  11. Can someone give me the basics or point me in the right direction on how I can create an ASP.NET calendar control within a XML/XSLT transformation? I'd really appreciate any help. Thanks.
  12. For some reason, it's now working. It must have needed some time to load or something. Thanks anyway.
  13. I have an XSLT page that pulls a variable from a JavaScript document. This is what the code looks like: JavaScript //Generic variablesvar subject = "?Subject=Website Comment/Question";var mailto = "mailto:";var at = "@";var url = "mysite.com";//User-specific variablesvar strIT_webmaster_url = "webmaster";var strITEmail_webmaster_url = "<a href=" + mailto + strIT_webmaster_url + at + url + subject + ">" + strIT_webmaster_url + at + url + "<\/a>"; XSLT #1: <?xml version="1.0" encoding="ISO-8859-1"?><xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transf
  14. I had already tried that too, but unfortunately it didn't work. Any other suggestions?
  15. My site's links have the text-decoration property set to "underline". In Firefox, the linked images are showing an underline, but in IE and other browsers, that underline doesn't show up.I've seen some other articles and posts (like http://archivist.incutio.com/viewlist/css-discuss/56774), and the only solution I've found that works is "display:block;". I cannot use that property in my site, as it moves the images from where they are supposed to be. Does anyone know of another way to make this work?P.S. This is what I currently have my "img" CSS property set to:img { border:none; text-decorati
  16. I'm using the following code to pull the current date in mm/dd/yyyy format:Dim dtCurrDate As DateTime = DateTime.Now 'Assign current dateOn the test server, 03/12/2008 11:25:50 AM is returned, and the date is formatted properly (mm/dd/yyyy). But on the web server, 3/12/2008 11:25:50 AM is returned and the date is not formatted properly (m/dd/yyyy). My Network Administrator made sure to change the date format on the server from m/dd/yyyy to mm/dd/yyyy, but it didn't fix the problem when I re-loaded the page. Both servers are running ASP.NET 2.0. What could be causing this problem?
  17. Thanks for the link, but that doesn't solve my problem when it comes to a 3-column layout. That only deals with having a footer at the bottom of the page. If you or anyone could include info and/or links to examples using a 3-column layout that solves my problem, that would be great. Thanks.
  18. I've been messing around with a copy of a 3-column CSS stylesheet at http://www.positioniseverything.net/guests/3colcomplex.html, and I have a question. If the content in the middle column is short, and the content in left column and/or right column is much longer, the content from the left and right columns overlap the gray background on the bottom. This happens in IE7 and Firefox. I'm including the code below: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><!-- Source: http://www.positioniseverything.net/guests/3colcomp
  19. Will do. I was thinking the same thing. I appreciate the info. Thanks for the example Try/Catch. It's kind of a pain being a newbie, so I appreciate your help.
  20. Thanks Reg Edit,Could you give me a quick example of a try/catch using my code? I'd appreciate it.
  21. I have an ASP.NET page that parses an external XML feed (please see code below). It works...but when the feed goes down, it subsequently brings my site down. So I've created a default XML document that's located on my internal server a backup method when/if the external feed goes down. But I have no idea how to do this. If someone could let me know how to accomplish this, or point me in the right direction, that would be great. Thanks in advance.ASP.NET XML FEED CODE 'Check for active amber alertDim strAlertTitle As String, strAlertDescription As StringDim intAlertCounter As Integer = 0Dim al
  22. Hi Jesh,I had just received that suggestion from someone in another forum, so I guess great minds *do* think alike:)Here is the complete solution:Change this:Partial Class MasterPage Inherits System.Web.UI.MasterPage Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Dim CurrentState As String = "Colorado" End SubEnd ClasstoPartial Class MasterPage Inherits System.Web.UI.MasterPage Public CurrentState as String Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) CurrentState = "Colorado" End SubEnd Classand thisvar currentState = "<% Respo
  23. Thanks for replying so quickly Jesh.When I moved the variable declaration outside the Page_Load handler, like this: Partial Class MasterPage Inherits System.Web.UI.MasterPage Dim CurrentState As String = "Colorado"End Class I now receive a different error:Compiler Error Message: BC30390: 'MasterPage.CurrentState' is not accessible in this context because it is 'Private'.Do I need to add some other code around the variable declaration to make this work?
  • Create New...