888 Posted Topics

Member Avatar for c#bird

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.

Member Avatar for rv2011
0
1K
Member Avatar for tany

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 …

Member Avatar for gsuryaprasath
0
238
Member Avatar for tgreer

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 …

Member Avatar for tgreer
0
237
Member Avatar for ohgosh

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.

Member Avatar for jyotishankar
0
796
Member Avatar for tgreer

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] …

0
177
Member Avatar for anandunics

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 …

Member Avatar for anandunics
0
1K
Member Avatar for vt10000
Member Avatar for andyhunter

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 …

Member Avatar for tgreer
0
114
Member Avatar for tgreer

Does C# have a conditional compiler directive for debug mode? I have code that I want to run only if I'm debugging.

Member Avatar for nathon
0
315
Member Avatar for stupidenator

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 …

Member Avatar for almostbob
0
3K
Member Avatar for tgreer

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 …

Member Avatar for dee101g
0
240
Member Avatar for fieryidris
Member Avatar for ohgosh

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.

Member Avatar for perfectweb
0
114
Member Avatar for Bluetech

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 …

Member Avatar for ecmcircle
0
207
Member Avatar for goldeagle2005

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.

Member Avatar for schofield
0
2K
Member Avatar for Nouvelle
Member Avatar for julianmoors
0
227
Member Avatar for Dhruv Shah

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: …

Member Avatar for sivabalakiran
0
452
Member Avatar for Covinus

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.

Member Avatar for kapil.kumar13
0
145
Member Avatar for tgreer

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 …

Member Avatar for Momerath
0
130
Member Avatar for FireSBurnsmuP

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.

Member Avatar for SaintThomas
0
161
Member Avatar for tgreer

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 …

Member Avatar for tgreer
0
167
Member Avatar for tgreer

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; …

Member Avatar for jordonsc
0
2K
Member Avatar for VernonDozier

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 …

Member Avatar for AndreRet
2
287
Member Avatar for jeeva86

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.

Member Avatar for KazmiLahore
-1
4K
Member Avatar for tgreer

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 …

Member Avatar for tgreer
0
771
Member Avatar for Deepa

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.

Member Avatar for GiannisAnto
0
918
Member Avatar for Partydude4

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 …

Member Avatar for srikanthdon
0
2K
Member Avatar for khoomy

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 …

Member Avatar for tsaigopal
0
356
Member Avatar for Letscode

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 …

Member Avatar for trousers
0
2K
Member Avatar for kgonsalv

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 …

Member Avatar for UWATANG
0
121
Member Avatar for Dark_Omen

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 …

Member Avatar for mariko
0
111
Member Avatar for ForestTech

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 …

Member Avatar for kamikaze63
0
187
Member Avatar for Drkhrs620

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.

Member Avatar for JameB
0
261
Member Avatar for superwoman

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".

Member Avatar for hirenpatel53
0
251
Member Avatar for ashishjha54

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 …

Member Avatar for craiggles
0
645
Member Avatar for djbsabkcb

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 …

Member Avatar for vprak2020
0
649
Member Avatar for yda

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, …

Member Avatar for PierlucSS
-1
381
Member Avatar for sqlchopper

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??

Member Avatar for crunchingnumber
0
337
Member Avatar for cumadhu

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 …

Member Avatar for data4use
0
1K
Member Avatar for aripaka

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.

Member Avatar for kvprajapati
0
543
Member Avatar for NimbusSoftware

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 …

Member Avatar for rajarajan2017
0
451
Member Avatar for snufse

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 …

Member Avatar for sdaaaa
0
342
Member Avatar for canilucas

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 …

Member Avatar for pvt_geeker
0
349
Member Avatar for hinde

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: …

Member Avatar for SKANK!!!!!
0
2K
Member Avatar for soccerdevil221

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 …

Member Avatar for diafol
0
136
Member Avatar for SebFr

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 …

Member Avatar for kvprajapati
0
3K
Member Avatar for server_crash

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, …

Member Avatar for agb_bbsr
0
409
Member Avatar for Kayoss

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 …

Member Avatar for fxm
0
424
Member Avatar for tiffythom

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 …

Member Avatar for almostbob
-1
1K
Member Avatar for Dani

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 …

Member Avatar for DOAWK
0
1K

The End.