|
if you call javascript on button click event then put code on button event.
|
|
|
|
|
it is the window closing button, not the button control.
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
|
|
|
|
|
Sonia Gupta wrote: if u can please provide the code.
thanks .
Hey it's Satips. it have some limitations. He would be glad to provide link than code
|
|
|
|
|
Cool Navaneeth.
SSK.
Anyone who says sunshine brings happiness has never danced in the rain.
|
|
|
|
|
Navaneeth please provide any code or link .It is very urgent.
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
|
|
|
|
|
We cannot provide code for this it is very simple.
SSK.
Anyone who says sunshine brings happiness has never danced in the rain.
|
|
|
|
|
then give the code and prove it......Come on sir(Satips)SSK
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
|
|
|
|
|
Sonia Gupta wrote: and while i click the ok button , at that time , can i delete a particular record from the database
By confirmation button, do you mean a javascript confirm ? You can do this using a AJAX call. See the code below
if(confirm("Are you sure to close"))
{
return true;
}
|
|
|
|
|
ajax call ? how to do that ?Please help ....If u can please arranege code.Thank You
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
|
|
|
|
|
Sonia Gupta wrote: ajax call ?
Don't you heard that ? It's just javascript, calling server side methods. http://www.w3schools.com/ajax/default.asp[^] check this to get started.
Alternatively try redirecting to someother page and do the deletion over there. See the below code
if(confirm("are you sure"))
{
window.location.href="YourDeletePage.aspx";
return false;
}
On page_load of this delete page, do the deletion and close the window. But I am not sure on this method, just try your luck. But AJAX method will work as you expected.
|
|
|
|
|
N a v a n e e t h wrote: if(confirm("are you sure"))
{
window.location.href="YourDeletePage.aspx";
return false;
}
Why are you return false here?
|
|
|
|
|
Just to keep window active. else it will be closed.
|
|
|
|
|
|
When you click Ok then it return true.so you can run your code in code behind file and after that the form will be close.
if you have one button to close the window then you can write your code on that button event.it will run on Ok event of message.
Note: if you want to close the parent page then browser also fires one confirm message
bEst rEgard
pAthan
|
|
|
|
|
hi this is RK iam working with webservics in asp.net in that iam trying to use databaseconnectivity iam passing this query in dataadopter " select dtlastupdated,dblvalue from dbo.tblPerodicTickerData where dtDateTime = between 2007-03-28 11:35:09.000 a.m And 2007-04-09 11:40:05.000 a.m"
while using this websrvice in asp.net page iam getting the error like this
"System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.Data.SqlClient.SqlException: Incorrect syntax near the keyword 'between'."
whAT DO I DO TO RECTIFY THIS ERROR COULD U PLEASE KINDLY HELP ME
OK BYE
|
|
|
|
|
Change your select to:
select dtlastupdated,dblvalue from dbo.tblPerodicTickerData where dtDateTime between '2007-03-28 11:35:09.000' And '2007-04-09 11:40:05.000'
And I think it will work.
There is no = between and I removed the a.m and put quotes around the datetime values.
Hope that helps.
Ben
|
|
|
|
|
yes it is working thak u very much rightfrom morning onwards iam suffering with this problem once thank u very much
|
|
|
|
|
i want to create a calculator..so i want to take an array of buttons for checking whether a button clicked is an operator ,digit,or anything else? can any body help me???????
-- modified at 9:27 Friday 26th October, 2007
|
|
|
|
|
call same event for all buttons and get clicked button id in the textbox.
for example
protected void calendar_Click(object sender, EventArgs e)
{
TextBox1.Text=((Button)Sender)).Text
}
bEst rEgard
pAthan
please don't forget to vote on the post that helped you.
|
|
|
|
|
as u specified ver clearly that the sender contains the control information.
can i ask , what's the utility of eventargs here?
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
|
|
|
|
|
R u a Programmer or a Student.
SSK.
Anyone who says sunshine brings happiness has never danced in the rain.
|
|
|
|
|
|
To consume events defined in another class, you must define and register an event handler. The event handler must have the same method signature as the delegate declared for the event. You register your event handler by adding the handler to the event. After you have added your event handler to the event, the method is called whenever the class raises the event.
SSK.
Anyone who says sunshine brings happiness has never danced in the rain.
|
|
|
|
|
i want to ckeck the button text for each button without knowing the button...i mean i want to check whether it is digit/operator/others......so can i do like that ????????/can i take an array of buttons and just ckeck the value of array object....
|
|
|
|
|
i am writing some code on closing the form close event(in java script).but the problem is it is occuring on other buttons as well .like , i am pressing the button ,present in the form , on clicking it , the same funciton which i intented to wrote at form close event , is occuring here on the button click .please help.
funciton abc()
{
alert(hi);
}
i am calling the funciton in the body tag ononload event.
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
|
|
|
|