888 Posted Topics
Re: On the server side, you'd use Server.MapPath to specify the viritual path to your directory. Then perhaps DirectoryInfo.GetFiles to return a filelist. Iterate through that list to populate whatever Server Control you want to contain that data. A Repeater, perhaps. | |
Re: No one is going to send you any code, as that totally defeats the spirit of a forum. "n-tier architecture", with various "layers", is a philosophical thing. In terms of actual coding, all it really means is that you organize things in a logical manner. For example, all the code … | |
I think I've posted on this before, but I find the overall site categorization non-intuitive. "Software Development" vs. "Web Development" doesn't make sense to me. Web development IS software development. I propose the site be organized by software development languages and platforms. DHTML/AJAX includes working with XML/XSLT, so where do … | |
Re: If they are mutually exclusive, then give them all the same name. Otherwise, you'll just have to look at the "checked" property of each checkbox. | |
Since it's been about three years since I had to write any XSLT, I'd like some assistance with the code below. [CODE]<?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0"> <xsl:output method="text"/> <xsl:template match="/"> <xsl:for-each select="/WatchConfig/ProcessList/Process/Node"> <xsl:if test="Plugin = 'PWScript'"> <xsl:text> </xsl:text> <xsl:value-of select="Config" disable-output-escaping="yes" /> <xsl:text> ************************************************************************ </xsl:text> </xsl:if> </xsl:for-each> </xsl:template> </xsl:stylesheet>[/CODE] … | |
Re: The answer is "no". The entire purpose of XSLT is to transform a SPECIFIC XML format to a SPECIFIC output. There is no magic code to transform any XML to pretty HTML. Sorry. You have to match templates. Think about what that implies: to do a "match", you have to … | |
Re: XSLT processors see whitepsace within the stylesheet as literal text and outputs it as such. To have better control, use the TEXT element. [CODE]<text> My Text </text>[/CODE] The only whitespace preserved is the whitespace within the element. If you use text elements, the parser views any other whitespace as insignificant … | |
Does C# have a conditional compiler directive for debug mode? I have code that I want to run only if I'm debugging. ![]() | |
Re: I'm not sure where the concept of "bottom" fits within the frame hierarchy. But you can refer to specific frames using an indexer of the frame collection: frames[1], frames[2], and so on. Also look at the "top" and "parent" objects, and possible the "this" keyword, the "self" object, and so … | |
I'm having the same problem described in this, unresolved, thread on MS ANSWERS: [url]http://answers.microsoft.com/en-us/windows/forum/windows_7-hardware/mouse-scrolling-stuck-with-wireless-mouse-windows/ad41e351-d5f3-4a31-98f3-018e81dd3e9e[/url] I have a MS Wireless Laser Mouse 6000 v2.0. Windows 7 Professional 64-bit. Most dropdown controls and scrollbars will behave as if the mouse button is being held down. I should note the keyboard will often … | |
Re: Research the "target" attribute of hyperlinks. | |
Re: Why use the querystring? Can't you use POST rather than GET? Also, you aren't supposed to enter HTML tags into a textarea... it should automatically "break" text according to the browser window size. | |
Re: It depends on what you mean by "web design", first of all. Are you talking about programming? Layout? Graphic Design? Regardless, my advice to anyone who wants to work with the web, is to learn HTML. I've been a programmer for decades, and a web developer for as long as … | |
Re: If he hosts it securely, using "https" to access it, and it links to the various services securely, using "https", then it should be reasonably secure. | |
| |
Re: You don't. Or, rather, you shouldn't worry about this it all. Pick a standard resolution, such as 800x600, and code for it. Trying to code for all possible screen resolutions and browser window sizes will drive you crazy, and in my opinion it's sticking your nose where it doesn't belong: … | |
Re: Get the value AFTER you submit it? That would be a server-side question. Since you mention Java, I suggest you ask in the Java forum. All values are packaged in the RESPONSE object, but that object is exposed in different ways in different languages. | |
I'm coding a project in C#, VS2010, using SQL Express 2008 as the data source. Whenever any other application connects to the database (such as Management Studio), the next time my C# application runs, it cannot access the database. The error is "Operating system error 32". Unable to open the … | |
Re: A "partition" is a [I]logical [/I]division of a [I]physical [/I]device. You can divide your single drive into multiple "parts" that the OS can use. | |
Windows Form Application, C#, in VS2010 Express. I get the "Object reference not set to an instance of an object." error with the line of code below, when I attempt to close the Form. [CODE]Int32 myID = Convert.ToInt32(((DataRowView)projectBindingSource.Current).Row.ItemArray[0]);[/CODE] This is a simple form with two data-bound controls. The record has … | |
I'm working with C#, and Adobe Acrobat 6.0 Professional. Acrobat exposes a COM Automation server with a few top-level objects. It's easy enough to create instances of those objects, by getting their Type via the .GetTypeFromProgID() method, and then using Activator.CreateInstance(). [code] // Create an Acrobat Application object Type AcrobatAppType; … | |
Re: I agree. I did find that the post was displayed on the right side and could be copied to the clipboard, so that it wasn't exactly "lost". However, when prompted to log in after making a reply, the site returns a "dead end"... you aren't back in the thread, but … | |
Re: I think you'll need some server side code. Something that looks at a timestamp, a rolling counter, a database value, something... and automatically authors the appropriate image tag. Right now, I can't think of how you'd accomplish this with client scripting. | |
First, sorry for posting this here, but I couldn't find a VBScript forum on Daniweb (which I find surprising). I'm working with binary data in several different projects. Below is an example of code that works to retrieve a static map image (PNG) from Google: [CODE]strFileURL = "http://maps.google.com/maps/api/staticmap?markers=2200+S+Western+Ave+Lisle+IL&zoom=14&size=400x400&sensor=false" Set objXMLHTTP … | |
Re: RichTextBox is in the .NET Framework, but only for Windows Forms, not for Web Forms. This is because ASP.NET renders HTML, and HTML doesn't contain a RichText element. So your answer will be to buy a 3rd party control that will likely render as an ActiveX object. | |
Re: First, your print button can be an ASP.NET Web Server control, or not. Thinking it over, it might be good to use one, since then you can run both client and server-side code for it. Let's talk about client-side first. You need to accomplish two things: 1) Open a print … | |
Re: Your question isn't clear. A user selects options by clicking the mouse. I'm sure you know that, but that appears to be what you're asking. Please be more specific, and it would help tremendously if you would use real words and complete sentences. Otherwise people have to struggle to understand … | |
Re: Hidden variables would work. The ASP.NET ViewState mechanism is just a hidden variable. In HTML, you simply create: [INLINECODE] <input type="hidden" id="myHiddenVar">[/INLINECODE] To set it's value in javascript: [INLINECODE] document.getElementById("myHiddenVar").value = "myValue"[/INLINECODE] In ASP.NET code-behind, you use the Request object to retrieve the value. So many ASP.NET programmers waste hours … | |
Re: Upload to your [i]email address[/i]? Hmmm. You can have the user upload any file at all, by placing a file upload element on your page. [code] <input type="file"> [/code] There are some optional attributes, such as ID or NAME, and SIZE (referring to the size of the textbox, not the … | |
Re: To create a button, use the "input" tag, with the type attribute set to "button": [INLINECODE]<input type="button" id="myButton" />[/INLINECODE] To make it perform an action, including navigating to another site, code the "onclick" attribute. The value will be a JavaScript function you've written and included elsewhere in the document (in … | |
Re: That should work. You need to return either true or false, and call the function using the "return" keyword as vishesh has shown. He's missing the terminal semicolon, but it should still work. Also, you can't code both an "onsubmit" for the form AND "onclick" on the submit button. Your … | |
Re: Make any link, image, button, or other "widget" a submit button by simply attaching JavaScript to it. For example, a hyperlink can be: <a href="" onclick="myForm.submit()">Submit me!</a> The key is that the form has a "submit" method, that you can call from almost anywhere. | |
Re: ASP.NET Applications are run via IIS. What you're asking makes no sense. If you mean, you'd like to migrate the application to a different IIS web server, then search for "ASP.NET deployment". | |
Re: DIV is "division", and is a block-level container object. It's used to divide a page into discrete, high-level "sections". For example, if you had a navigational section and content section, each would go into its own "div". SPAN is an inline container object. It is used to set off elements … | |
Re: Letscode: that isn't quite right. The "HTML" view in the VS.NET IDE isn't really HTML. It's ASP.NET code, or "aspx" code. Here you'll find the declaratives used by ASP.NET, along with the code-behind, to generate HTML. In other words, this isn't client-side code. What you see is still processed by … | |
Re: Just a note, the webbrowser control is in fact an ecapsulation of the Internet Explorer browser. This allows you to do some unique things. For example, the html you display could contain hyperlinks, and you can overload the Navigate event. So when a user clicks a hyperlink, instead of navigating, … | |
Re: Please use code tags. Please use English, including proper punctuation, spelling, and grammer, as far as possible. I personally found your message incomprehensible... what does "u[I]sed the onsubmit and onradiochanged both give errors function not part of form[/I]" mean?? | |
Re: There is no way to disable the back button reliably. Every method, short of writing your own browser, can be easily disabled. This question has been asked millions of times, for years and years. The "back" button is integral to how browsers work, and is firmly a part of the … | |
Re: 3-tier refers to separating your code by task. So, you might have all your HTML/CSS/JavaScript (client code) in .aspx pages, then implement all your business logic in ASP.NET "code behind" pages, and all your database i/o as stored procedures in SQL Server. | |
Re: You can either define a third function, which would have the sole purpose of calling the other two functions. Or, you can comma separate the two functions in your onload attribute. Or, you can concantenate them with the "&&" operator: [code]<body onload="return (Do_This() && Do_That())" >[/code] (which is a useful … ![]() | |
Re: You asked specifically about dragging and dropping. This is possible with Internet Explorer and JavaScript. Note: these events and methods are part of the IE DOM, they are not server-side ASP.NET. The relevant event handlers: [B]ondragstart[/B] This is the "starting event" for dragging. It initiates the drag, and it's also … | |
Re: There is no reason to do that, as the selected value will be posted with the form. You don't have to place it in a hidden variable. However, in JavaScript it might look like this: [code] s = document.getElementById("quanity"); document.getElementById("ssl_amount").value = s.options[s.options.selectedIndex].value; [/code] Untested, but should get you on the … | |
Re: The last suggestion is the best. An anchor tag with the href set to "#" will navigate to the TOP of the page when clicked, which isn't quite the same thing as "go nowhere". Similarly, using an empty JavaScript is... well, silly, in my opinion. So I second IAMMATT's suggestion: … | |
Re: The action tag is used to tell the browser which web server application will process the form data. The "mailto:" is used for hyperlinking to a client's email client. Combining them is... not going to work. You need to use a server-side email script, in whatever language you use for … ![]() | |
Re: As a scripting language, JavaScript acts on the underlying Object Model of its host. In a web environment, this means the browser/web page. In Acrobat, this means the various objects exposed by Acrobat (AVDoc, PDDoc, etc.). So not only can you not arbitrarily execute a "JavaScript" from C#, it's a … | |
Re: You'll have to navigate the hierarchy. For example, use the [COLOR=Red][B]document.images[/B][/COLOR] collection. I made the decision long ago that I simply wasn't going to worry myself, or add huge development overhead, to supporting old browers, particularly for corporate development projects and/or sites. Use a strict DOCTYPE, code to that standard, … | |
Re: 1st, the script calls for an argument to be passed in, it appears to be the Event object, yet your call doesn't pass anything in. Also, the script definition should properly be inside the head section. Lastly, it's a bad idea, in my opinion, to attempt to alter or change … | |
Re: There is no such thing as a "page size" in HTML. The user can size their browser to any size they wish. That's as it should be. JavaScript does provide, however, a [INLINECODE]window.resize()[/INLINECODE] method. Using it creates a very negative user experience. The only way I've seen this work well … | |
Re: Of interest are the collaboration features, the ability to "share" your notebook with friends and family and "publish it" as a public web page. It seems Google is not content with caching entire sites and scanning copyrighted printed publications; they see a new opportunity in the social networking environment of … |
The End.