Thank you for your input. I did what you suggested I took the target="_self" out and still not working. what happened is the image changed to Buy2.gif for one second then it went back to the Buy.gif image. it only works if i do target="_blank" but it will open it in a new window which is not what i want to do.
I think the problem is with page post back. this script is in a master page that is called by Buy.aspx...
User Profile
Collapse
-
Image Swaping Problem (please help)
Here is what i have:
[HTML]<script type="text/javascript">
function swap()
{
document.getEle mentById("b1"). src ="images/buttons/Buy2.gif"
}
</script>
<a href="Buy.aspx" target="_blank" >
<img border="0"...Leave a comment:
-
html image swapping problem
I spent hours trying to find an example of
onMouseOver and onMouseOut and OnClick. I did find somethings about
onMouseOver and onMouseOut but not the onClick.
can you please help me with an example
Thanks -
Using RS.EXE to export a report from Command Line (URGENT)
' File: Test.rss
Dim format as string = "Excel"
Dim fileName as String = "C:\Export2.xls "
Dim reportPath as String = "/TimeByEmployee"
Public Sub Main()
' Prepare Render arguments
Dim historyID as string = Nothing
Dim deviceInfo as string = Nothing
Dim showHide as string = Nothing
Dim results() as Byte
Dim encoding... -
I got it all what i needed to do is adding this line:
in my page load that uses my web service i put this line of code:
WebServiceName. Timeout = System.Threadin g.Timeout.Infin ite;...Leave a comment:
-
how do i change the connection timeout in the header of my webpages? can you give me an example?
I just tryied this but still did not work
<%@ Page Language="C#" AutoEventWireup ="true" MasterPageFile= "~/MasterPage.mast er" CodeFile="Test. aspx.cs" AsyncTimeout="3 6000" Inherits="Test" ValidateRequest ="false"%>
Thanks...Leave a comment:
-
Thank you for your replay.
Basically I ued to get SQL time out exception which I did fix it by changing the timeout prosperity. Then I got another timeout exception from my script manager which all what I need to do is change the AsyncPostBackTi meout to a bigger number. Now when I run my application all what I get is “The operation has timed out” This is all what I am getting and I am not sure what is going on. I am pretty sure...Leave a comment:
-
The operation has timedout Error!!!(URGENT)
I was getting SQLException Time out so i added this line cmd.CommandTime out = 1000;
also in my ScriptManager i set AsyncPostBackTi meout="1200". now when i run my application all what i get is this
The operation has timedout. no further explanation from where it is hapning.
Any Thoughts!
Thanks -
The operation has timedout Error!!!(URGENT)
I was getting SQLException Time out so i added this line cmd.CommandTime out = 1000;
also in my ScriptManager i set AsyncPostBackTi meout="1200". now when i run my application all what i get is this
The operation has timedout. no further explanation from where it is hapning.
Any Thoughts!
Thanks -
Sql Report: Formatting PDF File Problem
I created sql server report project
Here is my Problem, I have a list control that contains table and some labels. Under MyListControl -> Properties-General Tab ->Button : Details Group(I group my list by customer name) also I checked the check box "page break at end".
this is what i want to see
Page 1
Test (title)
... -
Sql Report: Formatting PDF File Problem
I created sql server report project
Here is my Problem, I have a list control that contains table and some labels. Under MyListControl -> Properties-General Tab ->Button : Details Group(I group my list by customer name) also I checked the check box "page break at end".
this is what i want to see
Page 1
... -
Case Statement Problem
I am trying to convert this to sql syntax
SELECT [2007_hours].proj_name, [2007_hours].task_name, [2007_hours].Employee,
IIf(Mid([task_name],1,3)='PTO','PT O_Holiday',
IIf(Mid([task_name],1,7)='Holiday' ,'PTO_Holiday',
IIf(Mid([proj_name],1,9) In ('9900-2831','9900-2788'),'II Internal',
... -
Converting Rrom Access Syntax To Sql Syntax
Ok I am tying to convert access syntax to Sql syntax to put it in a stored procedure or view..
Here is the part that I need to convert:
SELECT [2007_hours].proj_name, [2007_hours].task_name, [2007_hours].Employee,
IIf(Mid([task_name],1,3)='PTO','PT O_Holiday',
IIf(Mid([task_name],1,7)='Holiday' ,'PTO_Holiday',
IIf(Mid([proj_name],1,9)... -
Nested IF Statements
Here is what i am trying to do
select ID, FName, LName
if(SUBSTRING(Fi rstName, 1, 4)= 'Mike')
Begin
Replace(FirstNa m,'Mike','MikeT est')
if(SUBSTRING(La stName, 1, 4)= 'Kong')
Begin
Replace(LastNam ,'Kong,'KongTes t')
if(SUBSTRING(Ad dress, 1, 4)= '1245')
Begin
.........
End
End
... -
-
SQL Case Statement Problem
Here is what i am doing:
select case
when SUBSTRING(task_ name, 1, 3)= 'PTO'
then Replace(task_na me,'PTO','PTO_H oliday')
when SUBSTRING(task_ name, 1, 7)= 'Holiday'
then Replace(task_na me,'Holiday','P TO_Holiday')
when SUBSTRING(proj_ name, 1, 9)= '9900-2831'
then Replace(proj_na me,'9900-2831','II... -
Thank you for your help, Now i am trying to do something like that
select FName(also i need to select the address)
if (SUBSTRING(FNam e, 1, 4)='Rani')
BEGIN
Replace(FName,' Rani','PO_Rani' )
END
if (SUBSTRING(FNam e, 1, 3)='Cha')
BEGIN
Replace(FName,' Cha','PO_Rani')
END
...Leave a comment:
-
How to check for the value before you select it
This is what i am trying to do:
Table dbo.Customers
Name: Address :
Charlie 12344
Mik 12254
Steven 12545
AJ 12456
in my stored procedure:... -
Thank you for your replay. Here is what i am trying to do. I am trying to setup sql schedule which is going to execute a stored procedure that gets some data then put these data into a pdf file. After that it will send an e-mail to the manger with new created pdf file. How can i accomplish that?
Thank you...Leave a comment:
-
How To Create a PDF from a stored procedure
I am trying to write a stored procedure that generates a PDF file for example my PDF file will look something like this (there should be spaces between the columns):
First Name Last Name Address
Mike Mik Jr 141552 South
Charlie D ...
No activity results to display
Show More
Leave a comment: