What am I doing wrong?
btnSubmit.Attributes.Add("onClick",
"javascript:window.open('Report.aspx?Name=' +
Session('Name'),'Report','width=800,height=600,res izable=yes,scrollbars=yes,left=0,top=0')")
All I want to do is open a new window and pass Session("Name").
Thanks for all your help...
Sunshine 2 920
You've not actually said what your problem is but you probably have your end
strings in the wrong place. I think it might perhaps be this:
btnSubmit.Attributes.Add("onClick","javascript :win dow.open('Report.aspx?Name='"
+ Session("Name") +
",'Report','width=800,height=600,resizable=yes,scr ollbars=yes,left=0,top=0')")
Regards
John Timney (MVP)
<su************@yahoo.comwrote in message
news:11**********************@b28g2000cwb.googlegr oups.com...
What am I doing wrong?
btnSubmit.Attributes.Add("onClick",
"javascript:window.open('Report.aspx?Name=' +
Session('Name'),'Report','width=800,height=600,res izable=yes,scrollbars=yes,left=0,top=0')")
All I want to do is open a new window and pass Session("Name").
Thanks for all your help...
Sunshine
John Timney (MVP) wrote:
You've not actually said what your problem is but you probably have your end
strings in the wrong place. I think it might perhaps be this:
btnSubmit.Attributes.Add("onClick","javascript:win dow.open('Report.aspx?Name='"
+ Session("Name") +
",'Report','width=800,height=600,resizable=yes,scr ollbars=yes,left=0,top=0')")
Regards
John Timney (MVP)
John,
Thanks for your help! I had to change the single tick after "Name=" to
before the ",'" so the final version looks like the following:
btnSubmit.Attributes.Add("onClick","javascript :win dow.open('Report.aspx?Name="
+ Session("Name") +
"','Report','width=800,height=600,resizable=yes,sc rollbars=yes,left=0,top=0')")
Thanks again for your help!
Sunshine This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: StealthMonkey |
last post by:
Let me prefix this by saying that I know next to nothing about Java
(so please try to keep explainations simple). I use PHP for my
server-side web programming. Here is my dilemma:
I need a...
|
by: Georg Andersson |
last post by:
Hi
i'm having a little problem of understanding some differences between
Java and PHP.
Well, PHP runs on the server. so, if my script saves some data from a
database to 'c:\temp', it saves the...
|
by: asj |
last post by:
luke: BORRRRRRRRING......the most interesting initiatives are
happening on the client side - in small wireless devices such as
cellphones and smartphones, where J2ME has become the de facto...
|
by: Richard |
last post by:
Level: Java newbie, C experienced
Platform: Linux and Win32, Intel
Another programmer and I are working on a small project together.
He's writing a server process in Java that accepts input...
|
by: liorm |
last post by:
Hi everyone,
I need to write a web app, that will support millions of user accounts,
template-based user pages and files upload. The client is going to be
written in Flash. I wondered if I coudl...
|
by: misdst23 |
last post by:
Hi,
I know I can call a static java method within javascript by using the
<% ... %tags. But how can pass a javascript variable ?
function thefunction()
{
var = javascriptvariable ;
|
by: Jobs |
last post by:
Download the JAVA , .NET and SQL Server interview with answers
Download the JAVA , .NET and SQL Server interview sheet and rate
yourself. This will help you judge yourself are you really worth of...
|
by: oll3i |
last post by:
package library.common;
import java.sql.ResultSet;
public interface LibraryInterface {
public ResultSet getBookByAuthor(String author);
public ResultSet getBookByName(String name);
|
by: Ankur |
last post by:
Hi Folks,
I am new for this group. I want to clarify one thing what's a basic
difference between Client Side Java Script and Server Side Java
Script. how we can differentiate it. Why we called...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
| |