|
To 'show' it in the datagrid, you plainly have to write it to your file system and have a link to it. Odds are, you'd be better off to store them in your file system and store paths in your DB
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
how can i pogramatically detect that the web page is being closed.i think java script provide this functionality.can anybody provode the code.
Soniagupta1@yahoo.co.in
|
|
|
|
|
where u want to detect that the web page is being closed
Piyush Vardhan Singh
Senior Software Engineer
TAS NewDelhi
India
|
|
|
|
|
when i closes the web form i want a message , are u sure u want to exit?
Soniagupta1@yahoo.co.in
|
|
|
|
|
Try this :
event.returnValue = "Message?";
Parwej Ahamad
g.parwez@gmail.com
|
|
|
|
|
ThanQ
It is working fine.
can i close the window without displaying the message.Like i have a link button , futher on clicking it the same window should get close.i need not to display any alert box this time.i mean i want to close the window without displaying the message.
Soniagupta1@yahoo.co.in
|
|
|
|
|
Try this : for without confirmation
window.opener = window;
window.close();
Parwej Ahamad
g.parwez@gmail.com
|
|
|
|
|
parwej: soposed that i have tree node
root
parent1
child
parent2
child
i want if any body want to add child in child node then its not possible. or i want to restrict add any new node in child node how it's possible.
Piyush Vardhan Singh
Senior Software Engineer
TAS NewDelhi
India
|
|
|
|
|
Piyush ....it is bad to hijack other's thread.
Soniagupta1@yahoo.co.in
|
|
|
|
|
no yaar i am not hijack ur thread. he is my friend and he was also work with me in past time. so he better understand me.
Piyush Vardhan Singh
Senior Software Engineer
TAS NewDelhi
India
|
|
|
|
|
Tell me one thing paren1 and parent2 are predefine node or it create dynamically.
Parwej Ahamad
g.parwez@gmail.com
|
|
|
|
|
use this on body of page
onbeforeunload ="window.close()"
Piyush Vardhan Singh
Senior Software Engineer
TAS NewDelhi
India
|
|
|
|
|
|
hey sonia what u want exactly. please described.
Piyush Vardhan Singh
Senior Software Engineer
TAS NewDelhi
India
|
|
|
|
|
on button click i want to close the window.and i don;t want to display the message while closing the window
Soniagupta1@yahoo.co.in
|
|
|
|
|
wait
Piyush Vardhan Singh
Senior Software Engineer
TAS NewDelhi
India
|
|
|
|
|
Yes, you can detect it in javascript, and thanks to AJAX, you're able to notify the server when it occurs.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
No, you can't detect if the window is being closed.
What you can do is to use the onunload event to detect when the user leaves the page. This is triggered when the window is closed, when the user navigates elsewhere and when the user enters an url directly. You have to keep track of all navigation on the page to be able to determine if the user is navigating to a different page or not. You can't, howerer, determine if the window is being closed or if the user entered an url directly to leave the page.
---
single minded; short sighted; long gone;
|
|
|
|
|
if(window.confirm('Want to close?'))
{
window.close();
return true;
}
else
{
return false;
}
bEST rEGARD
pATHAN
please don't forget to vote on the post that helped you.
|
|
|
|
|
on form load i am writing
if (!Page.IsPostBack)
{
this.Button1.Attributes.Add("onclick", "window.close();");
}
after clicking the button , i am asked to closed to the window or not.
i dont want the message.so can i close the window without any message?
Soniagupta1@yahoo.co.in
|
|
|
|
|
Sonia Gupta wrote: if (!Page.IsPostBack)
{
this.Button1.Attributes.Add("onclick", "window.close();");
}
First of all this is not valid code.You have to add attribute on Every postpack.
Second thing If you want to close popup window without any message , You can use window.close(); ,But If You want to close parent window then browser will fire alert message.so I thing you cant close parent window without confirmation message.
bEST rEGARD
pATHAN
please don't forget to vote on the post that helped you.
|
|
|
|
|
hi soniya i think if u open this page in popup window(javascript ke through) then msgbox not display on close.
Piyush Vardhan Singh
Senior Software Engineer
TAS NewDelhi
India
|
|
|
|
|
Hi..All
Please, Give me answers of this question :
How many maximum DataTable can contains by DataSet ??
Thanks in Advance.
Regards,
Abhi
|
|
|
|
|
According to my understanding , Dataset can contain any no of tables.
Soniagupta1@yahoo.co.in
|
|
|
|
|
Sonia Gupta wrote: According to my understanding , Dataset can contain any no of tables.
If It containg any number of tables, then
It will occupy more bandwidth and server memory while
the in the running mode, when number of user more then 10000.
So, I think there should be a limit. But I dont know it !!
Thanks.
Regards,
Abhi
|
|
|
|