473,480 Members | 2,378 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Display data in a pop up

Hi all,

I have a question, I have a restricted page (lots of data) and it really
causes problems if i display all data, so I want to use a pop up to display
the rest of the data, if i use a hyperlink like this
e.g:
<asp:Hyperlink Runat="server" NavigateUrl="http://google.com/"
onclick="window.open (this.href, 'popupwindow',
'width=400,height=300,scrollbars,resizable'); return false;"
ID="Hyperlink2" NAME="Hyperlink2">[...]</asp:Hyperlink>

now instead of pointing it to www.google.com, I want it to pop up a page or
anything that will display rest of the data, how can i do it?
Please advice,
Stephen Noronha
Nov 21 '05 #1
5 1621
Hi,

I would use a linkbutton instead.
In the pages html

<asp:LinkButton id="LinkButton1" style="Z-INDEX: 104; LEFT: 32px; POSITION:
absolute; TOP: 104px"
runat="server">[...]</asp:LinkButton></form>
In the code behind file

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load

LinkButton1.Attributes.Add("onclick", "window.open ('http://www.google.com',
'popupwindow','width=400,height=300,scrollbars,res izable'); ")

End Sub

Ken

----------------------------------

"Stephen Noronha" <st********@hotmail.com> wrote in message
news:uA****************@TK2MSFTNGP09.phx.gbl...
Hi all,

I have a question, I have a restricted page (lots of data) and it really
causes problems if i display all data, so I want to use a pop up to
display
the rest of the data, if i use a hyperlink like this
e.g:
<asp:Hyperlink Runat="server" NavigateUrl="http://google.com/"
onclick="window.open (this.href, 'popupwindow',
'width=400,height=300,scrollbars,resizable'); return false;"
ID="Hyperlink2" NAME="Hyperlink2">[...]</asp:Hyperlink>

now instead of pointing it to www.google.com, I want it to pop up a page
or
anything that will display rest of the data, how can i do it?
Please advice,
Stephen Noronha

Nov 21 '05 #2
Hi Ken,
Thanks for the reply, but i want it to redirect to a page on my server with
some values in the query string
e.g: http://localhost/Temp/Sample.aspx?data=hello
where data can be from a textbox or something.

I tried "http://localhost/Temp/Sample.aspx?data=" & textbox.text but it does
not take the value and displays an empty query string

Please advice,
Stephen

"Ken Tucker [MVP]" <vb***@bellsouth.net> wrote in message
news:Or**************@TK2MSFTNGP11.phx.gbl...
Hi,

I would use a linkbutton instead.
In the pages html

<asp:LinkButton id="LinkButton1" style="Z-INDEX: 104; LEFT: 32px; POSITION: absolute; TOP: 104px"
runat="server">[...]</asp:LinkButton></form>
In the code behind file

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load

LinkButton1.Attributes.Add("onclick", "window.open ('http://www.google.com', 'popupwindow','width=400,height=300,scrollbars,res izable'); ")

End Sub

Ken

----------------------------------

"Stephen Noronha" <st********@hotmail.com> wrote in message
news:uA****************@TK2MSFTNGP09.phx.gbl...
Hi all,

I have a question, I have a restricted page (lots of data) and it really
causes problems if i display all data, so I want to use a pop up to
display
the rest of the data, if i use a hyperlink like this
e.g:
<asp:Hyperlink Runat="server" NavigateUrl="http://google.com/"
onclick="window.open (this.href, 'popupwindow',
'width=400,height=300,scrollbars,resizable'); return false;"
ID="Hyperlink2" NAME="Hyperlink2">[...]</asp:Hyperlink>

now instead of pointing it to www.google.com, I want it to pop up a page
or
anything that will display rest of the data, how can i do it?
Please advice,
Stephen Noronha


Nov 21 '05 #3
Stephen,

From the code from our own website
\\\

Response.Redirect(Defaults.FilePath & "default.aspx?ID=" &
Session.Item("ID").ToString

///

http://www.windowsformsdatagridhelp....5-a6ce05ef718f

I hope this helps,

Cor


Nov 21 '05 #4
Hi Cor,
Sorry for not presenting the problem properly. I have a page with tons of
data, i have notes label that assume is a large data, so i display part of
it with a [...] now I want to know whats the best way to display the rest of
the data.
is it to have a pop up with scroll bar or take to another webform with data?

1. I tried pop up, but cannot seem to pass the parameters (I am not good at
Javascript or VB script), another issue is formatting data.
2. I have tried a webform that works fine as I am displaying data on a
datagrid or any given control but basically its another page.

Can you suggest how to do this?
Thanks for your help

Stephen

[p.s: which article were you refering me to in your previous reply?]
"Cor Ligthert [MVP]" <no************@planet.nl> wrote in message
news:Oj**************@TK2MSFTNGP10.phx.gbl...
Stephen,

From the code from our own website
\\\

Response.Redirect(Defaults.FilePath & "default.aspx?ID=" &
Session.Item("ID").ToString

///

http://www.windowsformsdatagridhelp....5-a6ce05ef718f
I hope this helps,

Cor


Nov 21 '05 #5
Sthephan,

First about the link, your ps. I was showing the URL with the redirect
information on it.

Your question has no best answer however some I can give.
Using popups is in my opinion never the way to go in ASPNET.

Using redirecect makes it needed that you save all the information between
the pages in sessions.

The most easy one in my opinion is to use panels on a webpage.
By hiding them and showing them you have very much possibilities.

We use in that website that I showed you, an Iframe, however that is very
unorthodox for ASPNET. It was beside doing it in another way than everybody
(in ASPNET), more a challenge.

I would normally try forever to do avoid a redirect by the way if it is not
completely as well new data. In the page you saw we do it, because one of
the main purpose is to be able to show samples in these newsgroups and we
cannot reach the URL (address) place.

I hope that this gives some idea's

Cor
Nov 21 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
2143
by: StepH | last post by:
Hi, I'm building a little application, which the goal is to: 1./ Collect data via Serial line and or via a file (for playback). 2./ Display these data as graph, oscilloscope, ... How manage...
13
40615
by: Dan R Brown | last post by:
I have a large form that is generated dynamically in a jsp using xml / xslt. So, to break up this form into several "tabbed" sections, I break up the form using <div> tags. Each <div...
2
1744
by: Kay | last post by:
This function is used to display the context of a queue. I input an integer comparing with the queue cuisine number, if cuisine number is same as the input, it shows the context. However, it cannot...
19
6849
by: dmiller23462 | last post by:
Hi guys....I have absolutely NO IDEA what I'm doing with Javascript but my end result is I need two text boxes to stay hidden until a particular option is selected....I've cobbled together the...
7
6041
by: Stefan Finzel | last post by:
Hi, is there a way to change the display property on Windows Mobile 2003 SE Mobile/Pocket Internet Explorer? See following example. Please note: visibilty property has the same problem. Is...
1
2762
by: JK | last post by:
In my win form, I'm trying to display a Crystal report with the data in my dataset only but, if I follow the steps in this msdn page: ...
18
3321
by: Alpha | last post by:
Hi, I'm working on a Windows applicaton with VS 2003 on windows 2000. I have a listbox that I have binded to a dataset table, "source" which has 3 columns. I would like to display 2 of those...
1
2877
by: Eric Keung | last post by:
Hi all, my case is I want to get an image from access database and I just know it's "OLE object" field type at access I also don't know how to insert it into access here is my code and it just...
1
2599
by: John Phelan-Cummings | last post by:
When I add the name of a new individual in a, bound form, it will not display that person’s name in a label control of a second unbound form. I have a scheduling program that I am working on. ...
18
3183
by: Terry Holland | last post by:
I have an asp.net (1.1) application that connects to a SQL server 2000 db. I have a stored procedure in my db that out puts data in xml format. What I need to be able to do is display that xml...
0
7051
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7054
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7097
jinu1996
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...
1
6750
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
6993
tracyyun
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...
1
4794
isladogs
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...
0
3003
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1307
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
193
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.