Showing posts with label click. Show all posts
Showing posts with label click. Show all posts

Saturday, March 31, 2012

Table Style

I have the following table in ascx , when I click the button the table style
not showing in the popup , it is ONLY showing on the page not in the
popup...WHY?

<TABLE style="BACKGROUND: #d8e8f5;CURSOR:hand" bgcolor="#d8e8f5"
id="tblMenu" cellSpacing="0"cellPadding="2" width="150" border="1">
<TR>
<TD class="standerdfont" >New Document</TD>
</TR>
<TR>
<TD class="standerdfont">New Folder</TD>
</TR>
</TABLE
this table is shown when user click the button as following:
<TABLE id="Table6" cellSpacing="0" cellPadding="0" width="560" border="0">
<TR>
<TH style="HEIGHT: 14px" vAlign="middle" scope="col" align="right" width="67">
<IMG id=imgAddNew
onmouseover="MM_swapImage('Image15','','/images/<%=strImgName_New_O%>',1)"
style="CURSOR: hand" onclick="showMenu('tblMenu',100,44);"
onmouseout=MM_swapImgRestore() height=23
src="MailTools/images/<%=strImgName_New%>" width=59 border=0 name=Image15
></TH
</table
the javascript function is :

function showMenu(menu, width , height)
{

varlefter= event.clientX;
varleftoff= event.offsetX;
vartopper= event.clientY;
vartopoff= event.offsetY;
varoPopup= window.createPopup();
varoPopBody= oPopup.document.body;
varHTMLContent= eval(menu).innerHTML;
oPopBody.innerHTML = HTMLContent;
oPopup.show(lefter - leftoff - 2, topper - topoff
+22,width,height,document.body);
}In yout javascript function your manipulate with variables. You never change
the html of the popup window. Should be

oPopup.document.body.innerHTML = HTMLContent;

Eliyahu

"Raed Sawalha" <RaedSawalha@.discussions.microsoft.com> wrote in message
news:68DF83CD-6146-4A18-AF92-DBE3AC52FDBE@.microsoft.com...
> I have the following table in ascx , when I click the button the table
style
> not showing in the popup , it is ONLY showing on the page not in the
> popup...WHY?
> <TABLE style="BACKGROUND: #d8e8f5;CURSOR:hand" bgcolor="#d8e8f5"
> id="tblMenu" cellSpacing="0" cellPadding="2" width="150" border="1">
> <TR>
> <TD class="standerdfont" >New Document</TD>
> </TR>
> <TR>
> <TD class="standerdfont">New Folder</TD>
> </TR>
> </TABLE>
> this table is shown when user click the button as following:
> <TABLE id="Table6" cellSpacing="0" cellPadding="0" width="560" border="0">
> <TR>
> <TH style="HEIGHT: 14px" vAlign="middle" scope="col" align="right"
width="67">
> <IMG id=imgAddNew
> onmouseover="MM_swapImage('Image15','','/images/<%=strImgName_New_O%>',1)"
> style="CURSOR: hand" onclick="showMenu('tblMenu',100,44);"
> onmouseout=MM_swapImgRestore() height=23
> src="http://pics.10026.com/?src=MailTools/images/<%=strImgName_New%>" width=59 border=0 name=Image15
> ></TH>
> </table>
>
> the javascript function is :
>
> function showMenu(menu, width , height)
> {
> var lefter = event.clientX;
> var leftoff = event.offsetX;
> var topper = event.clientY;
> var topoff = event.offsetY;
> var oPopup = window.createPopup();
> var oPopBody = oPopup.document.body;
> var HTMLContent = eval(menu).innerHTML;
> oPopBody.innerHTML = HTMLContent;
> oPopup.show(lefter - leftoff - 2, topper - topoff
> + 22, width,height,document.body);
> }
I modified it as following and still wont display the table style

function showMenu(menu, width , height)
{

varlefter= event.clientX;
varleftoff= event.offsetX;
vartopper= event.clientY;
vartopoff= event.offsetY;
varoPopup= window.createPopup();
varHTMLContent= eval(menu).innerHTML;
oPopup.document.body.innerHTML = HTMLContent;
oPopup.show(lefter - leftoff - 2, topper - topoff
+22,width,/*newHeight*/height,document.body);
}

"Eliyahu Goldin" wrote:

> In yout javascript function your manipulate with variables. You never change
> the html of the popup window. Should be
> oPopup.document.body.innerHTML = HTMLContent;
> Eliyahu
> "Raed Sawalha" <RaedSawalha@.discussions.microsoft.com> wrote in message
> news:68DF83CD-6146-4A18-AF92-DBE3AC52FDBE@.microsoft.com...
> > I have the following table in ascx , when I click the button the table
> style
> > not showing in the popup , it is ONLY showing on the page not in the
> > popup...WHY?
> > <TABLE style="BACKGROUND: #d8e8f5;CURSOR:hand" bgcolor="#d8e8f5"
> > id="tblMenu" cellSpacing="0" cellPadding="2" width="150" border="1">
> > <TR>
> > <TD class="standerdfont" >New Document</TD>
> > </TR>
> > <TR>
> > <TD class="standerdfont">New Folder</TD>
> > </TR>
> > </TABLE>
> > this table is shown when user click the button as following:
> > <TABLE id="Table6" cellSpacing="0" cellPadding="0" width="560" border="0">
> > <TR>
> > <TH style="HEIGHT: 14px" vAlign="middle" scope="col" align="right"
> width="67">
> > <IMG id=imgAddNew
> > onmouseover="MM_swapImage('Image15','','/images/<%=strImgName_New_O%>',1)"
> > style="CURSOR: hand" onclick="showMenu('tblMenu',100,44);"
> > onmouseout=MM_swapImgRestore() height=23
> > src="http://pics.10026.com/?src=MailTools/images/<%=strImgName_New%>" width=59 border=0 name=Image15
> > ></TH>
> > </table>
> > the javascript function is :
> > function showMenu(menu, width , height)
> > {
> > var lefter = event.clientX;
> > var leftoff = event.offsetX;
> > var topper = event.clientY;
> > var topoff = event.offsetY;
> > var oPopup = window.createPopup();
> > var oPopBody = oPopup.document.body;
> > var HTMLContent = eval(menu).innerHTML;
> > oPopBody.innerHTML = HTMLContent;
> > oPopup.show(lefter - leftoff - 2, topper - topoff
> > + 22, width,height,document.body);
> > }
>

Monday, March 26, 2012

Tabstrip

Hi,
I have this website that consists of 2 frames.
In my topFrame I have a tabstrip.
What I am trying to do is, when you click on a tab, the corresponding page
is displayed in my mainFrame.
I can't seem to find how to do it.
Can anyone help me?
Thx.hi Bart,
this might be of interest to you
http://www.codeproject.com/aspnet/dwtabstrip.asp
the best
srini
"Bart Schelkens" wrote:

> Hi,
> I have this website that consists of 2 frames.
> In my topFrame I have a tabstrip.
> What I am trying to do is, when you click on a tab, the corresponding page
> is displayed in my mainFrame.
> I can't seem to find how to do it.
> Can anyone help me?
> Thx.
>
>
In the frames page set the target = "mainFrame" for the frame in which your
tabstrip is located.
Freddy
"Bart Schelkens" <BSchelkens@.hotmail.com> wrote in message
news:Odh25P5pEHA.3520@.TK2MSFTNGP11.phx.gbl...
> Hi,
> I have this website that consists of 2 frames.
> In my topFrame I have a tabstrip.
> What I am trying to do is, when you click on a tab, the corresponding page
> is displayed in my mainFrame.
> I can't seem to find how to do it.
> Can anyone help me?
> Thx.
>
i've been looking at it, but i can't get it to work
"srini" <srini@.discussions.microsoft.com> wrote in message
news:E28F54B1-5D69-49B6-A6A1-C6931EE92430@.microsoft.com...
> hi Bart,
> this might be of interest to you
> http://www.codeproject.com/aspnet/dwtabstrip.asp
> the best
> srini
> "Bart Schelkens" wrote:
>
page

Saturday, March 24, 2012

Tabstrip

Hi,

I have this website that consists of 2 frames.
In my topFrame I have a tabstrip.
What I am trying to do is, when you click on a tab, the corresponding page
is displayed in my mainFrame.

I can't seem to find how to do it.
Can anyone help me?

Thx.hi Bart,
this might be of interest to you
http://www.codeproject.com/aspnet/dwtabstrip.asp
the best
srini

"Bart Schelkens" wrote:

> Hi,
> I have this website that consists of 2 frames.
> In my topFrame I have a tabstrip.
> What I am trying to do is, when you click on a tab, the corresponding page
> is displayed in my mainFrame.
> I can't seem to find how to do it.
> Can anyone help me?
> Thx.
>
In the frames page set the target = "mainFrame" for the frame in which your
tabstrip is located.

Freddy

"Bart Schelkens" <BSchelkens@.hotmail.com> wrote in message
news:Odh25P5pEHA.3520@.TK2MSFTNGP11.phx.gbl...
> Hi,
> I have this website that consists of 2 frames.
> In my topFrame I have a tabstrip.
> What I am trying to do is, when you click on a tab, the corresponding page
> is displayed in my mainFrame.
> I can't seem to find how to do it.
> Can anyone help me?
> Thx.
i've been looking at it, but i can't get it to work

"srini" <srini@.discussions.microsoft.com> wrote in message
news:E28F54B1-5D69-49B6-A6A1-C6931EE92430@.microsoft.com...
> hi Bart,
> this might be of interest to you
> http://www.codeproject.com/aspnet/dwtabstrip.asp
> the best
> srini
> "Bart Schelkens" wrote:
> > Hi,
> > I have this website that consists of 2 frames.
> > In my topFrame I have a tabstrip.
> > What I am trying to do is, when you click on a tab, the corresponding
page
> > is displayed in my mainFrame.
> > I can't seem to find how to do it.
> > Can anyone help me?
> > Thx.

Thursday, March 22, 2012

Takes VS 2005 *3 MINUTES* to compile ASP.NET 2.0 website

It takes VS 2005 1, 2, and somtimes 3 MINUTES to compile ASP.NET 2.0 website
when external DLL is modified. As a matter of fact, when I click 'Build',
it looks like VS 2005 hangs for most of that time before it actually starts
compiling. If I modify something inside WebSite project itself without
modifying DLL, it takes few seconds to compile.
Why? How can I control this behavior?
I was able to reproduce this behavior by creating a simple WebSite and
simple DLL that I reference from that WebSite project.Amelyan,
you have posted this message 3 times now, and you accepted
that the explanation which was offered made sense.
But you have not said whether you tried the simple solution posted,
and whether it works or not.
Did you try it ? Does it work ?
Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
Foros de ASP.NET en Espaol : http://asp.net.do/foros/
======================================
"Amelyan" <bamelyan at wi.rr.com> wrote in message
news:eHx9wrV4FHA.268@.TK2MSFTNGP10.phx.gbl...
> It takes VS 2005 1, 2, and somtimes 3 MINUTES to compile ASP.NET 2.0 websi
te when
> external DLL is modified. As a matter of fact, when I click 'Build', it l
ooks like VS
> 2005 hangs for most of that time before it actually starts compiling. If
I modify
> something inside WebSite project itself without modifying DLL, it takes fe
w seconds to
> compile.
> Why? How can I control this behavior?
> I was able to reproduce this behavior by creating a simple WebSite and sim
ple DLL that I
> reference from that WebSite project.
>
Juan,
Yes, I tried the your suggestion. When I remove the old DLL and re-add it
to references every time compile, this process takes even longer. So, this
solution is useless.
"Juan T. Llibre" <nomailreplies@.nowhere.com> wrote in message
news:%23g1x5yV4FHA.2364@.TK2MSFTNGP12.phx.gbl...
> Amelyan,
> you have posted this message 3 times now, and you accepted
> that the explanation which was offered made sense.
> But you have not said whether you tried the simple solution posted,
> and whether it works or not.
> Did you try it ? Does it work ?
>
>
> Juan T. Llibre, ASP.NET MVP
> ASP.NET FAQ : http://asp.net.do/faq/
> Foros de ASP.NET en Espaol : http://asp.net.do/foros/
> ======================================
> "Amelyan" <bamelyan at wi.rr.com> wrote in message
> news:eHx9wrV4FHA.268@.TK2MSFTNGP10.phx.gbl...
>
Have you tried compiling the assembly from within VS ?
Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
Foros de ASP.NET en Espaol : http://asp.net.do/foros/
======================================
"Amelyan" <bamelyan at wi.rr.com> wrote in message
news:eVrkx2V4FHA.4076@.TK2MSFTNGP15.phx.gbl...
> Juan,
> Yes, I tried the your suggestion. When I remove the old DLL and re-add it
to references
> every time compile, this process takes even longer. So, this solution is
useless.
>
> "Juan T. Llibre" <nomailreplies@.nowhere.com> wrote in message
> news:%23g1x5yV4FHA.2364@.TK2MSFTNGP12.phx.gbl...
>
Yes, that is how I am doing it.
"Juan T. Llibre" <nomailreplies@.nowhere.com> wrote in message
news:uKxQT5V4FHA.2872@.TK2MSFTNGP15.phx.gbl...
> Have you tried compiling the assembly from within VS ?
>
> Juan T. Llibre, ASP.NET MVP
> ASP.NET FAQ : http://asp.net.do/faq/
> Foros de ASP.NET en Espaol : http://asp.net.do/foros/
> ======================================
> "Amelyan" <bamelyan at wi.rr.com> wrote in message
> news:eVrkx2V4FHA.4076@.TK2MSFTNGP15.phx.gbl...
>
I must have misunderstood what you meant when
you stated "when external DLL is modified".
I thought "external DLL" referred to a DLL outside your
project since, otherwise, it would be a "project DLL".
So, to recap,
1. you have a web solution
2. you add the DLL solution to that solution
3. you compile the DLL and the web solution sequentially,
from within the *same* solution
or, do you
1. have a web solution
2. have a *different* solution for your DLL
( not included in your web solution)
3. You recompile the DLL
4. you recompile the web solution and that causes the problem you describe
?
Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
Foros de ASP.NET en Espaol : http://asp.net.do/foros/
======================================
"Amelyan" <bamelyan at wi.rr.com> wrote in message
news:eIrxPLW4FHA.2600@.tk2msftngp13.phx.gbl...
> Yes, that is how I am doing it.
> "Juan T. Llibre" <nomailreplies@.nowhere.com> wrote in message
> news:uKxQT5V4FHA.2872@.TK2MSFTNGP15.phx.gbl...
>
I just tried both suggestions. I am still experiencing delays in compiling
event if I include my DLL project inside my WEbSite solution and add it as
project reference.
"Juan T. Llibre" <nomailreplies@.nowhere.com> wrote in message
news:Omql1YW4FHA.2816@.tk2msftngp13.phx.gbl...
>I must have misunderstood what you meant when
> you stated "when external DLL is modified".
> I thought "external DLL" referred to a DLL outside your
> project since, otherwise, it would be a "project DLL".
> So, to recap,
> 1. you have a web solution
> 2. you add the DLL solution to that solution
> 3. you compile the DLL and the web solution sequentially,
> from within the *same* solution
> or, do you
> 1. have a web solution
> 2. have a *different* solution for your DLL
> ( not included in your web solution)
> 3. You recompile the DLL
> 4. you recompile the web solution and that causes the problem you describe
> ?
>
> Juan T. Llibre, ASP.NET MVP
> ASP.NET FAQ : http://asp.net.do/faq/
> Foros de ASP.NET en Espaol : http://asp.net.do/foros/
> ======================================
> "Amelyan" <bamelyan at wi.rr.com> wrote in message
> news:eIrxPLW4FHA.2600@.tk2msftngp13.phx.gbl...
>
Amount of memory on you box? What kind of processor?
Have you checked CPU usage, disk swapping and memory usage during a compile?
What is this "simple" DLL doing?
Did you have a beta previously installed?
If so, are you sure you uninstalled everything completely (some betas
required manual steps to remove)?
There are a lot of variables in the mix, so it is hard to find a solution.
For me, the IDE is a bit slower than VS.NET, but not 3 minutes to compile
(more like a few extra seconds).
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
****************************************
*******
Think Outside the Box!
****************************************
*******
"Amelyan" <bamelyan at wi.rr.com> wrote in message
news:eHx9wrV4FHA.268@.TK2MSFTNGP10.phx.gbl...
> It takes VS 2005 1, 2, and somtimes 3 MINUTES to compile ASP.NET 2.0
> website when external DLL is modified. As a matter of fact, when I click
> 'Build', it looks like VS 2005 hangs for most of that time before it
> actually starts compiling. If I modify something inside WebSite project
> itself without modifying DLL, it takes few seconds to compile.
> Why? How can I control this behavior?
> I was able to reproduce this behavior by creating a simple WebSite and
> simple DLL that I reference from that WebSite project.
>
I have 2GHz processor with 512MB of memory. I never installed beta, I
installed VS2005 final release.
Simple HelloWorld.dll doesn't do much, contains a function that returns a
string.
It does take few extra seconds when I modify my WebSite project internally,
but when I modify external Helloworld.dll, that is what slows down
compilation.
I pulled up OutputWindow in VS2005 to watch the progress of compilation. I
noticed that 95% of that 2-3 minutes time is VS2005 is blocked (not
responding) sitting there with CPU utilization at 2%. Then when it actually
starts compiling, it compiles in normal time.
I guess, from my further observations, when I click the Build button, 95% of
the time VS2005 is doing something before it actually starts compiling
(maybe waiting for some resorse, and at that time not responding to any user
commands or menu clicks). When it actually starts compiling, it takes a few
seconds.
"Cowboy (Gregory A. Beamer)" <NoSpamMgbworld@.comcast.netNoSpamM> wrote in
message news:uotJK$X4FHA.4076@.TK2MSFTNGP15.phx.gbl...
> Amount of memory on you box? What kind of processor?
> Have you checked CPU usage, disk swapping and memory usage during a
> compile?
> What is this "simple" DLL doing?
> Did you have a beta previously installed?
> If so, are you sure you uninstalled everything completely (some betas
> required manual steps to remove)?
> There are a lot of variables in the mix, so it is hard to find a solution.
> For me, the IDE is a bit slower than VS.NET, but not 3 minutes to compile
> (more like a few extra seconds).
> --
> Gregory A. Beamer
> MVP; MCP: +I, SE, SD, DBA
> ****************************************
*******
> Think Outside the Box!
> ****************************************
*******
> "Amelyan" <bamelyan at wi.rr.com> wrote in message
> news:eHx9wrV4FHA.268@.TK2MSFTNGP10.phx.gbl...
>
Juan,
After further analysis, I noticed that when I click Build button, VS2005 is
doing something before it actually starts compiling and during this time I
see only 0-2% of cpu utilization, 95% of that 2 minute time VS2005 is in
that mode. At that time, VS2005 doesn't respond to any commands or menu
clicks.
When it actually start building (starting with 'Validating Web Site' message
in output window), it takes normal time, few seconds to build. And during
that actual build time, VS2005 responds to commands and menu clicks in a
normal way.
So, 95% of the time is between when I click Build button and when the build
process is actually starts, VS2005 spends in a "locked state" where it
doesn't even respond to commands or menu clicks, utilizing 0-2% of cpu.
Remember, that it only happens when my dll project is modified.
Thanks,
"Juan T. Llibre" <nomailreplies@.nowhere.com> wrote in message
news:Omql1YW4FHA.2816@.tk2msftngp13.phx.gbl...
>I must have misunderstood what you meant when
> you stated "when external DLL is modified".
> I thought "external DLL" referred to a DLL outside your
> project since, otherwise, it would be a "project DLL".
> So, to recap,
> 1. you have a web solution
> 2. you add the DLL solution to that solution
> 3. you compile the DLL and the web solution sequentially,
> from within the *same* solution
> or, do you
> 1. have a web solution
> 2. have a *different* solution for your DLL
> ( not included in your web solution)
> 3. You recompile the DLL
> 4. you recompile the web solution and that causes the problem you describe
> ?
>
> Juan T. Llibre, ASP.NET MVP
> ASP.NET FAQ : http://asp.net.do/faq/
> Foros de ASP.NET en Espaol : http://asp.net.do/foros/
> ======================================
> "Amelyan" <bamelyan at wi.rr.com> wrote in message
> news:eIrxPLW4FHA.2600@.tk2msftngp13.phx.gbl...
>

Takes VS 2005 *3 MINUTES* to compile ASP.NET 2.0 website

It takes VS 2005 1, 2, and somtimes 3 MINUTES to compile ASP.NET 2.0 website
when external DLL is modified. As a matter of fact, when I click 'Build',
it looks like VS 2005 hangs for most of that time before it actually starts
compiling. If I modify something inside WebSite project itself without
modifying DLL, it takes few seconds to compile.

Why? How can I control this behavior?

I was able to reproduce this behavior by creating a simple WebSite and
simple DLL that I reference from that WebSite project.Amelyan,

you have posted this message 3 times now, and you accepted
that the explanation which was offered made sense.

But you have not said whether you tried the simple solution posted,
and whether it works or not.

Did you try it ? Does it work ?

Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
Foros de ASP.NET en Espaol : http://asp.net.do/foros/
======================================
"Amelyan" <bamelyan at wi.rr.com> wrote in message
news:eHx9wrV4FHA.268@.TK2MSFTNGP10.phx.gbl...
> It takes VS 2005 1, 2, and somtimes 3 MINUTES to compile ASP.NET 2.0 website when
> external DLL is modified. As a matter of fact, when I click 'Build', it looks like VS
> 2005 hangs for most of that time before it actually starts compiling. If I modify
> something inside WebSite project itself without modifying DLL, it takes few seconds to
> compile.
> Why? How can I control this behavior?
> I was able to reproduce this behavior by creating a simple WebSite and simple DLL that I
> reference from that WebSite project.
Juan,

Yes, I tried the your suggestion. When I remove the old DLL and re-add it
to references every time compile, this process takes even longer. So, this
solution is useless.

"Juan T. Llibre" <nomailreplies@.nowhere.com> wrote in message
news:%23g1x5yV4FHA.2364@.TK2MSFTNGP12.phx.gbl...
> Amelyan,
> you have posted this message 3 times now, and you accepted
> that the explanation which was offered made sense.
> But you have not said whether you tried the simple solution posted,
> and whether it works or not.
> Did you try it ? Does it work ?
>
>
> Juan T. Llibre, ASP.NET MVP
> ASP.NET FAQ : http://asp.net.do/faq/
> Foros de ASP.NET en Espaol : http://asp.net.do/foros/
> ======================================
> "Amelyan" <bamelyan at wi.rr.com> wrote in message
> news:eHx9wrV4FHA.268@.TK2MSFTNGP10.phx.gbl...
>> It takes VS 2005 1, 2, and somtimes 3 MINUTES to compile ASP.NET 2.0
>> website when external DLL is modified. As a matter of fact, when I click
>> 'Build', it looks like VS 2005 hangs for most of that time before it
>> actually starts compiling. If I modify something inside WebSite project
>> itself without modifying DLL, it takes few seconds to compile.
>>
>> Why? How can I control this behavior?
>>
>> I was able to reproduce this behavior by creating a simple WebSite and
>> simple DLL that I reference from that WebSite project.
>>
Have you tried compiling the assembly from within VS ?

Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
Foros de ASP.NET en Espaol : http://asp.net.do/foros/
======================================
"Amelyan" <bamelyan at wi.rr.com> wrote in message
news:eVrkx2V4FHA.4076@.TK2MSFTNGP15.phx.gbl...
> Juan,
> Yes, I tried the your suggestion. When I remove the old DLL and re-add it to references
> every time compile, this process takes even longer. So, this solution is useless.
>
> "Juan T. Llibre" <nomailreplies@.nowhere.com> wrote in message
> news:%23g1x5yV4FHA.2364@.TK2MSFTNGP12.phx.gbl...
>> Amelyan,
>>
>> you have posted this message 3 times now, and you accepted
>> that the explanation which was offered made sense.
>>
>> But you have not said whether you tried the simple solution posted,
>> and whether it works or not.
>>
>> Did you try it ? Does it work ?
>>
>>
>>
>>
>> Juan T. Llibre, ASP.NET MVP
>> ASP.NET FAQ : http://asp.net.do/faq/
>> Foros de ASP.NET en Espaol : http://asp.net.do/foros/
>> ======================================
>> "Amelyan" <bamelyan at wi.rr.com> wrote in message
>> news:eHx9wrV4FHA.268@.TK2MSFTNGP10.phx.gbl...
>>> It takes VS 2005 1, 2, and somtimes 3 MINUTES to compile ASP.NET 2.0 website when
>>> external DLL is modified. As a matter of fact, when I click 'Build', it looks like VS
>>> 2005 hangs for most of that time before it actually starts compiling. If I modify
>>> something inside WebSite project itself without modifying DLL, it takes few seconds to
>>> compile.
>>>
>>> Why? How can I control this behavior?
>>>
>>> I was able to reproduce this behavior by creating a simple WebSite and simple DLL that
>>> I reference from that WebSite project.
>>>
>>
>>
Yes, that is how I am doing it.

"Juan T. Llibre" <nomailreplies@.nowhere.com> wrote in message
news:uKxQT5V4FHA.2872@.TK2MSFTNGP15.phx.gbl...
> Have you tried compiling the assembly from within VS ?
>
> Juan T. Llibre, ASP.NET MVP
> ASP.NET FAQ : http://asp.net.do/faq/
> Foros de ASP.NET en Espaol : http://asp.net.do/foros/
> ======================================
> "Amelyan" <bamelyan at wi.rr.com> wrote in message
> news:eVrkx2V4FHA.4076@.TK2MSFTNGP15.phx.gbl...
>> Juan,
>>
>> Yes, I tried the your suggestion. When I remove the old DLL and re-add
>> it to references every time compile, this process takes even longer. So,
>> this solution is useless.
>>
>>
>>
>> "Juan T. Llibre" <nomailreplies@.nowhere.com> wrote in message
>> news:%23g1x5yV4FHA.2364@.TK2MSFTNGP12.phx.gbl...
>>> Amelyan,
>>>
>>> you have posted this message 3 times now, and you accepted
>>> that the explanation which was offered made sense.
>>>
>>> But you have not said whether you tried the simple solution posted,
>>> and whether it works or not.
>>>
>>> Did you try it ? Does it work ?
>>>
>>>
>>>
>>>
>>> Juan T. Llibre, ASP.NET MVP
>>> ASP.NET FAQ : http://asp.net.do/faq/
>>> Foros de ASP.NET en Espaol : http://asp.net.do/foros/
>>> ======================================
>>> "Amelyan" <bamelyan at wi.rr.com> wrote in message
>>> news:eHx9wrV4FHA.268@.TK2MSFTNGP10.phx.gbl...
>>>> It takes VS 2005 1, 2, and somtimes 3 MINUTES to compile ASP.NET 2.0
>>>> website when external DLL is modified. As a matter of fact, when I
>>>> click 'Build', it looks like VS 2005 hangs for most of that time before
>>>> it actually starts compiling. If I modify something inside WebSite
>>>> project itself without modifying DLL, it takes few seconds to compile.
>>>>
>>>> Why? How can I control this behavior?
>>>>
>>>> I was able to reproduce this behavior by creating a simple WebSite and
>>>> simple DLL that I reference from that WebSite project.
>>>>
>>>
>>>
>>
>>
I must have misunderstood what you meant when
you stated "when external DLL is modified".

I thought "external DLL" referred to a DLL outside your
project since, otherwise, it would be a "project DLL".

So, to recap,

1. you have a web solution
2. you add the DLL solution to that solution
3. you compile the DLL and the web solution sequentially,
from within the *same* solution

or, do you

1. have a web solution
2. have a *different* solution for your DLL
( not included in your web solution)
3. You recompile the DLL
4. you recompile the web solution and that causes the problem you describe

?

Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
Foros de ASP.NET en Espaol : http://asp.net.do/foros/
======================================
"Amelyan" <bamelyan at wi.rr.com> wrote in message
news:eIrxPLW4FHA.2600@.tk2msftngp13.phx.gbl...
> Yes, that is how I am doing it.
> "Juan T. Llibre" <nomailreplies@.nowhere.com> wrote in message
> news:uKxQT5V4FHA.2872@.TK2MSFTNGP15.phx.gbl...
>> Have you tried compiling the assembly from within VS ?
>>
>>
>>
>> Juan T. Llibre, ASP.NET MVP
>> ASP.NET FAQ : http://asp.net.do/faq/
>> Foros de ASP.NET en Espaol : http://asp.net.do/foros/
>> ======================================
>> "Amelyan" <bamelyan at wi.rr.com> wrote in message
>> news:eVrkx2V4FHA.4076@.TK2MSFTNGP15.phx.gbl...
>>> Juan,
>>>
>>> Yes, I tried the your suggestion. When I remove the old DLL and re-add it to
>>> references every time compile, this process takes even longer. So, this solution is
>>> useless.
>>>
>>>
>>>
>>> "Juan T. Llibre" <nomailreplies@.nowhere.com> wrote in message
>>> news:%23g1x5yV4FHA.2364@.TK2MSFTNGP12.phx.gbl...
>>>> Amelyan,
>>>>
>>>> you have posted this message 3 times now, and you accepted
>>>> that the explanation which was offered made sense.
>>>>
>>>> But you have not said whether you tried the simple solution posted,
>>>> and whether it works or not.
>>>>
>>>> Did you try it ? Does it work ?
>>>>
>>>>
>>>>
>>>>
>>>> Juan T. Llibre, ASP.NET MVP
>>>> ASP.NET FAQ : http://asp.net.do/faq/
>>>> Foros de ASP.NET en Espaol : http://asp.net.do/foros/
>>>> ======================================
>>>> "Amelyan" <bamelyan at wi.rr.com> wrote in message
>>>> news:eHx9wrV4FHA.268@.TK2MSFTNGP10.phx.gbl...
>>>>> It takes VS 2005 1, 2, and somtimes 3 MINUTES to compile ASP.NET 2.0 website when
>>>>> external DLL is modified. As a matter of fact, when I click 'Build', it looks like
>>>>> VS 2005 hangs for most of that time before it actually starts compiling. If I
>>>>> modify something inside WebSite project itself without modifying DLL, it takes few
>>>>> seconds to compile.
>>>>>
>>>>> Why? How can I control this behavior?
>>>>>
>>>>> I was able to reproduce this behavior by creating a simple WebSite and simple DLL
>>>>> that I reference from that WebSite project.
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
I just tried both suggestions. I am still experiencing delays in compiling
event if I include my DLL project inside my WEbSite solution and add it as
project reference.

"Juan T. Llibre" <nomailreplies@.nowhere.com> wrote in message
news:Omql1YW4FHA.2816@.tk2msftngp13.phx.gbl...
>I must have misunderstood what you meant when
> you stated "when external DLL is modified".
> I thought "external DLL" referred to a DLL outside your
> project since, otherwise, it would be a "project DLL".
> So, to recap,
> 1. you have a web solution
> 2. you add the DLL solution to that solution
> 3. you compile the DLL and the web solution sequentially,
> from within the *same* solution
> or, do you
> 1. have a web solution
> 2. have a *different* solution for your DLL
> ( not included in your web solution)
> 3. You recompile the DLL
> 4. you recompile the web solution and that causes the problem you describe
> ?
>
> Juan T. Llibre, ASP.NET MVP
> ASP.NET FAQ : http://asp.net.do/faq/
> Foros de ASP.NET en Espaol : http://asp.net.do/foros/
> ======================================
> "Amelyan" <bamelyan at wi.rr.com> wrote in message
> news:eIrxPLW4FHA.2600@.tk2msftngp13.phx.gbl...
>> Yes, that is how I am doing it.
>>
>> "Juan T. Llibre" <nomailreplies@.nowhere.com> wrote in message
>> news:uKxQT5V4FHA.2872@.TK2MSFTNGP15.phx.gbl...
>>> Have you tried compiling the assembly from within VS ?
>>>
>>>
>>>
>>> Juan T. Llibre, ASP.NET MVP
>>> ASP.NET FAQ : http://asp.net.do/faq/
>>> Foros de ASP.NET en Espaol : http://asp.net.do/foros/
>>> ======================================
>>> "Amelyan" <bamelyan at wi.rr.com> wrote in message
>>> news:eVrkx2V4FHA.4076@.TK2MSFTNGP15.phx.gbl...
>>>> Juan,
>>>>
>>>> Yes, I tried the your suggestion. When I remove the old DLL and re-add
>>>> it to references every time compile, this process takes even longer.
>>>> So, this solution is useless.
>>>>
>>>>
>>>>
>>>> "Juan T. Llibre" <nomailreplies@.nowhere.com> wrote in message
>>>> news:%23g1x5yV4FHA.2364@.TK2MSFTNGP12.phx.gbl...
>>>>> Amelyan,
>>>>>
>>>>> you have posted this message 3 times now, and you accepted
>>>>> that the explanation which was offered made sense.
>>>>>
>>>>> But you have not said whether you tried the simple solution posted,
>>>>> and whether it works or not.
>>>>>
>>>>> Did you try it ? Does it work ?
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> Juan T. Llibre, ASP.NET MVP
>>>>> ASP.NET FAQ : http://asp.net.do/faq/
>>>>> Foros de ASP.NET en Espaol : http://asp.net.do/foros/
>>>>> ======================================
>>>>> "Amelyan" <bamelyan at wi.rr.com> wrote in message
>>>>> news:eHx9wrV4FHA.268@.TK2MSFTNGP10.phx.gbl...
>>>>>> It takes VS 2005 1, 2, and somtimes 3 MINUTES to compile ASP.NET 2.0
>>>>>> website when external DLL is modified. As a matter of fact, when I
>>>>>> click 'Build', it looks like VS 2005 hangs for most of that time
>>>>>> before it actually starts compiling. If I modify something inside
>>>>>> WebSite project itself without modifying DLL, it takes few seconds to
>>>>>> compile.
>>>>>>
>>>>>> Why? How can I control this behavior?
>>>>>>
>>>>>> I was able to reproduce this behavior by creating a simple WebSite
>>>>>> and simple DLL that I reference from that WebSite project.
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
Amount of memory on you box? What kind of processor?

Have you checked CPU usage, disk swapping and memory usage during a compile?

What is this "simple" DLL doing?

Did you have a beta previously installed?

If so, are you sure you uninstalled everything completely (some betas
required manual steps to remove)?

There are a lot of variables in the mix, so it is hard to find a solution.
For me, the IDE is a bit slower than VS.NET, but not 3 minutes to compile
(more like a few extra seconds).

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***********************************************
Think Outside the Box!
***********************************************
"Amelyan" <bamelyan at wi.rr.com> wrote in message
news:eHx9wrV4FHA.268@.TK2MSFTNGP10.phx.gbl...
> It takes VS 2005 1, 2, and somtimes 3 MINUTES to compile ASP.NET 2.0
> website when external DLL is modified. As a matter of fact, when I click
> 'Build', it looks like VS 2005 hangs for most of that time before it
> actually starts compiling. If I modify something inside WebSite project
> itself without modifying DLL, it takes few seconds to compile.
> Why? How can I control this behavior?
> I was able to reproduce this behavior by creating a simple WebSite and
> simple DLL that I reference from that WebSite project.
I have 2GHz processor with 512MB of memory. I never installed beta, I
installed VS2005 final release.

Simple HelloWorld.dll doesn't do much, contains a function that returns a
string.

It does take few extra seconds when I modify my WebSite project internally,
but when I modify external Helloworld.dll, that is what slows down
compilation.

I pulled up OutputWindow in VS2005 to watch the progress of compilation. I
noticed that 95% of that 2-3 minutes time is VS2005 is blocked (not
responding) sitting there with CPU utilization at 2%. Then when it actually
starts compiling, it compiles in normal time.

I guess, from my further observations, when I click the Build button, 95% of
the time VS2005 is doing something before it actually starts compiling
(maybe waiting for some resorse, and at that time not responding to any user
commands or menu clicks). When it actually starts compiling, it takes a few
seconds.

"Cowboy (Gregory A. Beamer)" <NoSpamMgbworld@.comcast.netNoSpamM> wrote in
message news:uotJK$X4FHA.4076@.TK2MSFTNGP15.phx.gbl...
> Amount of memory on you box? What kind of processor?
> Have you checked CPU usage, disk swapping and memory usage during a
> compile?
> What is this "simple" DLL doing?
> Did you have a beta previously installed?
> If so, are you sure you uninstalled everything completely (some betas
> required manual steps to remove)?
> There are a lot of variables in the mix, so it is hard to find a solution.
> For me, the IDE is a bit slower than VS.NET, but not 3 minutes to compile
> (more like a few extra seconds).
> --
> Gregory A. Beamer
> MVP; MCP: +I, SE, SD, DBA
> ***********************************************
> Think Outside the Box!
> ***********************************************
> "Amelyan" <bamelyan at wi.rr.com> wrote in message
> news:eHx9wrV4FHA.268@.TK2MSFTNGP10.phx.gbl...
>> It takes VS 2005 1, 2, and somtimes 3 MINUTES to compile ASP.NET 2.0
>> website when external DLL is modified. As a matter of fact, when I click
>> 'Build', it looks like VS 2005 hangs for most of that time before it
>> actually starts compiling. If I modify something inside WebSite project
>> itself without modifying DLL, it takes few seconds to compile.
>>
>> Why? How can I control this behavior?
>>
>> I was able to reproduce this behavior by creating a simple WebSite and
>> simple DLL that I reference from that WebSite project.
>>
Juan,

After further analysis, I noticed that when I click Build button, VS2005 is
doing something before it actually starts compiling and during this time I
see only 0-2% of cpu utilization, 95% of that 2 minute time VS2005 is in
that mode. At that time, VS2005 doesn't respond to any commands or menu
clicks.

When it actually start building (starting with 'Validating Web Site' message
in output window), it takes normal time, few seconds to build. And during
that actual build time, VS2005 responds to commands and menu clicks in a
normal way.

So, 95% of the time is between when I click Build button and when the build
process is actually starts, VS2005 spends in a "locked state" where it
doesn't even respond to commands or menu clicks, utilizing 0-2% of cpu.

Remember, that it only happens when my dll project is modified.

Thanks,

"Juan T. Llibre" <nomailreplies@.nowhere.com> wrote in message
news:Omql1YW4FHA.2816@.tk2msftngp13.phx.gbl...
>I must have misunderstood what you meant when
> you stated "when external DLL is modified".
> I thought "external DLL" referred to a DLL outside your
> project since, otherwise, it would be a "project DLL".
> So, to recap,
> 1. you have a web solution
> 2. you add the DLL solution to that solution
> 3. you compile the DLL and the web solution sequentially,
> from within the *same* solution
> or, do you
> 1. have a web solution
> 2. have a *different* solution for your DLL
> ( not included in your web solution)
> 3. You recompile the DLL
> 4. you recompile the web solution and that causes the problem you describe
> ?
>
> Juan T. Llibre, ASP.NET MVP
> ASP.NET FAQ : http://asp.net.do/faq/
> Foros de ASP.NET en Espaol : http://asp.net.do/foros/
> ======================================
> "Amelyan" <bamelyan at wi.rr.com> wrote in message
> news:eIrxPLW4FHA.2600@.tk2msftngp13.phx.gbl...
>> Yes, that is how I am doing it.
>>
>> "Juan T. Llibre" <nomailreplies@.nowhere.com> wrote in message
>> news:uKxQT5V4FHA.2872@.TK2MSFTNGP15.phx.gbl...
>>> Have you tried compiling the assembly from within VS ?
>>>
>>>
>>>
>>> Juan T. Llibre, ASP.NET MVP
>>> ASP.NET FAQ : http://asp.net.do/faq/
>>> Foros de ASP.NET en Espaol : http://asp.net.do/foros/
>>> ======================================
>>> "Amelyan" <bamelyan at wi.rr.com> wrote in message
>>> news:eVrkx2V4FHA.4076@.TK2MSFTNGP15.phx.gbl...
>>>> Juan,
>>>>
>>>> Yes, I tried the your suggestion. When I remove the old DLL and re-add
>>>> it to references every time compile, this process takes even longer.
>>>> So, this solution is useless.
>>>>
>>>>
>>>>
>>>> "Juan T. Llibre" <nomailreplies@.nowhere.com> wrote in message
>>>> news:%23g1x5yV4FHA.2364@.TK2MSFTNGP12.phx.gbl...
>>>>> Amelyan,
>>>>>
>>>>> you have posted this message 3 times now, and you accepted
>>>>> that the explanation which was offered made sense.
>>>>>
>>>>> But you have not said whether you tried the simple solution posted,
>>>>> and whether it works or not.
>>>>>
>>>>> Did you try it ? Does it work ?
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> Juan T. Llibre, ASP.NET MVP
>>>>> ASP.NET FAQ : http://asp.net.do/faq/
>>>>> Foros de ASP.NET en Espaol : http://asp.net.do/foros/
>>>>> ======================================
>>>>> "Amelyan" <bamelyan at wi.rr.com> wrote in message
>>>>> news:eHx9wrV4FHA.268@.TK2MSFTNGP10.phx.gbl...
>>>>>> It takes VS 2005 1, 2, and somtimes 3 MINUTES to compile ASP.NET 2.0
>>>>>> website when external DLL is modified. As a matter of fact, when I
>>>>>> click 'Build', it looks like VS 2005 hangs for most of that time
>>>>>> before it actually starts compiling. If I modify something inside
>>>>>> WebSite project itself without modifying DLL, it takes few seconds to
>>>>>> compile.
>>>>>>
>>>>>> Why? How can I control this behavior?
>>>>>>
>>>>>> I was able to reproduce this behavior by creating a simple WebSite
>>>>>> and simple DLL that I reference from that WebSite project.
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
It sounds like maybe something in your solution is referencing a network
resource that is not available.

"Amelyan" <bamelyan@.wi.rr.com> wrote in message
news:uO7Ha5i4FHA.2552@.TK2MSFTNGP10.phx.gbl...
> I have 2GHz processor with 512MB of memory. I never installed beta, I
> installed VS2005 final release.
> Simple HelloWorld.dll doesn't do much, contains a function that returns a
> string.
> It does take few extra seconds when I modify my WebSite project
internally,
> but when I modify external Helloworld.dll, that is what slows down
> compilation.
> I pulled up OutputWindow in VS2005 to watch the progress of compilation.
I
> noticed that 95% of that 2-3 minutes time is VS2005 is blocked (not
> responding) sitting there with CPU utilization at 2%. Then when it
actually
> starts compiling, it compiles in normal time.
> I guess, from my further observations, when I click the Build button, 95%
of
> the time VS2005 is doing something before it actually starts compiling
> (maybe waiting for some resorse, and at that time not responding to any
user
> commands or menu clicks). When it actually starts compiling, it takes a
few
> seconds.
>
> "Cowboy (Gregory A. Beamer)" <NoSpamMgbworld@.comcast.netNoSpamM> wrote in
> message news:uotJK$X4FHA.4076@.TK2MSFTNGP15.phx.gbl...
> > Amount of memory on you box? What kind of processor?
> > Have you checked CPU usage, disk swapping and memory usage during a
> > compile?
> > What is this "simple" DLL doing?
> > Did you have a beta previously installed?
> > If so, are you sure you uninstalled everything completely (some betas
> > required manual steps to remove)?
> > There are a lot of variables in the mix, so it is hard to find a
solution.
> > For me, the IDE is a bit slower than VS.NET, but not 3 minutes to
compile
> > (more like a few extra seconds).
> > --
> > Gregory A. Beamer
> > MVP; MCP: +I, SE, SD, DBA
> > ***********************************************
> > Think Outside the Box!
> > ***********************************************
> > "Amelyan" <bamelyan at wi.rr.com> wrote in message
> > news:eHx9wrV4FHA.268@.TK2MSFTNGP10.phx.gbl...
> >> It takes VS 2005 1, 2, and somtimes 3 MINUTES to compile ASP.NET 2.0
> >> website when external DLL is modified. As a matter of fact, when I
click
> >> 'Build', it looks like VS 2005 hangs for most of that time before it
> >> actually starts compiling. If I modify something inside WebSite
project
> >> itself without modifying DLL, it takes few seconds to compile.
> >>
> >> Why? How can I control this behavior?
> >>
> >> I was able to reproduce this behavior by creating a simple WebSite and
> >> simple DLL that I reference from that WebSite project.
> >>

Taking a value from one window to another

I want to be able to allow a user to select a word from a list of words, but instead of using a drop down list, I want the user to click a button - which opens a new window containing the list of words, double click on the word (or words) selected, and the value of the word that was double clicked is automatically transferred to a text box in the previous (calling) window. Is this possible in ASP.NET?Passing data back to a parent window is entirely possible via lowly javascript - with or without ASP.NET server technology, but the user interaction method you have decided upon would be a little more unstable across browsers.
window.opener.document.getElementById('textbox1').value = "something";

Tuesday, March 13, 2012

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 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.

Targetting the frameset from the address bar

Hello fellows,
I have a Web application using frameset and frames. When I click in a
hyperlink button I can send the selected aspx page using the "target"
attribute into the selected frame. However when the aspx page is called from
IE address bar the page is loaded into the entire browser and not into the
frame I would like to. I tried to use the target attribute of the attribute
form but it does not work.
I noticed that when the page is called from the address bar the content of
"Request.UrlReferrer" is null but I do not find how to send this page into
the desired frame programmatically.
It would be appreciated if anybody knows how to redirect the page into the
frame.
Thanks in advance
PetePut this in the HEAD section of the subframe pages that people could try to
load without the main frameset page:

<SCRIPT LANGUAGE="JavaScript">
<!--

if (top.location.href.indexOf("frameset.aspx") == -1)
top.location.href = "frameset.aspx";

// -->
</SCRIPT>

Peter
--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com
"Pierre" wrote:

Quote:

Originally Posted by

Hello fellows,
I have a Web application using frameset and frames. When I click in a
hyperlink button I can send the selected aspx page using the "target"
attribute into the selected frame. However when the aspx page is called from
IE address bar the page is loaded into the entire browser and not into the
frame I would like to. I tried to use the target attribute of the attribute
form but it does not work.
I noticed that when the page is called from the address bar the content of
"Request.UrlReferrer" is null but I do not find how to send this page into
the desired frame programmatically.
It would be appreciated if anybody knows how to redirect the page into the
frame.
Thanks in advance
Pete


Thanks a lot Peter

After a dummy test with frameset I finally got what I need with your answer.

Regards,

Pete

"Peter Bromberg [C# MVP]" wrote:

Quote:

Originally Posted by

Put this in the HEAD section of the subframe pages that people could try to
load without the main frameset page:
>
<SCRIPT LANGUAGE="JavaScript">
<!--
>
if (top.location.href.indexOf("frameset.aspx") == -1)
top.location.href = "frameset.aspx";
>
// -->
</SCRIPT>
>
Peter
--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com
>
>
>
>
"Pierre" wrote:
>

Quote:

Originally Posted by

Hello fellows,
I have a Web application using frameset and frames. When I click in a
hyperlink button I can send the selected aspx page using the "target"
attribute into the selected frame. However when the aspx page is called from
IE address bar the page is loaded into the entire browser and not into the
frame I would like to. I tried to use the target attribute of the attribute
form but it does not work.
I noticed that when the page is called from the address bar the content of
"Request.UrlReferrer" is null but I do not find how to send this page into
the desired frame programmatically.
It would be appreciated if anybody knows how to redirect the page into the
frame.
Thanks in advance
Pete