|
i am using ClientScript.RegisterStartupScript to give an alert message in a button click. After that i am moving to another page. then i come back to the first page with back button in ie 6.0 the alert message come again. How to avoid the alert message while coming back.
This is not happening in firefox.
modified on Friday, April 18, 2008 6:10 AM
|
|
|
|
|
If you are calling a javascript on button click then you can register your javascript by using this code also
Button1.Attributes.Add("OnClick", "javascript:DoClick();");
DoClick is the javascript function name
As ClientScript.RegisterStartupScript Registers the startup script with the Page.
Could you post the code ?
Or you can use RegisterClientScriptBlock instead i think will also help you
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
hi we need some logical checking. according to the logical output the alert has to be made.
|
|
|
|
|
did you get any pointers on this?
|
|
|
|
|
I am trying to resolve the "extender controls may not be registered after prerender" problem. I am using a CollapsiblePanelExtender from the Ajax Control Toolkit and everytime I run the asp project I get this error. Please help!
|
|
|
|
|
I think you should register on prerender event.
|
|
|
|
|
Hi,
I don't want to use the SessionID which is already expired. How can I avoid that in ASP.NET 1.1.
RegenerateExpiredSessionId is available in later versions for this. Can anyone tell me the work around for 1.1.
Regards
Shajeel
|
|
|
|
|
Migrate to 2.0?
Hey - SOMEONE was going to say it
Soz - Don't really have an alternate answer
- Reelix
|
|
|
|
|
When you close the web browser and open it again, wouldn't ASP.NET create a new one for you?
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
i want to display some mails in gridview whcich i stored in database,when it appears in gridview,read mails have one colour other
mails have another colour...how to do dis...reply wit codes..
|
|
|
|
|
use this tag for the gridview
AlternatingRowStyle-BackColor="#XXXXXX"
|
|
|
|
|
change the colour of one row in a gridview according to value from database........
|
|
|
|
|
maybe something like this then:
if e-mail = blah blah
{
RowStyle-BackColor = blah
}
else if e-mail = blah blah
{
RowStyle-BackColor = blah
}
put that in the c# on the row created method
|
|
|
|
|
Is it possible to use form post across domains?
If yes, then is it a good approach to pass login credentials using this?
My idea of ideal life : Eat, Sleep, Repeat
|
|
|
|
|
What prevents you from setting a new URL to the ACTION attribute of the Form Tag?
d@nish wrote: If yes, then is it a good approach to pass login credentials using this?
Windows Live and Yahoo uses that trick right?
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
Hi,
I am trying to get the page count of a document (openoffice) using asp.net but am having trouble converting the object to a string or integer. My code is below so if anyone can please please help I'd really appreciate it (my head is sore from all the banging I've been doing!)
Thanks
Dim oSM As Object 'Root object for accessing OpenOffice from VB
Dim oDesk, oDoc As Object 'First objects from the API
Dim oPageCount As Object
Dim _args As System.Array
Dim objDummy As Object = New Object
_args = System.Array.CreateInstance(objDummy.GetType, 0)
objDummy = Nothing ' free ressource
Try
oSM = CreateObject("com.sun.star.ServiceManager")
'Create the first and most important service
oSM.createInstance(com.sun.star.frame.Desktop)")
oDesk = oSM.createInstance("com.sun.star.frame.Desktop")
'Open an existing doc (pay attention to the syntax for first argument)
oDoc = oDesk.loadComponentFromURL("file:///" & filetoCount, "_blank", 0, _args)
oPageCount = oDoc.createInstance("com.sun.star.text.TextField.PageCount")
Dim tmp As Object
Dim tmp2 As String
tmp = oPageCount -- {System.__ComObject} i need to get the value that is stored in here to pass it back to the calling procedure????
tmp2 = tmp.ToString()
'Close the doc
oDoc.Close(True)
oDoc = Nothing
Return tmp2
|
|
|
|
|
|
Hi Vasudevan,
You're quite right, but unfortunately my work machine does not give me access to that forum, so reposted here for additional support also I wasn't sure if the ooo forum would know how to answer the ASP.NET question.
Thanks for looking though, I don't suppose you have any ideas on how to solve the problem do you?
Justin
|
|
|
|
|
Perhaps if the API is similar to Word Automation, we can dig through in the same lines. Is there a specific exception trace that you are running into?
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
The only error I'm getting is a converstion type error. It's saying it cannot convert from type _ComObject to String (or integer). When assigning it to an object type it works, but then using the .ToString() it fails with the same error. I have tried tralling through the ooo site to see if there are any other commands I can use with the object to convert it to a string or integer but have not been successful in finding anything...
|
|
|
|
|
---> Attempted to access an unloaded AppDomain. <---
Grrr...
Seems to be a random error occuring at random intervals on random days (And no, not a Virus)....
Ctrl+Alt+Delete Reveals:
WebDev.WebServer.EXE - 99% Processor Usage
And this PC is running 2 Cores - So it's taking up both...
I tried to record a video, but my PC was bugging out so badly it couldn't save...
If anyone else has this error, the only way (I've found) to fix it is as follows:
1.) Save all work
2.) File -> Close Solution
3.) File -> Open Project/Solution / Website - Depending on what you were working on.
4.) Fixed...
No idea how / why this happens - Microsoft said it was some SOAP Error, or something...
Although, a simple Close / Reopen of your project (Not even Visual Studio...) fixes it...
-_-
|
|
|
|
|
What does this have to do with ASP.NET ?
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
It only happens when developing with ASP.NET
Didn't know where else to put it...
*Shrugs*
|
|
|
|
|
Your RAM, number of Windows Services running, the actual load on the server at the particular instance are some of the parameters that need to be scrutinized before we can zero-in on the actual issue haunting your IIS.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
for eg:
function A()
{
alert("Hai");
}
In C# button onclick event = ?????????????????????????
please help me
|
|
|
|