|
This is a difficult one. You can add a javascript function to the body (onunload). The only problem you have is that this function will fire before postback as well. You will have to pull some trick of setting a javascript variable that controls the function.
You won't be able to do server side processing, because the page will not do a request when you close it. Well I think so. If that is wrong, can someone please correct me.
TMF
|
|
|
|
|
Use Window.unload Event of the Javascript
"Aim to go where U have never been B4 and Strive to achieve it"
http://groups.yahoo.com/subscribe/dotnetforfreshers
http://himabinduvejella.blogspot.com
|
|
|
|
|
Hi,
just write the following javascript function
function closeIt()
{
event.returnValue="closing";
}
and write the following in Html body
Let me know if you have any questions.
Thanks,
Bhasker P
|
|
|
|
|
Hi this is more a question about appearance than anything. I have a check box list which I want to divide up as follows. 3 Items followed by a heading followed by another 3 items heading and so on. But all the items are the same list. Can this be done? Thanks in advance
|
|
|
|
|
You need to be a little creative. I would suggest creating a user control formatted the way you want. Then pass the user control the heading and dataset (3 records). Use the loadcontrol option to dynamically add them to your page. Or have a dropdownlist that filters the checkbox.
how vital enterprise application are for proactive organizations leveraging collective synergy to think outside the box and formulate their key objectives into a win-win game plan with a quality-driven approach that focuses on empowering key players to drive-up their core competencies and increase expectations with an all-around initiative to drive up the bottom-line. But of course, that's all a "high level" overview of things
--thedailywtf 3/21/06
|
|
|
|
|
String.Format("{000:N}", maxNumberFound)
maxNumberFound is = 3
and I want it to display as "003".
anyone know how without string manipulation.
Thanks,
Nick
1 line of code equals many bugs. So don't write any!!
|
|
|
|
|
|
Yeah I used ToString to format it.
I tried deleting it, but could find the topic.
Thanks tho
1 line of code equals many bugs. So don't write any!!
|
|
|
|
|
Did you already resolve this?
If not, try this:
String.Format ("{0:D3}", maxNumberFound)
Jon Sagara
When I grow up, I'm changing my name to Joe Kickass!
My Site | My Blog | My Articles
-- modified at 13:07 Monday 8th May, 2006
|
|
|
|
|
actually yes.
Jon Sagara wrote: String.Format ("{0:D3}", maxNumberFound)
Unfortunately, that just returns "3.00" I used d5.
But the ToString has an override that I can say "000" and it will form correctly.
Thanks for helping tho.
Nick
1 line of code equals many bugs. So don't write any!!
|
|
|
|
|
Ista wrote: Unfortunately, that just returns "3.00" I used d5.
That's weird. Maybe it's a difference of UI cultures that causes that. On my system it returns "003".
Oh well. Glad you got it sorted.
Jon Sagara
When I grow up, I'm changing my name to Joe Kickass!
My Site | My Blog | My Articles
|
|
|
|
|
When I right click on the .aspx page , i see html code totally.I have used requiredfieldvalidations and regularexpression validation..Somehow i want to hide the content of this page when right clicked..Is there a way to secure the page content by hiding some field data..Plz help...
lehya reddy
|
|
|
|
|
google "javascript hide source"
how vital enterprise application are for proactive organizations leveraging collective synergy to think outside the box and formulate their key objectives into a win-win game plan with a quality-driven approach that focuses on empowering key players to drive-up their core competencies and increase expectations with an all-around initiative to drive up the bottom-line. But of course, that's all a "high level" overview of things
--thedailywtf 3/21/06
|
|
|
|
|
This might help you[^].
You will still need to get rid of the browser menu so that the don't go to View / Page Source.
daniero
|
|
|
|
|
Hi
i have a paper that content of that is text. i scan it and now i want convert it to the MSword file can i do this work???????? my text is persian language and scaner can not do this work compilitly because their font is not complete. i want a software that can do this work.
can any body help me??????
|
|
|
|
|
Is there a control out there for purchase which offers predictive text functionality similar to Outlook's autocomplete feature when e-mailing?
To me, this is a non-web feature and my gut reaction is no even if it was available it would be horrible. But a client wants this functionality so I am just making sure its not out there for purchase.
I came across this: http://www.codeproject.com/aspnet/combobox.asp which wraps functionality from http://www.deadbeef.com/index.php/dhtml_combobox in a webcontrol. Its a dropdownlist with autocomplete, but not really predictive text like Outlook.
|
|
|
|
|
Dear All,
Now I am providing a solution to a web based(asp.net) application. Almost all the work completed. But the thing is that web application is working fine in my local machine. If i put that application into client's Developement server, the buttons(like submit, update) are not working on that server. If i click any button in that applcation on Dev, no event is fired. Nothing happened.
What is the solution for this? what are the steps should I do to wake up that buttons?
I need this ASAP........
Thanks,
Bhasker P
|
|
|
|
|
Are you accessing this on a client machine? do they have javascript enabled?
|
|
|
|
|
I am trying to execute on another server. Javascript enabled in that machine.
Thanks,
bhasker
|
|
|
|
|
I found the solution. this might be helpful for someone in future.....
In WebUIValidation.js, just add this to ValidatorCommonOnSubmit.
function ValidatorCommonOnSubmit()
{
var result = !Page_BlockSubmit;
Page_BlockSubmit = false;
event.returnValue = result;
return result;
}
Thanks,
Bhasker P
|
|
|
|
|
I whant to redirect the all values of listbox from one page to another
will u pls explain the thing alog with demo code in ASP.Net(vb)
pls this is urgent
|
|
|
|
|
If you want to go in session way, it's very simple. Store items collection in session object:
Session["MyKey"] = MyList.Items;
And on another page retrieve them from session:
ListItemCollection items = Session["MyKey"];
After that you can go thought collection of the items again and retrieve values...
|
|
|
|
|
I don't understand I want to create session of entirelistbox as well as items in repeaters so pls give the brif code for demonstration
|
|
|
|
|
Dear All,
My problem is that I've made an ActiveX component in C#. This component uses .NET Remoting to load an Excel File from the server. To view the excel file I've used AxSpreadSheet. Besides the AxSpreadSheet component the ActiveX control has two buttons as well.
When I try to load it on the webform it gets loaded successfully only if I remove the AxSpreadSheet from the ActiveX component. With it, the webform doesn't load it.
To load it on the WebForm I am using the following code in HTML
<object id="activex123" classid="ActiveXComponent.dll#NamespaceName.ClassName"
="" viewastext="">
|
|
|
|
|
I whant to redirect the all values of listbox from one page to another
will u pls explain the thing alog with demo code in ASP.Net(vb)
and also
i manage to add values of dropdownlist into listbox by using
ListBox1.Items.Add(DropDownList1.SelectedValue)
but it gives multiple values in listbox
i tried
Dim i As Integer
Dim occurance As Integer
occurance = 0
Response.Write(ListBox1.Items.Count)
If ListBox1.Items.Count > 0 Then
For i = 0 To ListBox1.Items.Count
If ListBox1.Items(i).Text = DropDownList1.SelectedValue Then
occurance = 1
End If
Next
End If
If occurance = 0 Then
ListBox1.Items.Add(DropDownList1.SelectedValue)
End If
but it is not working pls give the appropriate solution
and also i want to print the values of listbox.
using "response.write" how to do that
pls this is urgent and thanks in advance
|
|
|
|