Showing posts with label target. Show all posts
Showing posts with label target. Show all posts

Tuesday, March 13, 2012

TARGET BLANK QUESTION

I would like the following link to open in a new page at a certain size, e.g 400px by 400px any ideas??

class="link" id="paints" runat="server" target="_blank" href='<%# String.Format( "details.aspx?id={0}", Container.DataItem( "ProductID" ) ) %>'>Link

thanksBeer [B]

Check out this page for the window.open method:

http://www.devguru.com/Technologies/ecmascript/quickref/win_open.html


hiya thanks for your help however I am unsure where I would put that information in my new page, the new page code I have already is.... thanks

<%@. Page Language="VB" %>
<%@. import Namespace="System.Data" %>
<%@. import Namespace="System.Web.UI.WebControls.Image" %>
<%@. import Namespace="System.Data.OleDb" %>
<script runat="server">

Sub Page_Load
Dim intProductID As Integer
Dim conMurraysdb As OleDbConnection
Dim strSelect As String
Dim cmdSelect As OleDbCommand
Dim dtrResult As OleDbDataReader


intProductID = Int32.Parse( Request.QueryString( "id" ) )


conMurraysdb = New OleDbConnection( "PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA Source=D:\Domains\murraysfordesign.co.uk\db\Murraysdb.mdb" )
strSelect = "Select * From Products WhereProductID=@.ProductID"
cmdSelect = New OleDbCommand( strSelect, conMurraysdb )
cmdSelect.Parameters.Add( "@.ProductID", intProductID )
conMurraysdb.Open()
dtrResult = cmdSelect.ExecuteReader( CommandBehavior.SingleRow )


If dtrResult.Read Then
lblResult.Text = dtrResult( "Product" )
lblPrice.Text = dtrResult( "price" )
lblSize.Text = dtrResult( "size" )
lblDescription.Text = dtrResult( "Description" )
img_product.ImageURL = dtrResult( "Image_url" )

End If

dtrResult.Close()
conMurraysdb.Close()
End Sub

</script>
<html>
<head>
<title>Details.aspx</title>
</head>
<body>
<form runat="Server">
<table height="450" cellspacing="0" cellpadding="0" border="0">
<tbody>
<tr>
<td colspan="3" height="20">

</td>
</tr>
<tr>
<td valign="top" width="120">
</td>
<td valign="top" width="338">
<p style="FONT-SIZE: 13px; COLOR: #cc3333; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif">
<b><asp:Label id="lblResult" runat="Server" font-size="12px" font-bold="True" font-names="Verdana, Arial, Helvetica, sans-serif"></asp:Label></b>
</p>
<br />
<p style="FONT-SIZE: 11px; COLOR: #333333; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif">
Description:
</p>
<blockquote><asp:Label id="lblDescription" runat="Server" font-size="11px" font-names="Verdana, Arial, Helvetica, sans-serif"></asp:Label></blockquote> <blockquote><asp:Label id="lblSize" runat="Server" font-size="11px" font-names="Verdana, Arial, Helvetica, sans-serif"></asp:Label></blockquote> <blockquote>£ <asp:Label id="lblPrice" runat="Server" font-size="11px" font-names="Verdana, Arial, Helvetica, sans-serif"></asp:Label></blockquote></td>
<td valign="top" width="342">
<asp:Image id="img_product" runat="server"></asp:Image>
</td>
</tr>
</tbody>
</table>
</form>
</body>
</html>

Target frame in Response.Redirect

Hi,

i want to know can i set the target frame in Response.Redirect() Method in c#

Thanks
ImranNo it cannot be done.
Response.redirect will not support it

Target for aspx page

I have an aspx page that is always invoked by Response.Redirect calls from
other pages. I want my aspx page to always display in a new browser window.
Since the Response.Redirect calls from the other pages can't inoke _blank as
a target value, is there any way I can ensure that my aspx page always
displays in a new browser window?
Thanks,
Tinawhy not use javascript instead?
Saber S.
http://maghalat.com (Persian)
"T. Seaburn" <tinamseaburn@.removespamexcite.com> wrote in message
news:O1hXGsJjEHA.3320@.TK2MSFTNGP11.phx.gbl...
>I have an aspx page that is always invoked by Response.Redirect calls from
> other pages. I want my aspx page to always display in a new browser
> window.
> Since the Response.Redirect calls from the other pages can't inoke _blank
> as
> a target value, is there any way I can ensure that my aspx page always
> displays in a new browser window?
> Thanks,
> Tina
>
It's currently a rule here not to use any javascript. as least we use it as
a last resort.
T
"Saber" <saber[-.-AT.--]maghalat.com> wrote in message
news:ek3TiRKjEHA.3696@.TK2MSFTNGP15.phx.gbl...
> why not use javascript instead?
>
> --
> Saber S.
> http://maghalat.com (Persian)
> "T. Seaburn" <tinamseaburn@.removespamexcite.com> wrote in message
> news:O1hXGsJjEHA.3320@.TK2MSFTNGP11.phx.gbl...
from
_blank
>
You can't open a new window from the server. It's a client-side task that
can be accomplished only with a client-side script.
I am just wondering how many successful asp.net sites has the person who
wrote your rules made?
Eliyahu
"T. Seaburn" <tinamseaburn@.removespamexcite.com> wrote in message
news:O$veA1RjEHA.1184@.TK2MSFTNGP12.phx.gbl...
> It's currently a rule here not to use any javascript. as least we use it
as
> a last resort.
> T
> "Saber" <saber[-.-AT.--]maghalat.com> wrote in message
> news:ek3TiRKjEHA.3696@.TK2MSFTNGP15.phx.gbl...
> from
> _blank
>
That's not true. take an ordinary Hyperlink on any aspx page that links to
another aspx page. set it's target property to _blank and the new aspx page
will pop up in a new browser window. No client script was involved. I'm
just trying to do the same thing from a respnse.redirect that we all often
do from hyperlinks.
T
"Eliyahu Goldin" <removemeegoldin@.monarchmed.com> wrote in message
news:Ov7BNzZjEHA.3696@.TK2MSFTNGP15.phx.gbl...
> You can't open a new window from the server. It's a client-side task that
> can be accomplished only with a client-side script.
> I am just wondering how many successful asp.net sites has the person who
> wrote your rules made?
> Eliyahu
> "T. Seaburn" <tinamseaburn@.removespamexcite.com> wrote in message
> news:O$veA1RjEHA.1184@.TK2MSFTNGP12.phx.gbl...
it
> as
always
>
Admitting the mistake in the first statement, thank you, I am still
insisting that you can't make anything more-or-less meaningful in ASP.NET
without good deal of javascripting.
Eliyahu
"GaryB" <gb@.nospam.com> wrote in message
news:O$SZIO7jEHA.3456@.TK2MSFTNGP12.phx.gbl...
> That's not true. take an ordinary Hyperlink on any aspx page that links
to
> another aspx page. set it's target property to _blank and the new aspx
page
> will pop up in a new browser window. No client script was involved. I'm
> just trying to do the same thing from a respnse.redirect that we all often
> do from hyperlinks.
> T
>
> "Eliyahu Goldin" <removemeegoldin@.monarchmed.com> wrote in message
> news:Ov7BNzZjEHA.3696@.TK2MSFTNGP15.phx.gbl...
that
> it
calls
browser
> always
>
a rule not to use javascript - I am very curious as to why ... and who made
the tech choice to go with .NET? obviously they had a great handle on the
workings of the framework ...
"T. Seaburn" <tinamseaburn@.removespamexcite.com> wrote in message
news:O$veA1RjEHA.1184@.TK2MSFTNGP12.phx.gbl...
> It's currently a rule here not to use any javascript. as least we use it
> as
> a last resort.
> T
> "Saber" <saber[-.-AT.--]maghalat.com> wrote in message
> news:ek3TiRKjEHA.3696@.TK2MSFTNGP15.phx.gbl...
> from
> _blank
>
If I understand your question correctly hopefully this will do what you are
wanting
Response.Write("<script
type='text/javascript'>detailedresults=window.open('...Your New Page
Here...');</script>")
Just replace ...Your New Page Here... and it should launch a new window for
you.
William Higgins
"T. Seaburn" wrote:

> I have an aspx page that is always invoked by Response.Redirect calls from
> other pages. I want my aspx page to always display in a new browser windo
w.
> Since the Response.Redirect calls from the other pages can't inoke _blank
as
> a target value, is there any way I can ensure that my aspx page always
> displays in a new browser window?
> Thanks,
> Tina
>
>

Target for aspx page

I have an aspx page that is always invoked by Response.Redirect calls from
other pages. I want my aspx page to always display in a new browser window.
Since the Response.Redirect calls from the other pages can't inoke _blank as
a target value, is there any way I can ensure that my aspx page always
displays in a new browser window?
Thanks,
Tinawhy not use javascript instead?

--
Saber S.
http://maghalat.com (Persian)
"T. Seaburn" <tinamseaburn@.removespamexcite.com> wrote in message
news:O1hXGsJjEHA.3320@.TK2MSFTNGP11.phx.gbl...
>I have an aspx page that is always invoked by Response.Redirect calls from
> other pages. I want my aspx page to always display in a new browser
> window.
> Since the Response.Redirect calls from the other pages can't inoke _blank
> as
> a target value, is there any way I can ensure that my aspx page always
> displays in a new browser window?
> Thanks,
> Tina
It's currently a rule here not to use any javascript. as least we use it as
a last resort.
T

"Saber" <saber[-.-AT.--]maghalat.com> wrote in message
news:ek3TiRKjEHA.3696@.TK2MSFTNGP15.phx.gbl...
> why not use javascript instead?
>
> --
> Saber S.
> http://maghalat.com (Persian)
> "T. Seaburn" <tinamseaburn@.removespamexcite.com> wrote in message
> news:O1hXGsJjEHA.3320@.TK2MSFTNGP11.phx.gbl...
> >I have an aspx page that is always invoked by Response.Redirect calls
from
> > other pages. I want my aspx page to always display in a new browser
> > window.
> > Since the Response.Redirect calls from the other pages can't inoke
_blank
> > as
> > a target value, is there any way I can ensure that my aspx page always
> > displays in a new browser window?
> > Thanks,
> > Tina
You can't open a new window from the server. It's a client-side task that
can be accomplished only with a client-side script.

I am just wondering how many successful asp.net sites has the person who
wrote your rules made?

Eliyahu

"T. Seaburn" <tinamseaburn@.removespamexcite.com> wrote in message
news:O$veA1RjEHA.1184@.TK2MSFTNGP12.phx.gbl...
> It's currently a rule here not to use any javascript. as least we use it
as
> a last resort.
> T
> "Saber" <saber[-.-AT.--]maghalat.com> wrote in message
> news:ek3TiRKjEHA.3696@.TK2MSFTNGP15.phx.gbl...
> > why not use javascript instead?
> > --
> > Saber S.
> > http://maghalat.com (Persian)
> > "T. Seaburn" <tinamseaburn@.removespamexcite.com> wrote in message
> > news:O1hXGsJjEHA.3320@.TK2MSFTNGP11.phx.gbl...
> > >I have an aspx page that is always invoked by Response.Redirect calls
> from
> > > other pages. I want my aspx page to always display in a new browser
> > > window.
> > > Since the Response.Redirect calls from the other pages can't inoke
> _blank
> > > as
> > > a target value, is there any way I can ensure that my aspx page always
> > > displays in a new browser window?
> > > Thanks,
> > > Tina
> >
That's not true. take an ordinary Hyperlink on any aspx page that links to
another aspx page. set it's target property to _blank and the new aspx page
will pop up in a new browser window. No client script was involved. I'm
just trying to do the same thing from a respnse.redirect that we all often
do from hyperlinks.
T

"Eliyahu Goldin" <removemeegoldin@.monarchmed.com> wrote in message
news:Ov7BNzZjEHA.3696@.TK2MSFTNGP15.phx.gbl...
> You can't open a new window from the server. It's a client-side task that
> can be accomplished only with a client-side script.
> I am just wondering how many successful asp.net sites has the person who
> wrote your rules made?
> Eliyahu
> "T. Seaburn" <tinamseaburn@.removespamexcite.com> wrote in message
> news:O$veA1RjEHA.1184@.TK2MSFTNGP12.phx.gbl...
> > It's currently a rule here not to use any javascript. as least we use
it
> as
> > a last resort.
> > T
> > "Saber" <saber[-.-AT.--]maghalat.com> wrote in message
> > news:ek3TiRKjEHA.3696@.TK2MSFTNGP15.phx.gbl...
> > > why not use javascript instead?
> > > > > --
> > > Saber S.
> > > http://maghalat.com (Persian)
> > > "T. Seaburn" <tinamseaburn@.removespamexcite.com> wrote in message
> > > news:O1hXGsJjEHA.3320@.TK2MSFTNGP11.phx.gbl...
> > > >I have an aspx page that is always invoked by Response.Redirect calls
> > from
> > > > other pages. I want my aspx page to always display in a new browser
> > > > window.
> > > > Since the Response.Redirect calls from the other pages can't inoke
> > _blank
> > > > as
> > > > a target value, is there any way I can ensure that my aspx page
always
> > > > displays in a new browser window?
> > > > Thanks,
> > > > Tina
> > > > > >
Admitting the mistake in the first statement, thank you, I am still
insisting that you can't make anything more-or-less meaningful in ASP.NET
without good deal of javascripting.

Eliyahu

"GaryB" <gb@.nospam.com> wrote in message
news:O$SZIO7jEHA.3456@.TK2MSFTNGP12.phx.gbl...
> That's not true. take an ordinary Hyperlink on any aspx page that links
to
> another aspx page. set it's target property to _blank and the new aspx
page
> will pop up in a new browser window. No client script was involved. I'm
> just trying to do the same thing from a respnse.redirect that we all often
> do from hyperlinks.
> T
>
> "Eliyahu Goldin" <removemeegoldin@.monarchmed.com> wrote in message
> news:Ov7BNzZjEHA.3696@.TK2MSFTNGP15.phx.gbl...
> > You can't open a new window from the server. It's a client-side task
that
> > can be accomplished only with a client-side script.
> > I am just wondering how many successful asp.net sites has the person who
> > wrote your rules made?
> > Eliyahu
> > "T. Seaburn" <tinamseaburn@.removespamexcite.com> wrote in message
> > news:O$veA1RjEHA.1184@.TK2MSFTNGP12.phx.gbl...
> > > It's currently a rule here not to use any javascript. as least we use
> it
> > as
> > > a last resort.
> > > T
> > > > "Saber" <saber[-.-AT.--]maghalat.com> wrote in message
> > > news:ek3TiRKjEHA.3696@.TK2MSFTNGP15.phx.gbl...
> > > > why not use javascript instead?
> > > > > > > > --
> > > > Saber S.
> > > > http://maghalat.com (Persian)
> > > > "T. Seaburn" <tinamseaburn@.removespamexcite.com> wrote in message
> > > > news:O1hXGsJjEHA.3320@.TK2MSFTNGP11.phx.gbl...
> > > > >I have an aspx page that is always invoked by Response.Redirect
calls
> > > from
> > > > > other pages. I want my aspx page to always display in a new
browser
> > > > > window.
> > > > > Since the Response.Redirect calls from the other pages can't inoke
> > > _blank
> > > > > as
> > > > > a target value, is there any way I can ensure that my aspx page
> always
> > > > > displays in a new browser window?
> > > > > Thanks,
> > > > > Tina
> > > > > > > > > > > >
a rule not to use javascript - I am very curious as to why ... and who made
the tech choice to go with .NET? obviously they had a great handle on the
workings of the framework ...

"T. Seaburn" <tinamseaburn@.removespamexcite.com> wrote in message
news:O$veA1RjEHA.1184@.TK2MSFTNGP12.phx.gbl...
> It's currently a rule here not to use any javascript. as least we use it
> as
> a last resort.
> T
> "Saber" <saber[-.-AT.--]maghalat.com> wrote in message
> news:ek3TiRKjEHA.3696@.TK2MSFTNGP15.phx.gbl...
>> why not use javascript instead?
>>
>>
>> --
>> Saber S.
>> http://maghalat.com (Persian)
>> "T. Seaburn" <tinamseaburn@.removespamexcite.com> wrote in message
>> news:O1hXGsJjEHA.3320@.TK2MSFTNGP11.phx.gbl...
>> >I have an aspx page that is always invoked by Response.Redirect calls
> from
>> > other pages. I want my aspx page to always display in a new browser
>> > window.
>> > Since the Response.Redirect calls from the other pages can't inoke
> _blank
>> > as
>> > a target value, is there any way I can ensure that my aspx page always
>> > displays in a new browser window?
>> > Thanks,
>> > Tina
>>>>
>>

Target path for web setup?

Hello,
does anybody know where to set the target path for a web setup? I do not
find it anywhere...
Thanks,
FrankProperty window of
File System (WebSetup) => Web Application Folder
Key: VirtualDirectory
"Frank Esser" <Mistral@.nurfuerspam.de> schrieb im Newsbeitrag
news:%23VxXURBPFHA.3356@.TK2MSFTNGP12.phx.gbl...
> Hello,
> does anybody know where to set the target path for a web setup? I do not
> find it anywhere...
> Thanks,
> Frank
>

Target path for web setup?

Hello,

does anybody know where to set the target path for a web setup? I do not
find it anywhere...

Thanks,
FrankProperty window of
File System (WebSetup) => Web Application Folder
Key: VirtualDirectory

"Frank Esser" <Mistral@.nurfuerspam.de> schrieb im Newsbeitrag
news:%23VxXURBPFHA.3356@.TK2MSFTNGP12.phx.gbl...
> Hello,
> does anybody know where to set the target path for a web setup? I do not
> find it anywhere...
> Thanks,
> Frank

target settings?

hi, how to set th target settings so when click the link, will open in a new
window? Thanks
code:
<asp:HyperLink ID="HyperLink1" NavigateUrl='<%#
EditURL("ItemID",DataBinder.Eval(Container.DataItem,"ItemID")) %>'
Visible="<%# IsEditable %>" runat="server" Target="_blank"><asp:Image
ID="Image1" Runat=server ImageUrl="~/images/edit.gif" AlternateText="Edit"
Visible="<%#IsEditable%>" resourcekey="Edit" /></asp:hyperlink>On Mon, 03 Apr 2006 08:37:21 -0500, js <js@.someone.com> wrote:

> hi, how to set th target settings so when click the link, will open in a
> new
> window? Thanks
> code:
> <asp:HyperLink ID="HyperLink1" NavigateUrl='<%#
> EditURL("ItemID",DataBinder.Eval(Container.DataItem,"ItemID")) %>'
> Visible="<%# IsEditable %>" runat="server" Target="_blank"><asp:Image
> ID="Image1" Runat=server ImageUrl="~/images/edit.gif"
> AlternateText="Edit"
> Visible="<%#IsEditable%>" resourcekey="Edit" /></asp:hyperlink>
>
What you have for Target is correct; works here with a stripped-down
sample. Verify something else in the code above (other attribute values)
is not causing an issue, check the resulting HTML and see if there's other
issues causing the link to not open properly.
Craig
Microsoft MVP - ASP/ASP.NET
Thanks Craig.
"Craig Deelsnyder" <cdeelsny@.no_spam_4_meyahoo.com> wrote in message
news:op.s7fvk8rx75dg5d@.cdeelsn-ws.ab.farm...
> On Mon, 03 Apr 2006 08:37:21 -0500, js <js@.someone.com> wrote:
>
> What you have for Target is correct; works here with a stripped-down
> sample. Verify something else in the code above (other attribute values)
> is not causing an issue, check the resulting HTML and see if there's other
> issues causing the link to not open properly.
> --
> Craig
> Microsoft MVP - ASP/ASP.NET

target settings?

hi, how to set th target settings so when click the link, will open in a new
window? Thanks
code:
<asp:HyperLink ID="HyperLink1" NavigateUrl='<%#
EditURL("ItemID",DataBinder.Eval(Container.DataItem,"ItemID")) %>'
Visible="<%# IsEditable %>" runat="server" Target="_blank"><asp:Image
ID="Image1" Runat=server ImageUrl="~/images/edit.gif" AlternateText="Edit"
Visible="<%#IsEditable%>" resourcekey="Edit" /></asp:hyperlinkOn Mon, 03 Apr 2006 08:37:21 -0500, js <js@.someone.com> wrote:

> hi, how to set th target settings so when click the link, will open in a
> new
> window? Thanks
> code:
> <asp:HyperLink ID="HyperLink1" NavigateUrl='<%#
> EditURL("ItemID",DataBinder.Eval(Container.DataItem,"ItemID")) %>'
> Visible="<%# IsEditable %>" runat="server" Target="_blank"><asp:Image
> ID="Image1" Runat=server ImageUrl="~/images/edit.gif"
> AlternateText="Edit"
> Visible="<%#IsEditable%>" resourcekey="Edit" /></asp:hyperlink>

What you have for Target is correct; works here with a stripped-down
sample. Verify something else in the code above (other attribute values)
is not causing an issue, check the resulting HTML and see if there's other
issues causing the link to not open properly.

--
Craig
Microsoft MVP - ASP/ASP.NET
Thanks Craig.

"Craig Deelsnyder" <cdeelsny@.no_spam_4_meyahoo.com> wrote in message
news:op.s7fvk8rx75dg5d@.cdeelsn-ws.ab.farm...
> On Mon, 03 Apr 2006 08:37:21 -0500, js <js@.someone.com> wrote:
>> hi, how to set th target settings so when click the link, will open in a
>> new
>> window? Thanks
>> code:
>> <asp:HyperLink ID="HyperLink1" NavigateUrl='<%#
>> EditURL("ItemID",DataBinder.Eval(Container.DataItem,"ItemID")) %>'
>> Visible="<%# IsEditable %>" runat="server" Target="_blank"><asp:Image
>> ID="Image1" Runat=server ImageUrl="~/images/edit.gif"
>> AlternateText="Edit"
>> Visible="<%#IsEditable%>" resourcekey="Edit" /></asp:hyperlink>
>>
>>
> What you have for Target is correct; works here with a stripped-down
> sample. Verify something else in the code above (other attribute values)
> is not causing an issue, check the resulting HTML and see if there's other
> issues causing the link to not open properly.
> --
> Craig
> Microsoft MVP - ASP/ASP.NET

Target schema for validation?

Hello everyone,

Can someone tell me which "Target schema for validation" is suitable for VS 05 web application or ASP.NET version2 application? I have set "Internet Explorer 6.0" for Target schema for validation but always get tag errors like:

Validation (Internet Explorer 6): The values permitted for this attribute do not include 'middle'.

Validation (Internet Explorer 6): Element 'table' cannot be nested within element 'span'.

Validation (Internet Explorer 6): Attribute 'size' is not a valid attribute of element 'input'.

How do I avoid these validation errors and which one is the right "Target schema for validation"? Thanks in advance.

The target schema will depend on the DOCTYPE you've chosen but ideally, you should target the latest versions so an XHTML 1.1 DOCTYPE will target the latest version of CSS (in my case the latest version in the dropdownlist was CSS2.1). However, this doesn't really have any relevance as the best method you can use is to use anon line validator and validate the final HTML that is sent to the browser.

target size

I know how to use javascript to open a hyperlink in a resized window without
toolbars. But would it be better to do so from the code behind pages and if
so, how? which classes? Thanks

Buzother than the code behind setting the url for hyperlink, you got it.

-- bruce (sqlwork.com)

"Buz Waitz" <bwaitz@.sbcglobal.net> wrote in message
news:O3hohLmUEHA.716@.TK2MSFTNGP11.phx.gbl...
> I know how to use javascript to open a hyperlink in a resized window
without
> toolbars. But would it be better to do so from the code behind pages and
if
> so, how? which classes? Thanks
> Buz
>I know how to use javascript to open a hyperlink in a resized window without
>toolbars. But would it be better to do so from the code behind pages and if
>so, how? which classes? Thanks
>Buz

I am pretty sure u need to use javascript, but if u want to call the
javascript from the codebehind try this:

this.RegisterClientScriptBlock("","insertscripthere");

-Adam
client script blocks will not work with xp service pack 2 for this
application. in code behind you can only set the javascript url of the
hyperlink.

-- bruce (sqlwork.com)

<ashelley@.inlandkwpp.com> wrote in message
news:h1fsc090oq4j60kn9lt5rdsicmupjii3a9@.4ax.com...
> >I know how to use javascript to open a hyperlink in a resized window
without
> >toolbars. But would it be better to do so from the code behind pages and
if
> >so, how? which classes? Thanks
> >Buz
> I am pretty sure u need to use javascript, but if u want to call the
> javascript from the codebehind try this:
> this.RegisterClientScriptBlock("","insertscripthere");
> -Adam
On Tue, 15 Jun 2004 11:01:30 -0700, "bruce barker"
<nospam_brubar@.safeco.com> wrote:

>client script blocks will not work with xp service pack 2 for this
>application. in code behind you can only set the javascript url of the
>hyperlink.
>-- bruce (sqlwork.com)

interesting.

function popUp(wUrl,wName,wOpts)
{
//x y are set to current cursor location already
var newWindow;
newWindow = window.open('',wName,wOpts);
if(newWindow)
{

newWindow.document.write('<body><center>wait...</center></body>');
newWindow.document.close();
newWindow.moveTo(x,y);
newWindow.focus();
newWindow.location = wUrl;
}
}

and call

this.RegisterClientScriptBlock("","<script
language='javascript'>popUp('someurl','windowname','someoptions');</script>");

this won't work with xp sp 2?

-Adam

target size

I know how to use javascript to open a hyperlink in a resized window without
toolbars. But would it be better to do so from the code behind pages and if
so, how? which classes? Thanks
Buzother than the code behind setting the url for hyperlink, you got it.
-- bruce (sqlwork.com)
"Buz Waitz" <bwaitz@.sbcglobal.net> wrote in message
news:O3hohLmUEHA.716@.TK2MSFTNGP11.phx.gbl...
> I know how to use javascript to open a hyperlink in a resized window
without
> toolbars. But would it be better to do so from the code behind pages and
if
> so, how? which classes? Thanks
> Buz
>
>I know how to use javascript to open a hyperlink in a resized window without
>toolbars. But would it be better to do so from the code behind pages and if
>so, how? which classes? Thanks
>Buz
>
I am pretty sure u need to use javascript, but if u want to call the
javascript from the codebehind try this:
this.RegisterClientScriptBlock("","insertscripthere");
-Adam
client script blocks will not work with xp service pack 2 for this
application. in code behind you can only set the javascript url of the
hyperlink.
-- bruce (sqlwork.com)
<ashelley@.inlandkwpp.com> wrote in message
news:h1fsc090oq4j60kn9lt5rdsicmupjii3a9@.
4ax.com...
without
if
> I am pretty sure u need to use javascript, but if u want to call the
> javascript from the codebehind try this:
> this.RegisterClientScriptBlock("","insertscripthere");
> -Adam
On Tue, 15 Jun 2004 11:01:30 -0700, "bruce barker"
<nospam_brubar@.safeco.com> wrote:

>client script blocks will not work with xp service pack 2 for this
>application. in code behind you can only set the javascript url of the
>hyperlink.
>-- bruce (sqlwork.com)
>
interesting.
function popUp(wUrl,wName,wOpts)
{
//x y are set to current cursor location already
var newWindow;
newWindow = window.open('',wName,wOpts);
if(newWindow)
{
newWindow.document.write('<body><center>wait...</center></body>');
newWindow.document.close();
newWindow.moveTo(x,y);
newWindow.focus();
newWindow.location = wUrl;
}
}
and call
this.RegisterClientScriptBlock("","<script
language='javascript'> popUp('someurl','windowname','someoption
s');</script>"
);
this won't work with xp sp 2?
-Adam

Target Window question

Im trying to target="top" when the user click on the login button - But its not working for me, any ideas where i put Target="top" sorry im new to .aspx

cheers

ZOIK

Example of code.

<asp:Login ID="Login1" runat="server" BackColor="#F7F6F3" BorderColor="#E6E2D8" BorderPadding="4"
BorderStyle="Solid" BorderWidth="1px" Font-Names="Verdana" Font-Size="Small"
ForeColor="#333333" Height="147px" Width="293px" DestinationPageUrl="~/secure_industry/Default.aspx">
<TitleTextStyle BackColor="#5D7B9D" Font-Bold="True" Font-Size="0.9em" ForeColor="White" />
<InstructionTextStyle Font-Italic="True" Font-Size="Small" ForeColor="Black" />
<TextBoxStyle Font-Size="X-Small" />
<LoginButtonStyle BackColor="#FFFBFF" BorderColor="#CCCCCC" BorderStyle="Solid" BorderWidth="1px"
Font-Names="Verdana" Font-Size="Small" ForeColor="#284775"/>
<LabelStyle Font-Size="Small" />
<CheckBoxStyle Font-Size="Small" />
<HyperLinkStyle Font-Size="Small" />
</asp:Login>

Hi,

I think it is not possible to do that with the inbuilt login control. What you can do is create a login template with the code from the below link and then set the onclick event of the button control to target="_top"

http://quickstarts.asp.net/QuickStartv20/util/srcview.aspx?path=~/aspnet/samples/ctrlref/login/LoginTemplate.src

Let me know if you have any issues.


Thanks mate thats excellent.

Targeting an <IFRAME> in code

Hi,
I manage to open a PDF file in an <IFRAME> by "clicking" on an HyperLink
with:
HyperLink.NavigateURL = "file:///C:\file.pdf"
HyperLink.Target = "iframename"
The question is... How can I do the same thing by "clicking" on a
button'
I searched in the System.Web.UI.HtmlControls collection and I can't find
the IFRAME object...
Any ideas?
Thanks in advance
CCAn IFRAME is simply HTML in a Page:
<iframe src ="/something.aspx"></iframe>
Add a runat=server to it, and an HtmlGeneric Control behind it, if you want
to manipulate it programmatically.
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
<carlos.cruz@.algeco.pt> wrote in message
news:ecdJl6kFEHA.3252@.TK2MSFTNGP11.phx.gbl...
> Hi,
> I manage to open a PDF file in an <IFRAME> by "clicking" on an HyperLink
> with:
> HyperLink.NavigateURL = "file:///C:\file.pdf"
> HyperLink.Target = "iframename"
> The question is... How can I do the same thing by "clicking" on a
> button'
> I searched in the System.Web.UI.HtmlControls collection and I can't find
> the IFRAME object...
> Any ideas?
> Thanks in advance
> CC
Hi,
I'm sorry but I don't undertand what you mean by putting a generic html
control behind the iframe. Could you be more specific?
Thanks
CC
Every Control (that is part of the Page definition) in the Page Template has
a corresponding object declaration in the CodeBehind class. In this case,
you would have to add it yourself. What software are you using to develop
your app?
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
<carlos.cruz@.algeco.pt> wrote in message
news:ub13YbmFEHA.3448@.TK2MSFTNGP09.phx.gbl...
> Hi,
> I'm sorry but I don't undertand what you mean by putting a generic html
> control behind the iframe. Could you be more specific?
> Thanks
> CC