|
hello everybody !!
could please tell me about
how to refresh drop down list without refreshing the whole page?
Thanks in Advance
Sarfarj Ahmed
|
|
|
|
|
|
hello kumar
thanks for ur reply.
is their anything i can do without using ajax?
Sarfarj Ahmed
|
|
|
|
|
hi all
i need help to write a query
I have a table with the coloumns SNo ,ProductId and brandId
SNo is given as identity true
now want to retrive a ProductID whose SNo is maximum value
thank you.
siri
|
|
|
|
|
This is the wrong forum. This should be posted on the sql forum.
Still the answer should be something like:
select sno, productid, brandid from table
where sno = (select max(sno) from table)
Hope that helps.
Ben
|
|
|
|
|
I have a weird problem, See the skelton code below, it's in page_load
if(!IsPostBack)
{
BindGridView();
}
GridView1.Columns[0].HeaderText = "Bla Bla";
This looks simple, I am not doing any extra logic in BindGridView() . Getting the data and binding it. But it's not changing the header text. But when a postback occurs, header text got changed. What is wrong here, Is gridview having any problem for changing header text immediatly after it is binded ?
|
|
|
|
|
You have to give the change text in header before BindGridView().
if(!IsPostBack)
{
GridView1.Columns[0].HeaderText = "Bla Bla";
BindGridView();
}
Best Regards
|
|
|
|
|
i have a java script confirm message box , which i am invoking at the page closing.The window is closing at both the buttons ok and cancel.y it is happening?how i can I keep the window open , ok clicking the cancel button.
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
|
|
|
|
|
|
in body tag , i am calling onBeforeUnload() = "abc();"
function abc()
{
if( confirm('ok'))
return true;
still it does not keep the window open , while i am clicking the cancel button.
}
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
|
|
|
|
|
Hi anthor way of doing the things.....
<head><br />
<script type="text/javascript"><br />
function close()<br />
{<br />
return window.confirm("Click ok to close");<br />
}<br />
</script><br />
</head><br />
<body onbeforeunload="return close()"><br />
</body><br />
</html>
Regards,
Sandeep Kumar.V
|
|
|
|
|
even now, the moment , i click the cancel button, the window is vanishing.
please help.
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
|
|
|
|
|
The window object already has a method named close , so that is not a good method name.
---
"Anything that is in the world when you're born is normal and ordinary and is just a natural part of the way the world works. Anything that's invented between when you're fifteen and thirty-five is new and exciting and revolutionary and you can probably get a career in it. Anything invented after you're thirty-five is against the natural order of things."
-- Douglas Adams
|
|
|
|
|
I think you're missing the else part of that if, where it will return false if not ok...
|
|
|
|
|
Sonia Gupta wrote: in body tag , i am calling onBeforeUnload() = "abc();"
Attributes in an html tag doesn't have parentheses. Also, you have to return the value from the function call to the event:
onbeforeunload="return abc();"
---
"Anything that is in the world when you're born is normal and ordinary and is just a natural part of the way the world works. Anything that's invented between when you're fifteen and thirty-five is new and exciting and revolutionary and you can probably get a career in it. Anything invented after you're thirty-five is against the natural order of things."
-- Douglas Adams
|
|
|
|
|
Hi here is the code..........
<html><br />
<head><br />
<script type="text/javascript"><br />
function close()<br />
{<br />
event.returnValue = "Any string value here forces a dialog box to appear before closing the window.";<br />
}<br />
</script><br />
</head><br />
<body onbeforeunload="close()"><br />
</body><br />
</html>
Regards,
Sandeep Kumar.V
|
|
|
|
|
Sandeep Kumar Vuppala wrote: function close()
(Not a good name, but I already mentioned that elsewhere in the thread.)
Sandeep Kumar Vuppala wrote: event.returnValue
The window.event object only exists in Internet Explorer.
Just return the value from the function:
function closingMessage() {
return "Any string value here forces a dialog box to appear before closing the window.";
}
Sandeep Kumar Vuppala wrote:
You have to pass the value returned from the function on to the event:
onbeforeunload="return closingMessage();"
---
"Anything that is in the world when you're born is normal and ordinary and is just a natural part of the way the world works. Anything that's invented between when you're fifteen and thirty-five is new and exciting and revolutionary and you can probably get a career in it. Anything invented after you're thirty-five is against the natural order of things."
-- Douglas Adams
|
|
|
|
|
hi i want to publish my windows .dll file in web but it gives security error,it wants to create sn assembly,GAC so how to create it to run in web any body know please tell me.
thanks in advance
kiran
kiran kharat
|
|
|
|
|
kiran kharat wrote: windows .dll file in web
How windows dll can be used in web ?
kiran kharat wrote: it wants to create sn assembly,GAC so how to create it
Signing assembly with strong name[^]
|
|
|
|
|
hello all
i'm using report viewer and i need to show data. the report viewer uses some object to get data. i declared the fields i need to use in the report, editing them by hand. if i use textboxes imbedded in list or tables then everything looks ok. but if i try to put a texbox in a rectangle then i cannot choose any field from any dataset. if a copy a textbox with an expression in it and put it in a rectangle then the textbox shows "#error".
what must i do to be able to use datasets for the controls in a rectangle? what is the purpose of rectangle if i cannot link it to data?
|
|
|
|
|
What error it shows?
SSK.
Anyone who says sunshine brings happiness has never danced in the rain.
|
|
|
|
|
i already told you. it shows "#error", no other details. i observed one thing. i noted that i could not see any field to use with controls embedded in a rectangle. that might be because the rectangle cannot have any dataset. if for example you add a rectangle and then add a list in it, set a dataset for the list then the controls in the list cand select fields. it's a bit strange but at least it works this way.
it can be easily seen that the reportviewer is version 1 and there can be done a lot to improve it, but hey it's better than nothing!
|
|
|
|
|
on the form closing event , i am invoking the cofirmation button , which is having two buttons named ok and cancel.now my question is , the moment i click the cancel button is happens nothing , and while i click the ok button , at that time , can i delete a particular record from the database
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
|
|
|
|
|
Sonia Gupta wrote: can i delete a particular record from the database
Yes.
SSK.
Anyone who says sunshine brings happiness has never danced in the rain.
|
|
|
|
|
if u can please provide the code.
thanks .
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
|
|
|
|