|
|
it's all about editing a remote document.
and save it to a remote server.
web service?
I think it's difficult,
do you have a sample?
study...
|
|
|
|
|
I sure could use some help.
I have a web app with frames. I want to be able to notify frame2 when something takes place in frame1. Should be simple, but maybe I'm the simple one. I've got the event structure working because I can fire an event in frame 1 and receive and act upon it in frame 1. But when I fire it in frame 1 and try to handle it in frame 2, it is apparently never received. The event appears to fire fine (I get no errors and see it pass the statement OK in the debugger), but the handler (which also appears to be declared correctly, since I get no compile errors) never seems to receive it.
Can someone point me in the proper direction?
I really appreciate it!
Mike.
|
|
|
|
|
Maybe not the problem in your case, but non-static events are tied to the intance, not the class.
DrunkenSailor sailor = new DrunkenSailor();<br />
sailor.HellRaised += new EventHandler(sailor_HellRaised);<br />
sailor.RaiseHell();
sailor = new DrunkenSailor();<br />
sailor.RaiseHell();
This can be missed pretty easliy, especially if the object is reinstantiated elsewhere in your code.
In any case, you can check to see if your object's event has any subscribers by looking at the object sending the event in the autos or locals window while debugging. It will read "undefined value" if there are no subscribers. If that's the case, you can begin your hunt to find out why that is.
Charlie
if(!curlies){ return; }
|
|
|
|
|
There's one very important concept you're missing: ASP.NET code that is compiled or that uses server-side scripting (which is compiled at runtime) is SERVER-SIDE ONLY. HTTP - be nature - is non-stateful. Someone clicking a button or link in one frame will not automatically do something in another frame unless 1) you invoke a server-side event that must refresh the whole page, which involves some client-side javascript (or - if you dare - VBScript) to make sure the right frames are updated, or 2) uses client-side script like javascript to perform all actions.
This isn't a Windows Forms application where clicking a button could completely rearrange your application UI. Web Applications - built on HTTP - have one fundamental facet: a client requests data, and a server responds with data.
So, you have to invoke something that causes the client to request something in frame1 and force a refresh of frame2 all from the client-side! The server cannot push this data to the client (it's impossible when the clients are behind NATs or Web proxies anyway without a persistent connection, in which data can only be appended). This is the nature of HTTP, like it or not.
-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
|
|
|
|
|
|
Jörgen,
I work with Heath, he is in fact an AI bot that is plugged directly into MSDN and existing Code Project articles. His uptime appears to be running better than most web servers average in a given month.
Jörgen Sigvardsson wrote:
How do you keep up?
He tells M.I.S. jokes.
- Nick Parker My Blog
Last time I checked, all programmers have selective ignorance. I know nothing about 3D graphics. I know a lot about COM. VB gets under people's skin because one can be ignorant of computer architecture and ASM and still get a lot done. - Don Box
|
|
|
|
|
I work over 60 hours a week typically, but I'm trying to cut back a little because of health problems. I work throughout the day and probably only accumulate an extra 30 minutes to post to CP, sometimes a little more. Being salaried, I decide to spend that time helping other community members. Most of the stuff I know off the top of my head, so I don't have to research anything. The rest is just knowing how to look, which most people it seems don't know how to do - or are to lazy to try.
-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
|
|
|
|
|
I have been looking for a solution to the problem of having to install dot net for my C# applications. Since I or just a few number of individuals will be using my applications, we would like to run them from CDs. So, No installation of our applications will be needed. I have found an appication Thinstall.... don't know if it is what I'm really needing. What I am wanting is to have the .NET framework on CD and never have to install it on a PC. If this not possible please let me know... all suggestions are welcome...
No, I do not wish to go back to VC/C/C++ ....
|
|
|
|
|
The .NET framework needs to be installed on the target machine before your app will run. There is no way around this.
You can include the framework redistributable on your CDs so that it may be installed prior to installing your application or, since there are only a few machines to be concerned with, you can hit them all at once and be done with it.
Installing the framework is not an arduous task, so it shouldn't be a big inconvenience.
Charlie
if(!curlies){ return; }
|
|
|
|
|
Hi,
I took a look at String class but i could find any function for that.
I'm looking for a function to do something like CString::Find() in VC++ or InStr in VB ...
Regards,
|
|
|
|
|
Check out the String.Substring Method[^] and the String.IndexOf Method[^].
- Nick Parker My Blog
Last time I checked, all programmers have selective ignorance. I know nothing about 3D graphics. I know a lot about COM. VB gets under people's skin because one can be ignorant of computer architecture and ASM and still get a lot done. - Don Box
|
|
|
|
|
Yea, It was exactly what i wanted.
Thanks alot for help Nick
Regards,
|
|
|
|
|
it try to use internetdial() to take numbers,but i can't because it take name of connection to dial with (existing connecton on pc) as a parameter
plz tell me how to make it take numbers
|
|
|
|
|
it try to use internetdial() to take numbers,but i can't because it take name of connection to dial with (existing connecton on pc) as a parameter
plz tell me how to make it take numbers
|
|
|
|
|
Hi,
ive downloaded the tablect-pc ink sdk from m$
i have a normal pc and only want to test the ink stuff with the mouse
(which works fine)
but i tested one of the handwriting recognizer demos in the sdk , and it says "no handwriting recognizer installed , you need atleast one"
so :
1) can i install one on my normal pc? (just to test the ink stuff)
2) where do i find them? , do i need to pay for them?
//Roger
|
|
|
|
|
This information is covered in the Tablet PC SDK, and it is not appropriate for this forum (C#).
Hardwriting recognizers are installed with Windows XP Tablet Edition, Windows CE, and should be available on an emulator but are not available on Windows XP HE or Pro. The Ink APIs are installed for the latter two Windows editions, but they only provide limited support.
-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
|
|
|
|
|
how to write "and not" in bitwise combination. I know | and & but i do not know how to exclude from the bitwise combination using the and not...
for example in the createparams override in the control exstyle; we can add a exstyle using | so how can i remove a style?
|
|
|
|
|
Hi,
How about you do a bitwise & and then invert the result (~).
Hope that helps.
Pankaj
Without struggle, there is no progress
|
|
|
|
|
many thanks. I'll try it. Thank you again.
|
|
|
|
|
Dear Folks,
I am new to C#. I was trying to write the following code. I am facing some problems. Can anyone please help me out.
Debashish
Code:
public delegate void EventHandler();
public class Button
{
public event EventHandler click;
}
public class Form
{
Button b1 = new Button();
public Form()
{
b1.click += new EventHandler(button_click);
}
void button_click()
{
Console.WriteLine("Button was Clicked");
}
}
public class MainClass
{
public static void Main()
{
Form f1 = new Form();
// The problem is here. when I type and press the . i.e. f1. The Button Class is not displayed. If I get f1.Button.click my click event will get fired.
}
}
Debashish Gupta
EMail Address: debashish_shona_99@yahoo.com
|
|
|
|
|
debashish_shona_99 wrote:
public delegate void EventHandler();
You should not redefine eventhandlers or classes (like button). I suggest reading an intro 1st to get the hang of object orientated progarmming,.
Try this instead:
using System;
using System.Windows.Forms;
class MyForm : Form
{
Button b1;
public MyForm()
{
b1 = new Button();
b1.Dock = DockStyle.Fill;
Controls.Add(b1);
b1.Click += new System.EventHandler(button_click);
}
void button_click(object sender, EventArgs e)
{
Console.WriteLine("Button was Clicked");
}
static void Main()
{
Application.Run(new MyForm());
}
}
leppie::AllocCPArticle("Zee blog"); Seen on my Campus BBS: Linux is free...coz no-one wants to pay for it.
|
|
|
|
|
Thank you leppie. Merry Christmas and Happy New Year.
|
|
|
|
|
If you are expecting the button to be displayed on the form, I think you may be meaning to use System.Windows.Forms.Button
As it stands now, you are simply creating a class called "Button" in whatever namespace you have listed in your source code that has an event called "click". It has no relation to the button you find on Windows Forms.
Try this instead:
using System;
using System.Windows.Forms;
public class MyForm : Form{
protected Button button1;
public MyForm(){
button1 = new Button;
button1.Click += new EventHandler(button1_Click);
this.Controls.Add(button1);
}
private void button1_Click(object sender, EventArgs e){
MessageBox.Show("Button Clicked!");
}
public static void Main(){
Application.Run(new MyForm());
}
}
Charlie
if(!curlies){ return; }
|
|
|
|
|