|
Neither of those worked (separately or combined).
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
I changed the resetCombo() function as follows:
function resetCombo(name)
{
if (name == "Cough")
{
document.formEmpSurvey.comboDurationCough.selectedIndex=0;
}
else if (name=="blah blah")
{
}
}
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Apparently my brain was a little sleepy last night, and the code I gave was in c#, not in javascript. Glad you got it figured out.
- S
50 cups of coffee and you know it's on!
|
|
|
|
|
I have 2 Web Pages page1.aspx and page2.aspx.
On page1.aspx i am selecting values fom list box and transfering to page2.aspx using Button -- "Select".This works fine.
Suppose user doesn't select any value from list box then message box pops up to user ...code for messagebox is like this
Private Sub btnHighlightYears_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnHighlightYears.Click
If Lstbox_Years.SelectedValue.ToString() = "" Then
MessageBox.Show("Please Select Atleast One Year")
Else
Server.Transfer("Acct_Details.aspx?type=h")
End If
End Sub
Message box is a class and using java script and other controls it is made - which looks similar like a windows based application message box.
Now on page1.aspx i have one more button - "Select All and Continue".This also works fine and transfers me to page2.aspx
Problem
=======
When i first click on Button -- "Select" and nothing is selected fom list box then message box pops up ...click okay and then click button - "Select All and Continue" and it takes me to pafe2.aspx.
When i returns back to page1.aspx through Back button if IE/browser , the message box again pops up.
Is it an error or an issue...How can i solve this ?
Please help me.
Thanks,
|
|
|
|
|
It pops up again because it is displaying the cached page that is in your history. I imagine the back button is similar to javascript:history.go(-1);
I don't know if restricting the caching of the page will work or not, but i have a domain hosting control panel that always (seems to) re-request a page when i click the back button on the browser. This would be the result you are aiming for, then you can check server side if you want the message box code to be written into the page.
g00fy
|
|
|
|
|
Hello Chanmps
Please send me the code ...not the logic ...i will be very thankful
I have one List Box and one Check Box - named Select All.
When check box is checked - all values from data list will be selected and when unchecked all values will be unselected
Also how to call this java script function on asp.net page?
Thanks for your time,
|
|
|
|
|
Using Javascript to run the window.open method
IE 7 always puts a url bar just under the Titlebar. IE6 does not do this. Does anyone know how to get rid of it? None of the IE BOM settings work:
open("myfile.html","_blank","directories=no, height=400, left=100, location=no, menubar=no, resizable=yes, scrollbars=no, status=yes, titlebar=no, toolbar=no, top=100, width=400)
This is totally annoying... can't find anything on the MS site about it either
tom
|
|
|
|
|
You can't get rid of it. It's a security feature.
---
b { font-weight: normal; }
|
|
|
|
|
Thank you again... guess I'll have to design my way around it
I did find this link finally that explains the why and wherefor:
http://blogs.msdn.com/ie/archive/2005/11/21/495507.aspx[^]
I can see why MS does it... but I wish they'd made it "more beautiful" ... the address bar just "hangs out in the middle of nothing if you don't set the toolbar / menubar. Seems like MS could have made it so that the address bar sits within the menubar but without the buttons <sigh>.
tom
|
|
|
|
|
Hi All
I need to know whether isolating a website in a separate application pool on the server causes the initial page load to be slower or not??
My website is hosted on a webserver but lately they isolated it into a separate application pool but I noticed a slower load so is these cuz of the new application pool??
Thanks a lot in advance
|
|
|
|
|
There is no reason why one application pool would be slower than another.
I think that it's the other way around. You are experiencing the same performance problem that they try to rectify by doing changes to the server.
---
b { font-weight: normal; }
|
|
|
|
|
I have an html that represents an email.
when it shown in outlook it seems ok, but in preview pane i get the attachments above (the attachments are the header and footer images of the html)
is there a way in the html to tell the attachments not to appear in the preview pane?
thanks in advanced
Yaron
Interface basics click here :
http://www.codeproject.com/com/COMBasics.asp
don't forget to vote
|
|
|
|
|
Hi all,
I have a web application.
I need to end the application session and database connections on click of a logout button.The logout button is on a header page common to the entire application, and is currently ending only the current session by destroying the session cookie.
I am new to asp ...please help me...
Thanking you in anticipation.
If you fail for the first time , call it version 1.0.
|
|
|
|
|
to kill the entire session use: Session.Abandon
to kill individual session variables use: Session.Contents.Remove(<sessionname>)
|
|
|
|
|
Hi,
I require Javascript code for the below. Please help me if anybody knows.
I have a datagrid with link buttons. The Datagrid contains Analyst Name and Site. While clicking on any Analyst Name or Site, the corresponding entry will come in two text boxes below the grid for modifying. This is the business requirement. Even though I am doing this using Item Command Event of Datagrid, it comes with a postback. Could anybody please help me by giving javascript code for this so that I can avoid this unnecessary postback? That is, while clicking on the grid, the corresponding entry should come in the text boxes. The item may be 7th , or 1st, or 16th. But there will be only one entry at a time.
Advance thanks for any help.
Regards
Raja Raman
Raja Raman S
Reuters India Pvt.Ltd.
Bangalore
|
|
|
|
|
Hi Guys,
I would appreciate it if any body can give/show me some html/flash free templates for a simple web site for a business company.
Thanks in advance
|
|
|
|
|
So you want free templates?? You do realize this site is for developers who create those sites...
Anyway I think you will find it hard to get a "flash and html" template simply because flash should only be used for specific tasks. You would not have a pulsating Welcome sign on a business website.
Did you have any designs in mind?
|
|
|
|
|
Hi,
Unfortunately, i don't have any thing in my mind, but the customer has something that he don't know yet. He want me to show him something simple but yet impressing. So, any thing modern will do even if with out flash embedded.
Thanks again
|
|
|
|
|
When you say modern do you mean wikipedia modern or adobe.com modern or what?
Give me some information on your customer and i'll try help you.
Use Email.
Webmaster@Trueguava.com
(ignore the site, it is still being developed)
|
|
|
|
|
I hav Input String as under:
Inside XML
I require the following Result:
Inside XML
I need regular expression for this.
Thanks.
|
|
|
|
|
What exactly do you want again?
|
|
|
|
|
Thanks to all bodies. I found the solution myself. Regular Expression is as under:
(? (.*)(?
|
|
|
|
|
peshawarcoder wrote: Thanks to all bodies.
"A good programmer is someone who looks both ways before crossing a one-way street." -- Doug Linder
coolestCoder
|
|
|
|
|
|
Hi all,
just wondering if there is any way to embed an ASP.NET page into the assembly resources and have it served to the client. The standard GetWebResourceUrl() with type "text/html" simply returns the 'raw' code in the file and is not passed through the .NET web server, is there a way to acheive this?
I am developing a custom server control and would like to embed this page within an iframe in the control.
regards,
g00fy
|
|
|
|