|
Hi everyone,
I have a web forms page, which contains a dropdownlist. The dropdownlist posts back to an event handler which adds a new button to the controls collection of a PlaceHolder. The text property of this button is set to the text of the DropDownList's selected item. My problem is that after the first time I select my dropdownlist, it changes the text of the existing button in the PlaceHolder, as apposed to adding a new Button to the placeholder.
How can I do that?
I very much appreciate any help I can get this on this.
Thanks.
|
|
|
|
|
I have a multithreaded windows service, it is an interface to a streaming stock quote service. It puts live quotes from over 2000 stocks into a DataSet. Based on a formula, buy and sell signals are generated. I need to expose this data as a web service.
I am versed in how to write a web service. But what are my options for accessing the dataset from my windows service?
Having the windows service insert the data to a database, then having the web service select it is very easy to write. But due to the large number of updates, this would take some serious hardware on the SQL box to keep up.
I've investigated having the asmx page call the windows service via remoting, but I dont see how to apply it to my situation. How do I expose my dataset?
I've wondered about the posibility of making my windows service expose a web service interface. Any thoughts here?
Can anyone offer some useful advice?
---
john@aspZone.com
|
|
|
|
|
What I need is a Code documenter/Flowcharter.
Is there any program that you can click and drag a file into a window then add more files and flow chart them?
I work mostly with ASP files but I would like to be able to open my web folder and make a flowchart of the entire site. NOT a tree of the site but a flow chart.
For example. Simeple 3 pages
1. a form: form.asp
2. process file: processform.asp
3. error page : error.asp
4. Thank you page: Thanks.asp
Now the flowchart would be
form.asp
|
processform.asp
|
----If error:error.asp Line back to form
|
Thanks.asp
Is there anything out there similar to this?
I also need to document code that i write for site and I got no idea how to even begin doing this.
Any Idead comments suggestions would be greatly appreciated.
|
|
|
|
|
Is there a way of 'including' one javascript file from another without having to put a tag for each file into the HTML file. I wish to do this to simplify code generation in an embedded system.
Happy programming!!
|
|
|
|
|
I don't thinks so... But you can create a new SCRIPT tag on the fly, just it will work on IE5+ (maybe IE4 too, but not sure)
Philip Patrick
"Two beer or not two beer?" (Shakesbeer)
Web-site: www.saintopatrick.com
|
|
|
|
|
i want to write a program to send mail with wsh,
generally speaking,we use CreateObjec("Outlook.Application")
but,I have just installed the Outlook Express,so,what can i do,thanks
just a beginner
|
|
|
|
|
I come from a COM+ASP context and am learning about .NET and ASP.NET.
I have standard .NET applications down well enough and standard ASP.NET down pretty well, but when it comes to integrating them, I've never done it before.
In COM+ASP, to retrieve the user's session/response/request/etc objects from inside the COM object, I would use GetObjectContext(), etc (I'm sure you C++ COM for ASP writers will remember this...)
How would you go about doing the same thing for an external assembly that's going to be used by ASP.NET?
I can't help but think that just doing:
session = new HttpSessionState();
will create a new session object instead of retrieve the current session object for the current request, and I can't find any static methods or even non-static methods like "GetCurrentSession()" or any samples that do this.
So does anybody know how to do this?
Thanks!
Adam M.
|
|
|
|
|
For your guys' information (in case anybody else is importing external assemblies into ASP.NET), you do it like this:
HttpContext ctx = HttpContext.Current;
HttpSessionState Session = ctx.Session;
Response, Request, Application, etc are also properties of HttpContext, and HttpContext.Current is a static property that returns the current HttpContext.
|
|
|
|
|
I'm designing a help system for a project using HH Workshop. I'd like to use the same format (quite a complex arrangement of tables, graphics etc) for each page, but I'm quite prone to changing the overall format over time. It's a pity you can't define #includes of some sort (they really should be built into the standard). One idea I did have was to include an external javascript file in each file which would document.write the appropriate html to the page once presented with a few paremeters (long content strings), although this would present delays on older machines and relies on them having javascript enabled. Anyone have any better ideas?
Simon
C++: Only friends can see your private parts.
Sonork ID 100.10024
|
|
|
|
|
Of course! Use stylesheets, this is the best and common way to keep all pages look same. Your code will look like:
<LINK href=yourstylesheet.css rel=stylesheet>
Philip Patrick
"Two beer or not two beer?" (Shakesbeer)
Web-site: www.saintopatrick.com
|
|
|
|
|
No, I know all about CSS. What I want is the same html header and footer parts in each html file. I always use CSS to maintain font sizes, border styles etc.
Simon
C++: Only friends can see your private parts.
Sonork ID 100.10024
|
|
|
|
|
Server Side Include could be used for this, if your HTTP server supports it.
|
|
|
|
|
On a client-side HTML Help system?
Simon
C++: Only friends can see your private parts.
Sonork ID 100.10024
|
|
|
|
|
Oups, sorry, didn't understand you right
Maybe using IFRAME tag?
Philip Patrick
"Two beer or not two beer?" (Shakesbeer)
Web-site: www.saintopatrick.com
|
|
|
|
|
Simon,
There are a lot of HTML Editors that support templates, DreamWeaver being one of them. Inside the template, you define one or more "Editable Sections".
You then create new pages, based upon that template and start filling the Editable Sections on each page.
Whenever you decide to change the layout or something, edit the template and DreamWeaver will ask you if you wish to change the depending pages as well. Easy does it!
Using DevaTools (www.devahelp.com), DreamWeaver has support for HTML Help authoring as well (just downloaded it today, so I can't tell you it's quality, but you'll get the picture.
Check out my electronic album article (in HTML Help!) as well. It features passing parameters to pages INSIDE a CHM! (http://www.codeproject.com/winhelp/htmlhelpdemoalbum.asp)
VictorV
|
|
|
|
|
I was actually thinking of using dreamweaver, but the fact that have I haven't got it put me off. Anyway, I've got around the problem by creating my own tags inside the html documents, and then using an small console app I wrote to parse the html files and replace the custom tags with the full html. Easy
Thanks anyway!
Simon
...thrilled to bits that his dodgy GDI code no longer sods up explorer.
Sonork ID 100.10024
|
|
|
|
|
For our own HTML Help files, we use our Windows-based CMS (http://www.zeta-producer.de) which can generate HHC files for the HH Workshop.
Unfortunately this application currently only has a german GUI, so it won't help you at all
Maybe you can use JavaScript to generate HTML for you? It's not the best way, but since its not for the web but for HTML Help with IE as browser, it should be OK.
Or use HTC (HTML Components) of IE. E.g. apply a behaviour to a page when it loads and then output header and footer.
--
See me: www.magerquark.de
|
|
|
|
|
I have some code that I'm considering making XML compatible. The data it manages, which I want to "XMLize", is generally diverse, some DB and some flat file. I examined the technology enough to be comfortable with it. But I do have one rather simplistic question.
Every example I've seen always begins with the existence of a large pre-built XML file. Now, obviously, these files are not being cranked out on a keyboard. They must be generated, somehow, programmatically. I can easily build properly formated "well-formed" XML files from my code.
I just wonder if this is how it is typically done. I don't see why you need the complexity of a parser to simply create the original file. Reading it, yes, but writing it would seem a rather straight forward file I/O operation. Am I out to lunch on that assumption? How do the "pros" do it? (I also realize that various database utilities exist to build from, but my data is not all stored in that format.)
"Thank you, thank you very much" Elvis.
|
|
|
|
|
|
Thanks, Steven.
I'm actually just playing around with XML out of curiosity. Something new to learn. I'm going to simply convert my old data in a couple of antique windows apps I have to XML format and than apply various parsers to it to learn how to use them properly. Who knows what might pop out? I was just curious as to how large XML files are typically constructed initially, especially from pre-existing data sets in sundry sources. Since XML, at its simplist, is nothing but an ASCII file, I see no problem with just a simple code set that sucks the data from each source and builds it into the XML format I've established.
"Thank you, thank you very much" Elvis.
|
|
|
|
|
Hai
I have rendered an xml document using the DataGrid control. The control is so cool that it handles sorting very easily for me. But when I have numbers in my xml data, it is not sorting based on number. Instead it considers the numbers as strings and does string sorting. Has anyone tried this? Can anyone help me in doing this?
My sample xml would look like this..
<authors>
<author>
<aname>Neal Stephenson</aname>
<aid>246</aid>
</author>
<author>
<aname>Roger Wilson</aname>
<aid>12</aid>
</author>
<author>
<aname>Miriam Noxville</aname>
<aid>1456</aid>
</author>
</authors>
This when displayed in a Datagrid and sorted using the aid column, it gives me...
12
1456
246
omkamal
|
|
|
|
|
I found how to do this and wrote a small article on this. Find this "Sorting XML Data using DataGrid" article useful.
omkamal
|
|
|
|
|
hi
I have a form where a person can post a message at my guestbook. But I cant figure out how to handle new lines. If the user presses 'enter' (creating a new line) it shows up like a space in the guestbook, rather than jumping to a new line.
Example:
hello how are you
im fine.
This post will show up like tihs:
hello how are you im fine.
Instead of creating a new line.
I have tried this to make it work
message = Replace(message, "", " ")
But this created a new line when pressing the space..
Help would be appriciated.. Thanks
|
|
|
|
|
Check out the code for Uwe Keim's guestbook. It does exactly what you're looking for:
Guestbook
This is basically the code that does it:
str = Replace( in_str, vbCrLf, vbCr )
str = Replace( str , vbLf , vbCr )
str = Replace( str , vbCr , "<br>" )
Jon Sagara
What about ?
|
|
|
|
|
Thanks for the help.. Works superb now...
thanks to "Uwe Keim" too
|
|
|
|