|
Sir,
Thank you for your answer. If I may, a follow on question.
I have vb.net console application that draws with GDI+ and saves it to a .jpg every second. My .aspx web page auto refreshes every second with the newly saved .jpg included.
I would like to do this without saving to hard disk.
I would like the console application to simply create a memory stream as you have suggested but only see option for a MemoryBMP. Can a .aspx page use a bitmap from memory of another process?
Any suggestions?
Thank you.
|
|
|
|
|
shipstech wrote: Can a .aspx page use a bitmap from memory of another process?
I don't think so. It sounds like your current solution is overcomplicated though. Is it necessary for your console app to create the files? Your ASP.NET web application could dynamically create the images in memory and stream them back to the client.
Search Google[^] and you will find plenty of examples of how to do what I suggested.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
Thank you for your quick reply.
The console app is a stripped down version of a windows forms app that has a nice interface. I was looking for a quick way to provide the same info across the LAN on browsers and thought I'd try my first asp.net project. Saving the JPG and serving it up on a web page was a quick and dirty way for proof of concept.
I am now exploring adding an HTTPlistener to the console app, making it a page server so no passing of image required.
I'll see how it goes and may buckle down and port the GDI+ code to asp.net as you suggest.
Thanks again.
|
|
|
|
|
Using .Net 2.0
When a user registers on my website, I create an activation string (built with randomly selected characters with a verifiable string embedded in it), encrypt the string, and send an email to the user with a url in it. This url is formatted like so:
htt;?/mysite.com/activation.aspx?activate=abcedfg
...where "abcdefg" represents the encrypted string. When the user clicks that link, he gets the following error when the site attempts to decrypt it:
Invalid length for a Base-64 char array.
What am I doing wrong?
Solution:
UrlEncode/UrlDecode would not work because the encrypted string contained non-alphnumeric characters (like + and / ). I ended up having to write a couple of functions that converted the encrypted string to/from a hexstring. In other words, the string "ABC" would become "414243", and vice-versa.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
modified on Monday, January 14, 2008 8:43:17 AM
|
|
|
|
|
Do you url-encode the value when you put it in the url?
Experience is the sum of all the mistakes you have done.
|
|
|
|
|
I tried that and that didn't work either...
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Hi,
I nedd to pass value between tow Asp.net pages, so I search in the internet, then I found MSDN Example, the Note has been written:
Note : To make the class declared in the sending Web Forms page available in the code-behind file of the receiving Web Forms page, you must manually compile the code-behind files of each Web Forms page, using the command line compiler, into a single .dll file. The .dll file must be placed in the \Bin directory of the Web Forms application.
The handler object is then converted to an instance of the class encapsulating the passed information. Once the conversion is performed, the passed values can be accessed through the properties of the converted object.
... So I used command windows in Visual Studio 2005 to do this step but it doesn't work ! so any suggestions, or some help
by the way, I have two web pages, the first called FirstPage.aspx and the second called SecondPage.aspx need to pass value from textbox.
Regards
Mr.Wonderful
|
|
|
|
|
This note refers to the compilation of classes that reside in the code-behind files for ASP.NET web applications. Typically this is done automatically by Visual Studio when you click 'Build' in the IDE. It has nothing to do with passing values between web pages however. This can be achieved by encoding the values as querystring variables and adding them to the request URL. Alternatively, you could use cross-page postbacks[^].
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
Hi,
As I understanding from the Note: I must manually convert the two web pages to (.dll) files to allow value passing from FirstPage.aspx to SecondPage.aspx, but Unfortunately there is no bin folder contains (.dll) files created automatically whene I build the project, so I have to do the solution mention in the Note, but Unfortunately too the error message appeares (a NullRefefence Exception Was Unhandled by User Code ) on the bold text for the firstPage.aspx web page.
public readonly property firstname() .
Get
' first is the name of a TextBox control.
Return Me.first.Text
End Get
End property
I hope the idea of the probelm reach to you.
thank you again
Mr.Wonderful
|
|
|
|
|
I am making a small page in ASP.NET and in order to resize a specific control at runtime, I need to know the height of the homepage in the browser it is open in.
How do I get this height of the page?
I have tried to look through the available properties in the C# code (in my case located in Default.aspx.cs) but cannot seem to find anything about the size of the page.
If it was a Windows form I would just have called the Height property but is something like this available in ASP.NET?
|
|
|
|
|
You can't access this information in your server-side C# code. You can however access this information in JavaScript. Use the properties of the screen object.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
Hello,
Is it possible any way to override the Hosting Page's RENDER Method from a server control in ASP.NET C#.NEt 2.0 ? I am developing a server control and my intention is to modify the whole page's rendering HTML from this Control.
Please advice.
Thank you,
|
|
|
|
|
i have a button and i want with click the button i create a pop up and open it. how can i do that? can anybody help me?
|
|
|
|
|
Call a javascript Function on button click
function popup()<br />
{<br />
windows.open(url); <br />
}
|
|
|
|
|
I created an asp.net application on .NET Framework 3.5, then published it on my IIS6, it works.
but I have some question about this, why the ASP.NET version 3.0 or 3.5 are not in
IIS > 'My Website 1 Properties' > ASP.NET tab > ASP.NET version dropdown list?
some wrong while VS2008 install?
|
|
|
|
|
AS i know , when you install Framework 3.0 its just upgrdate the Framework 2.0 .
From MSDN Forum
Q: What happens when I install the .NET Framework 3.0? How can I upgrade if I already have the .NET Framework 2.0 installed?
A: When you install the .NET Framework 3.0, the installer will check to see whether you already have the .NET Framework 2.0 (released version) installed. If not, the .NET Framework 3.0 installer will install the .NET Framework 2.0 for you, and then install the new .NET Framework 3.0 components. If you do have the .NET Framework 2.0 installed, the .NET Framework 3.0 installer will only install the new components of the .NET Framework 3.0.
|
|
|
|
|
Does Framework3.5 the same to Framework3.0?
Also just install 3.5 Dlls?
|
|
|
|
|
Hi everybody,
I trying to come up with a web page architecture that would be easiest to use/modify and I can't come up with a satisfying result. This is my idea about how the architecture should work:
- there is a parent page with defined layout - header, footer, side menu, content panel (placeholder)
- each child page would derive from parent page (having same header, footer, side menu) and defines it's unique content in the content panel
- child design derived from parent is available in design time in VS designer
I tried to use dynamic approach by having one default.aspx with header, footer, side menu and content panel. In Init phase content (user controls) was loaded. Problem was that I could not handle content events properly, and after some research I've realized that it's not possible in .NET 2.0 , as the event's fired by content user controls are too late to properly add and register different content on same place in one postback. I was also considering creating one parent.aspx control, but if the page design is created in design view (html), it's not passed to any children as it is obviously not a part of parent's code behind.
thanx for any advices
zilo
|
|
|
|
|
|
i create a tree view. i want when i expand one parent the child of that parent bind and if it is in collapse not see that parent child and not bind. can i do that.
|
|
|
|
|
ptvce wrote: can i do that
Yes
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
|
ptvce wrote: how ?
By writing code
ptvce wrote: do u know?
Probably. But you should try and solve the problem yourself first before expecting someone to give you a solution. Do some research, write some code and post again if you are still having problems.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
i think u can use TreeNodeExpanded event.
sepel
|
|
|
|
|
Hai Everybody,
I am creating a windows and web application.
When the user clicks on the menu in the windows application the web has to be opened ut it should not ask for the login and the user who have logged in has to be passed to the Session in web as well as wise versa.
Can any one help me do to it.
Thanks in Advance.
Best Regards,
M. J. Jaya Chitra
|
|
|
|