|
I'm creating a website and the portion I'm working on now involves two web pages. The first page creates an image object and then I'm basically doing a response.redirect to the 2nd page however this 2nd page needs to access the original image object that I created on the 1st page.
So how can I preserve an object so that it's accessible across multiple pages?
Normally I wouldn't require a 2nd aspx page to utilize the same object however in this particular case, with what I'm trying to accomplish, I need to perform it this way.
Thanks in advance.
-Goalie35
|
|
|
|
|
Store the object in session.
--------------------------------------------------------
My portfolio & development blog
Q:What does the derived class in C# tell to it's parent?
A:All your base are belong to us!
|
|
|
|
|
Hello
I'm trying to start an application inside a custom control. This may not be the best approach so if you have any idea's on the subject please let me know.
At the moment I'm mearly trying to get notepad onto Form1 as it where.
Please help
|
|
|
|
|
Hello
Your question is very strange!! I must admit I don't understand what you are trying to do. Are you trying to open a document -eg. pdf, doc, xls- inside your application? Otherwise you'd be making a virtual machine!!;P
Regards
|
|
|
|
|
Cheers,
I'm trying to take an existing assemby and use it as part of a display.
The application displays a graph using some hardware sensors. As this works fine within itself I'm trying to load the application into my form as a control.
|
|
|
|
|
That won't work. Either you find out how the program displays its graph -usually using a dll or something, which you can use in your application by referencing to it. Watch out for copyrights here-, or you use a graph library yourself. You can find plenty here in CodeProject.
Regards
|
|
|
|
|
Cheers, i thought that'll be the case. I guess I'll jut have to study the code
|
|
|
|
|
Done it!
Using window handles I managed to open the process inside my own form
|
|
|
|
|
Hi. I would like to know how to send SMS using Windows Application (C# .Net). The idea is that there is a mobile phone connected to the computer and the Windows Application will send SMS using that phone.. Does anyone know how to do this? I need help. Thanks!
|
|
|
|
|
Hello
I think this will be considered more with mobile development also. This will depend on the type of phone you are connecting -eg. SmartPhone, Symbian, etc...- as each plateform has its own commands.
Concerning the windows part all you have to do is make a program that will interface with the mobile using either usb port, bluetooth, or any other mean of data transport.
Regards
|
|
|
|
|
I found a project in c# to print the current active windows in MDI form, which wraps System.Drawing.Printing types. When i select 4 pages per sheet for printing, While printing its printing only 2 pages per sheet. Can anybody tell me which type of System.Drawing.Printing namespace need to be looked into for this type of bug, given the printing types are wrapped.
BSK
|
|
|
|
|
It sounds more like the images doesn't fit on the page. Have you checked that the page size in the printer settings correspond to the paper size that you are using?
---
b { font-weight: normal; }
|
|
|
|
|
Yes, I even changed the size of the pages to relatively small , so that it can fit. But it seems something wrong with classes wrapped
|
|
|
|
|
Hi
i load an image on label control.but with tab key ,label is not selected .
How can i make this control selected with tab key
|
|
|
|
|
I hate to be the bearer of bad news, but you can't select Label boxes with the tab key. Labels are not designed to get the focus, if you want your image to get the focus, you'll have to put it in another type of control.
WhiteWizard
aka Gandalf
|
|
|
|
|
Hi
how can i use key press event in c#
|
|
|
|
|
Hi
You can add for each component of the form a key_Down Event for example :
the form is called xxx
private: System::Void xxx_KeyDown(System::Object * sender, System::Windows::Forms::KeyEventArgs * e)
{
if(e->get_KeyCode() == 27 ) { // If the key ESC
... // Traitement
}
if (e.KeyChar == (char)Keys.Return) { // ENTER Key
... // Traitement
}
}
|
|
|
|
|
thank u sir
But i do not want write seperate keypress event for each control of form
. i want only a single for all control
|
|
|
|
|
Create a generic handler like so:
private void KeyPress(object sender, KeyEventArgs e)
{
} Then assign all the event handlers to this method, i.e. in the Properties window select the Events tab, if you select the KeyPress event then a combobox should appear, select the KeyPress method and that event handler will be bound to the above function. Repeat for all the controls you want bound.
Just Google it.
Failing that try phoning
|
|
|
|
|
Set KeyPreview property of your form true and register to the KeyPress event of your form.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
Hi,
How can i convert any date and time into this representation:
ddMMyyy hhMMss
I need this so i can save a file with a name of the current date and time.
I tried a few things with TimeSpan. Im not getting through
Can anyone help me with this?
Thanks in advance
|
|
|
|
|
DateTime now = DateTime.Now;
string now = now.ToString("ddMMyyy HHmmss");
You can use any DateTime object you created. This one here uses the current date and time ("Now")
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
Hi,
Thank you Greeeg!
That worked!
|
|
|
|
|
I know this problem was solved, but I would highly recommend using yyyyMMdd so the files will be in chronological order.
|
|
|
|
|
Does Windows explorer (among others) sort them in that order? Good to know.
modified 12-Sep-18 21:01pm.
|
|
|
|