|
ah okay, you want people to do the whole work for you? good luck
|
|
|
|
|
The ASP.NET forum is more suitable for this kind of question.
"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
|
|
|
|
|
I think you haven't understood my question. I don't want to click all the buttons.
Thanks,
|
|
|
|
|
i think i understood it now. you want someone to write the whole database interface for you and then write the source code for your program. right? as already said in the other reply: good luck!
|
|
|
|
|
Hi Friends,
I facing a problem. I have two submit button in a page.
if i click any button, page is going to submit and first it will execute page_load event.
But my problem is - In page load event i have to identify whether page is submited by clicking of Button1 or By clicking of button2.
(Because i have call different function based on button1/button2)
|
|
|
|
|
when you call the page_load event, use the current button as the sender parameter, the in the page_load, cast the sender back to the button and and check which one it was.
e.g.
<br />
button1click()<br />
{<br />
this.load( button1, EventArgs.Empty );<br />
...<br />
}<br />
<br />
button2click()<br />
{<br />
this.load( button2, EventArgs.Empty );<br />
...<br />
}<br />
<br />
pageLoad( object sender, EventArgs e )<br />
{<br />
Buttom clicked = (Button)sender;<br />
<br />
if( clicked == button1 )<br />
{<br />
...<br />
}<br />
else( clicked == button2 )<br />
{<br />
...<br />
}<br />
}<br />
|
|
|
|
|
It's giving me error " System.InvalidCastException: Specified cast is not valid." on "Button clicked = (Button)sender;"
|
|
|
|
|
sorry.
try calling the method directly instead of calling the event (not the best way to do things, but should solve the problem).
e.g.
button1click()
{
pageLoad( button1, EventArgs.Empty );
...
}
|
|
|
|
|
Thanks for reply.
Can i use Javascript to set hidden variable?
Can i use session variable?
can you guid me which could be worthy to use? If possible give sample code becuase i am new to ASP.Net.
Thanks,
|
|
|
|
|
In a form, I add some menus whose short cut are Ctrl-C Ctrl-V and Del for copy/paste/delete action.But the shourt cut make the copy/paste/delete functions achieved by system and acused by keys press(Ctrl-C Ctrl-V and Del) can't do any more .As the functions of Ctrl-C Ctrl-V and Del have been achieved by system, I don't want to redo it and just only use the system achievement! How can I transfer the message to system and let it to process avoiding to process it by myself?
|
|
|
|
|
Hi everybody
I built a form to send/receive information between 2 IPs.
To do that I had to create another thread, but the problem is that when I'm closing the form the debug mode stay turned on in VS, and obviously it is because I created another thread, so the app is not REALLY closed (only the form).
I'm trying to kill the thread in the FormClosing event using thread.Abort() (I placed my new Thread as a private member called thread). most surly I'm missing something pretty basic, can anyone help me with this???
Thanks!
|
|
|
|
|
did you think of creating a "switch" variable?
you could add a private variable to your class called AbortThread (its boolean) and set it to false initially. When closing the form, you set it to true, then you do
while (mythread.ThreadState == ThreadState.Running)
{
Threading.Thread.Sleep(20);
}
In the Threadfunction you have to modify the loop condition (i assume you have one, otherwise the thread would not keep on running) and add a "&& !AbortThread" to it.
This way it will break the thread loop when closing the form.
If you can reduce the code to a minimum paste it here or put it somewhere online if you can't solve the problem with this hint.
good luck,
mik
|
|
|
|
|
thanks!
works great!
|
|
|
|
|
|
Thanks!
|
|
|
|
|
I have a setup project. I want to add a dialog with some checkbox (A, B). When user selects A one dialog should be run at Next button click, when B - the other one. I asked google several times how to do it, but never succeded. Help me, please.
Holodok
|
|
|
|
|
Please Clear ur problem
sikandar
|
|
|
|
|
Pretty hard to answer without knowing how you're building your setup.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
hi,
i have a datagrid displaying a access database, i've made a button to add a row, but i dont know how i can delete one.
i dont think it that different
thx
-- modified at 5:38 Friday 15th September, 2006
|
|
|
|
|
call Delete() on the row that you want to delete.
|
|
|
|
|
thx,
im still with left with a problem,
maybe you could help me on that one to
see my orther question above
grz
|
|
|
|
|
Hello again, I really need your help in getting the code for the following ques.:
1. When a user selects multiple rows in the DataGrid, how can I get them programatically? In case of a single selection, i can use something like: datagrid.CurrentSelection.
2. What's the code used to prevent the user from getting the Task Manager window upon pressing Ctrl+Alt+Delete?
Thank you so much, ur help is much appreciated!
Knowledge Is KinG
|
|
|
|
|
engineer_ali wrote: 2. What's the code used to prevent the user from getting the Task Manager window upon pressing Ctrl+Alt+Delete?
You don't.
|
|
|
|
|
1 - you can iterate over all the rows and find which ones are selected
2 - you may be able to do this with a keyboard hook, but why would you do such a user hostile thing ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Christian Graus wrote: user hostile
Now, there is a great expression I'll have to remember.
|
|
|
|