25 new messages in 14 topics - digest


==============================================================================
TOPIC: IIS AppDoman environment
http://groups.google.com/group/microsoft.public.dotnet.framework.aspnet/browse_thread/thread/c7df55e786dcaf58?hl=en
==============================================================================

== 1 of 2 ==
Date: Sat, May 10 2008 11:46 pm
From: "Chris Bordeman"


During an IIS page request or service call, is a new AppDomain created, or
is the main AppDomain for the application pool used?

If the latter, does that mean that an assembly .LoadFrom() is redundant on
subsequent requests?





== 2 of 2 ==
Date: Sun, May 11 2008 2:39 am
From: "Teemu Keiski"


Hi,

AppDomain is created on the first request, when it's not yet up - one per
virtual directory. After that it's reused (unless shutdown/restarted for
some reason when of course its restarted/created).

Once assembly is loaded, there's no need /(way) load it again until
AppDomain restarts when assemblies need to be loaded again.

Following article covers all you ever need to know:

A low-level Look at the ASP.NET Architecture
http://www.west-wind.com/presentations/howaspnetworks/howaspnetworks.asp

--
Teemu Keiski
AspInsider, ASP.NET MVP
http://blogs.aspadvice.com/joteke
http://teemukeiski.net


"Chris Bordeman" <chrisbordeman@hotmail.com> wrote in message
news:OvUm5KzsIHA.1316@TK2MSFTNGP06.phx.gbl...
> During an IIS page request or service call, is a new AppDomain created, or
> is the main AppDomain for the application pool used?
>
> If the latter, does that mean that an assembly .LoadFrom() is redundant on
> subsequent requests?







==============================================================================
TOPIC: What do I need to develop SilverLight in MSVC2005
http://groups.google.com/group/microsoft.public.dotnet.framework.aspnet/browse_thread/thread/254b6e25deb4da41?hl=en
==============================================================================

== 1 of 1 ==
Date: Sun, May 11 2008 12:58 am
From: "m.a"


Thanks.
 I download and installed MSVC 2008 express (which is free) and then
download
Microsoft Silverlight Tools Beta 1 for Visual Studio 2008
but when I try to install silverlight, I am getting the error that msvc is
not installed or web authoring is not installed.
What is the problem?

Best regards

"Juan T. Llibre" <nomailreplies@nowhere.com> wrote in message
news:%23P8Vi8qsIHA.3780@TK2MSFTNGP03.phx.gbl...
> re:
> !>   I looked at the page but I could not find any download for MSVC 2005.
>
> You'll make your Silverlight life much easier if you install MSVC 2008.
>
> Download MSVC 2008 here :
> http://www.microsoft.com/express/download/
>
> It will coexist happily with your MSVC2005 installation.
>
> Then, download the Silverlight Tools/SDK at :
> http://silverlight.net/GetStarted/
>
>
>
>
>
> Juan T. Llibre, asp.net MVP
> asp.net faq : http://asp.net.do/faq/
> foros de asp.net, en espaƱol : http://asp.net.do/foros/
> ======================================
> "m.a" <ma.@spamoff.com> wrote in message
> news:XEhVj.37070$6a2.27403@newsfe17.ams2...
>> Thanks,
>>   I looked at the page but I could not find any download for MSVC 2005.
>> There is download for MSVC2008. Can you please help me?
>>
>> Regards
>>
>> "Michael Nemtsev [MVP]" <nemtsev@msn.com> wrote in message
>> news:900895ec3cbbf8ca810777a6b48c@msnews.microsoft.com...
>>> Hello m.a,
>>>
>>> You need Silverlight SDK for 1.1 version
>>> MS now aimed on 2.0 version for VS 2008
>>>
>>> http://silverlight.net/GetStarted/
>>>
>>> ---
>>> WBR, Michael  Nemtsev [.NET/C# MVP] :: blog:
>>> http://spaces.live.com/laflour
>>> "The greatest danger for most of us is not that our aim is too high and
>>> we miss it, but that it is too low and we reach it" (c) Michelangelo
>>>
>>> m> Hello,
>>> m> m> I have MSVC 2005 and I like to learn Silverlight. What do I need
>>> m> and can I get them free (It is just for learning so any restriction
>>> m> is acceptable)?
>>> m> m> is there any newsgroup about Silverlight?
>>> m> m> Regards
>>> m>
>>>
>>
>>
>
>







==============================================================================
TOPIC: Can't use some javascript from a .js file...
http://groups.google.com/group/microsoft.public.dotnet.framework.aspnet/browse_thread/thread/cd9f04c39d0fb5a9?hl=en
==============================================================================

== 1 of 2 ==
Date: Sun, May 11 2008 2:51 am
From: "Teemu Keiski"


For example:

Have this on your page:

var lb = document.getElementById('<%=LBFacilities.ClientID%>');

And following in your js file (which I suggest that you registrer with
Page.ClientScript.RegisterStartupScript so that setting the variable would
be *before* the script using the variable in page source.

function btnFirst_Click()
{
alert("Hello");
alert(lb.options.length);
return false;
 }
 </script>

If one thinks a bit further, say you have a large client-side library, it
would be wiser to use registration mechanism.

For example, your library would contain (e.g the js)

var lb = null;

function registerLb(lbToRegister)
{
   lb = lbToregister;
}

And again your page would use:

<script>registerLb(document.getElementById('<%=LBFacilities.ClientID%>'));</script>

somewhere. And library would use it:

function btnFirst_Click()
{
alert("Hello");
if(lb != null)
   alert(lb.options.length);
return false;
 }

or something like that. Of course it probably isn't that easy if you think
scenarios that multiple controls etc needs to be registered(when you'd
probably have array of them instead of one variable). On the other hand,
this was quite simple case when just the variable would work just fine.


--
Teemu Keiski
AspInsider, ASP.NET MVP
http://blogs.aspadvice.com/joteke
http://teemukeiski.net




"Matthew Wells" <Matthew.Wells@FirstByte.net> wrote in message
news:7fGdnZDwk-wMtrvVnZ2dnUVZ_t_inZ2d@comcast.com...
> so how do I do this?  I tried putting the variable at the top of the .js
> dile, at the top of the aspx file and using registerclientscriptblock.
>
> Any suggestions?
>
> Thanks.
>
> "Teemu Keiski" <joteke@aspalliance.com> wrote in message
> news:OvfrbhhsIHA.2292@TK2MSFTNGP03.phx.gbl...
>> Hi,
>>
>> That's because LBFacilities controls exists on aspx page, and on separate
>> js file it (<%=... %>) doesn't get through ASP.NET's processing and
>> therefore is returned literally what's on the js file
>>
>> e.g js file contains *literally*
>>
>> ...
>> alert(document.getElementById("<%=LBFacilities.ClientID%>").options.length);
>> ...
>>
>> If you use it that way, you need to set the LBFacilities somehow as
>> argument or on global js variable on the page which the js file
>> references (makes js though reliable on the existence of the control)
>>
>>
>> --
>> Teemu Keiski
>> AspInsider, ASP.NET MVP
>> http://blogs.aspadvice.com/joteke
>> http://teemukeiski.net
>>
>>
>> "Matthew Wells" <Matthew.Wells@FirstByte.net> wrote in message
>> news:K8qdnWwGFIUrDbnVnZ2dnUVZ_saknZ2d@comcast.com...
>>> OK, I've narrowed down the problem.  This works when in the aspx page
>>>
>>> <script type="text/javascript" >
>>> function btnFirst_Click()
>>> {
>>> alert("Hello");
>>> alert(document.getElementById("<%=LBFacilities.ClientID%>").options.length);
>>> return false;
>>> }
>>> </script>
>>>
>>> But when I put this in a .js file, I get the first "Hello", but the
>>> second statement fails.  I've put the
>>> <script type="text/javascript" src="Facilities.js" ></script>
>>>
>>> both on top and at the bottom of the aspx page.  No luck.
>>>
>>> How do I get this to work from a .js file?
>>>
>>> Thanks.
>>>
>>> --
>>> Matthew.Wells
>>> Matthew.Wells@FirstByte.net
>>>
>>
>>
>
>






== 2 of 2 ==
Date: Sun, May 11 2008 10:52 am
From: "Matthew Wells"


I'm afraid this didn't work.  I put this at the top of the aspx page:

<script type="text/javascript" >

var LB = document.getElementById("<% = LBFacilities.ClientID %>");

</script>

...which seemed to achieve the desired effect because this is what was in
the page source:

<script type="text/javascript" >
   var LB =
document.getElementById("ctl00_ContentPlaceHolder1_LBFacilities");
</script>

but the code still only does the first alert and fails on the second.

Like I said before, the code works if it's all in the aspx page.  What do I
need to do to get it to work in the .js file?  Using the RegisertLB didn't
work either.



"Teemu Keiski" <joteke@aspalliance.com> wrote in message
news:erlPVy0sIHA.1236@TK2MSFTNGP02.phx.gbl...
> For example:
>
> Have this on your page:
>
> var lb = document.getElementById('<%=LBFacilities.ClientID%>');
>
> And following in your js file (which I suggest that you registrer with
> Page.ClientScript.RegisterStartupScript so that setting the variable would
> be *before* the script using the variable in page source.
>
> function btnFirst_Click()
> {
> alert("Hello");
> alert(lb.options.length);
> return false;
> }
> </script>
>
> If one thinks a bit further, say you have a large client-side library, it
> would be wiser to use registration mechanism.
>
> For example, your library would contain (e.g the js)
>
> var lb = null;
>
> function registerLb(lbToRegister)
> {
>    lb = lbToregister;
> }
>
> And again your page would use:
>
> <script>registerLb(document.getElementById('<%=LBFacilities.ClientID%>'));</script>
>
> somewhere. And library would use it:
>
> function btnFirst_Click()
> {
> alert("Hello");
> if(lb != null)
>    alert(lb.options.length);
> return false;
> }
>
> or something like that. Of course it probably isn't that easy if you think
> scenarios that multiple controls etc needs to be registered(when you'd
> probably have array of them instead of one variable). On the other hand,
> this was quite simple case when just the variable would work just fine.
>
>
> --
> Teemu Keiski
> AspInsider, ASP.NET MVP
> http://blogs.aspadvice.com/joteke
> http://teemukeiski.net
>
>
>
>
> "Matthew Wells" <Matthew.Wells@FirstByte.net> wrote in message
> news:7fGdnZDwk-wMtrvVnZ2dnUVZ_t_inZ2d@comcast.com...
>> so how do I do this?  I tried putting the variable at the top of the .js
>> dile, at the top of the aspx file and using registerclientscriptblock.
>>
>> Any suggestions?
>>
>> Thanks.
>>
>> "Teemu Keiski" <joteke@aspalliance.com> wrote in message
>> news:OvfrbhhsIHA.2292@TK2MSFTNGP03.phx.gbl...
>>> Hi,
>>>
>>> That's because LBFacilities controls exists on aspx page, and on
>>> separate js file it (<%=... %>) doesn't get through ASP.NET's processing
>>> and therefore is returned literally what's on the js file
>>>
>>> e.g js file contains *literally*
>>>
>>> ...
>>> alert(document.getElementById("<%=LBFacilities.ClientID%>").options.length);
>>> ...
>>>
>>> If you use it that way, you need to set the LBFacilities somehow as
>>> argument or on global js variable on the page which the js file
>>> references (makes js though reliable on the existence of the control)
>>>
>>>
>>> --
>>> Teemu Keiski
>>> AspInsider, ASP.NET MVP
>>> http://blogs.aspadvice.com/joteke
>>> http://teemukeiski.net
>>>
>>>
>>> "Matthew Wells" <Matthew.Wells@FirstByte.net> wrote in message
>>> news:K8qdnWwGFIUrDbnVnZ2dnUVZ_saknZ2d@comcast.com...
>>>> OK, I've narrowed down the problem.  This works when in the aspx page
>>>>
>>>> <script type="text/javascript" >
>>>> function btnFirst_Click()
>>>> {
>>>> alert("Hello");
>>>> alert(document.getElementById("<%=LBFacilities.ClientID%>").options.length);
>>>> return false;
>>>> }
>>>> </script>
>>>>
>>>> But when I put this in a .js file, I get the first "Hello", but the
>>>> second statement fails.  I've put the
>>>> <script type="text/javascript" src="Facilities.js" ></script>
>>>>
>>>> both on top and at the bottom of the aspx page.  No luck.
>>>>
>>>> How do I get this to work from a .js file?
>>>>
>>>> Thanks.
>>>>
>>>> --
>>>> Matthew.Wells
>>>> Matthew.Wells@FirstByte.net
>>>>
>>>
>>>
>>
>>
>
>







==============================================================================
TOPIC: compaints about the VS.net 2008 editor
http://groups.google.com/group/microsoft.public.dotnet.framework.aspnet/browse_thread/thread/6fc1ea08376aa7a1?hl=en
==============================================================================

== 1 of 2 ==
Date: Sun, May 11 2008 4:07 am
From: "Teemu Keiski"


The hotfix Michael mentioned  is specifically described at:
http://weblogs.asp.net/scottgu/archive/2008/02/08/vs-2008-web-development-hot-fix-roll-up-available.aspx

and you can download it from:
https://connect.microsoft.com/VisualStudio/Downloads/DownloadDetails.aspx?DownloadID=10826

--
Teemu Keiski
AspInsider, ASP.NET MVP
http://blogs.aspadvice.com/joteke
http://teemukeiski.net


"Cirene" <cirene@nowhere.com> wrote in message
news:OxIwkepsIHA.5872@TK2MSFTNGP04.phx.gbl...
> It seems like the VS.net 2008 editor is slow and buggy.  Have you found
> this to be the case?
>
> A few times I am working and all of a sudden all my images are stretched
> funny.  I find out that behind the seens it modified the img tag width in
> my css file.
>
> Also, when dealing in split view with a page that is using a master page,
> it seems slow and getting the properties to show up is a task.
>
> Any thoughts?
>






== 2 of 2 ==
Date: Sun, May 11 2008 4:21 am
From: "Mark Rae [MVP]"


"Teemu Keiski" <joteke@aspalliance.com> wrote in message
news:%23$OJEd1sIHA.2064@TK2MSFTNGP05.phx.gbl...

> The hotfix Michael mentioned  is specifically described at:
> http://weblogs.asp.net/scottgu/archive/2008/02/08/vs-2008-web-development-hot-fix-roll-up-available.aspx
>
> and you can download it from:
> https://connect.microsoft.com/VisualStudio/Downloads/DownloadDetails.aspx?DownloadID=10826

This, together with a whole host of other fixes and enhancements, will be
included in the forthcoming SP1 for .NET 3.5 / VS.NET 2008.

It's already in beta pre-release - don't know for certain when it will be
available to everyone, but Microsoft are talking about a "short feedback
window"...


--
Mark Rae
ASP.NET MVP
http://www.markrae.net






==============================================================================
TOPIC: what's wrong with xml post code?
http://groups.google.com/group/microsoft.public.dotnet.framework.aspnet/browse_thread/thread/d98426cbcc9b98bc?hl=en
==============================================================================

== 1 of 1 ==
Date: Sun, May 11 2008 5:35 am
From: Alex Meleta


Hi Cindy,

Did you try to see what are the records in EventLog for ASPNET? Sure it gives
you the answer (or at least nearest envestigation point)?

Regards, Alex



C> Hi
C> Trying to get this code to work for http xml post.
C> I need the post to be xml (doc.outerxml) sent in single key name as
C> stream.
C> The following is the post code and code for receiving the request.
C> When it hits the "myresponse = myrequest.GetResponse()" in the post
C> code -
C> I'm getting following error:
C> "The remote server returned an error: (500) Internal Server Error".
C> I don't know if I have something wrong with the post or receiving it
C> on the
C> other end.
C







==============================================================================
TOPIC: Server Button in Grid View with 2 parameters
http://groups.google.com/group/microsoft.public.dotnet.framework.aspnet/browse_thread/thread/64b2e3fc3409cf67?hl=en
==============================================================================

== 1 of 3 ==
Date: Sun, May 11 2008 6:25 am
From: mik


 I've a grid view with a Server Button, I know how to send a single
value of the row, but How Can I manage 2 parameters (of the row)??

 </asp:BoundField>
            <asp:TemplateField HeaderText="Scadute">
                <ItemTemplate>

 <asp:Button ID="btnOggi" runat="Server" CommandArgument='<%#
Eval("ID") %>' OnClick="gwDettaglio_Click" Text='<%# Eval("ID") %>'
Width="60px" />
...


        protected void gwDettaglio_Click(object sender, EventArgs e)
        {
            string IDAttivitaTipo;
            IDAttivitaTipo =
Convert.ToString(((Button)sender).CommandArgument);




How Can I manage 2 differents variables in my  code behind page?


Thanks




== 2 of 3 ==
Date: Sun, May 11 2008 6:52 am
From: "Mark Rae [MVP]"


"mik" <mik@nomail.it> wrote in message
news:uo2dYq2sIHA.1220@TK2MSFTNGP04.phx.gbl...

> How Can I manage 2 differents variables in my  code behind page?

<asp:Button ID="btnOggi" runat="server" CommandName='<%# Eval("Whatever")%>'
CommandArgument='<%# Eval("ID") %>' OnCommand="gwDettaglio_Command"
Text='<%# Eval("ID") %>' Width="60px" />

protected void gwDettaglio_Command(object sender, CommandEventArgs e)
{
   Whatever = e.CommandName;
   IDAttivitaTipo = e.CommandArgument;
}


--
Mark Rae
ASP.NET MVP
http://www.markrae.net





== 3 of 3 ==
Date: Sun, May 11 2008 7:46 am
From: mik



> protected void gwDettaglio_Command(object sender, CommandEventArgs e)
> {
>    Whatever = e.CommandName;
>    IDAttivitaTipo = e.CommandArgument;
> }
>


Greeeeat!! Thanks for help me!!!!





==============================================================================
TOPIC: GridView with DDL and selected value
http://groups.google.com/group/microsoft.public.dotnet.framework.aspnet/browse_thread/thread/1f2fd89abb7eb67e?hl=en
==============================================================================

== 1 of 4 ==
Date: Sun, May 11 2008 6:26 am
From: mik


I've a gridview with a DDL in each row and  I would like allow the user
to open a new page (using a server button, image button, hyperlink...
this isn't a problem) with the selected value of the DDL of the row



I've tried with a a hyperlink... but I don't know how to use the
selected value of the row


        <asp:TemplateField HeaderText="Det" SortExpression="Data">
                <ItemTemplate>
                    <div align="center"><a
href='javascript:fullscreen("Page.aspx....????????????")'><img
src="toolbar/add.gif" border="0"></a></div>
                </ItemTemplate>
                <HeaderStyle CssClass="Testo8" BackColor="#00005D" />
                <ItemStyle Width="30px" />
             </asp:TemplateField>
             <asp:TemplateField HeaderText="RGP" SortExpression="Data">
                <ItemTemplate>
                    <div align="left">
                        <asp:DropDownList ID="ddlProssimaOwner"
runat="server" CssClass="Text11" />
                    </div>
                </ItemTemplate>
                <HeaderStyle CssClass="Testo8" BackColor="#00005D" />
             </asp:TemplateField>



Thanks for help me!




== 2 of 4 ==
Date: Sun, May 11 2008 7:11 am
From: "Mark Rae [MVP]"


"mik" <mik@nomail.it> wrote in message
news:OXAfLr2sIHA.1220@TK2MSFTNGP04.phx.gbl...

> I've a gridview with a DDL in each row and  I would like allow the user to
> open a new page (using a server button, image button, hyperlink... this
> isn't a problem)

When you say a "server" button, I presume you're referring to the
<asp:Button /> webcontrol...?

> with the selected value of the DDL of the row

Next question: when you say "open a new page", do you actually mean opening
a new page in a separate browser window, or do you mean redirect to another
page...?


--
Mark Rae
ASP.NET MVP
http://www.markrae.net





== 3 of 4 ==
Date: Sun, May 11 2008 7:45 am
From: mik



> When you say a "server" button, I presume you're referring to the
> <asp:Button /> webcontrol...?

I Can use all object... I would like only open a page with the selected
value you can you the objact that you prefer ;-))))


> Next question: when you say "open a new page", do you actually mean
> opening a new page in a separate browser window, or do you mean redirect
> to another page...?

I would like to open a PopUp (or a browser windows) with the
selectedvalue of the DDL of the row

Thanks for help me!!!




== 4 of 4 ==
Date: Sun, May 11 2008 9:22 am
From: "Mark Rae [MVP]"


"mik" <mik@nomail.it> wrote in message
news:O7E7ZX3sIHA.3680@TK2MSFTNGP05.phx.gbl...

>> When you say a "server" button, I presume you're referring to the
>> <asp:Button /> webcontrol...?
>
> I Can use all object... I would like only open a page with the selected
> value you can you the objact that you prefer ;-))))

Apologies - I appreciate that English isn't your first language, but I have
no idea what that means...

>> Next question: when you say "open a new page", do you actually mean
>> opening a new page in a separate browser window, or do you mean redirect
>> to another page...?
>
> I would like to open a PopUp (or a browser windows) with the selectedvalue
> of the DDL of the row

ddlProssimaOwner.Attributes.Add("onchange",
"window.open('MyOtherWindow.aspx?ID=' + this.value);");


--
Mark Rae
ASP.NET MVP
http://www.markrae.net






==============================================================================
TOPIC: Get file from web site
http://groups.google.com/group/microsoft.public.dotnet.framework.aspnet/browse_thread/thread/c2c31323dfed8d74?hl=en
==============================================================================

== 1 of 2 ==
Date: Sun, May 11 2008 7:31 am
From: Husam


Hi everybody:

How can I got a file from an internet web site and safe it into my web site
like what happen in a lot of web site that can get the files from youtube.com?

any help will be appreciated regard's

Husam




== 2 of 2 ==
Date: Sun, May 11 2008 9:42 am
From: Alex Meleta


Hi Husam,

You need to download file from a site (see, WebClient, http://msdn.microsoft.com/en-us/library/system.net.webclient(VS.80).aspx)
and make it available on your side (persist on file or db) - provide web
interface to retrieve from the storage under file type.

Regards, Alex
[TechBlog] http://devkids.blogspot.com



H> Hi everybody:
H>
H> How can I got a file from an internet web site and safe it into my
H> web site like what happen in a lot of web site that can get the files
H> from youtube.com?
H>
H> any help will be appreciated regard's
H>
H> Husam
H>







==============================================================================
TOPIC: Cannot turn IsApproved False
http://groups.google.com/group/microsoft.public.dotnet.framework.aspnet/browse_thread/thread/08ef70d399f33bc6?hl=en
==============================================================================

== 1 of 2 ==
Date: Sun, May 11 2008 7:41 am
From: "Cirene"


Here's my code:

Dim usr As MembershipUser =
Membership.GetUser(CType(CType(fvPosterInfo.FindControl("UserNameLabel"),
Label).Text, String))
usr.IsApproved = False

After I set usr.IsApproved it takes ok, but when I check the
aspnet_Membership table the IsApproved is still True!  Am I doing this
right????






== 2 of 2 ==
Date: Sun, May 11 2008 11:14 am
From: "Cirene"


FYI:  i had to do this...

Membership.UpdateUser(usr)

:)

"Cirene" <cirene@nowhere.com> wrote in message
news:%23gh6gU3sIHA.4376@TK2MSFTNGP06.phx.gbl...
> Here's my code:
>
> Dim usr As MembershipUser =
> Membership.GetUser(CType(CType(fvPosterInfo.FindControl("UserNameLabel"),
> Label).Text, String))
> usr.IsApproved = False
>
> After I set usr.IsApproved it takes ok, but when I check the
> aspnet_Membership table the IsApproved is still True!  Am I doing this
> right????
>







==============================================================================
TOPIC: DDL fill and select value in gridview
http://groups.google.com/group/microsoft.public.dotnet.framework.aspnet/browse_thread/thread/371dc224495a7029?hl=en
==============================================================================

== 1 of 1 ==
Date: Sun, May 11 2008 7:47 am
From: mik


 Hi, How Can I fill a DDL in a grid view?



       <asp:TemplateField HeaderText="AAA" SortExpression="AAA">
                        <ItemTemplate>
                            <div align="left">
                                <asp:DropDownList ID="ddlPorssima"
runat="server" CssClass="Text11" />
                            </div>
                        </ItemTemplate>
                        <HeaderStyle CssClass="Testo8" />
                     </asp:TemplateField>


and How Can I SelectValue of the DDLs of each row??

Thanks





==============================================================================
TOPIC: can I install silverlight on msvc2008 express?
http://groups.google.com/group/microsoft.public.dotnet.framework.aspnet/browse_thread/thread/bc7812cc8198ae78?hl=en
==============================================================================

== 1 of 1 ==
Date: Sun, May 11 2008 8:43 am
From: "m.a"


Hello,
  I installed MSVC 2008 express and I like to install silverlight. Can I do
this? Thenone that I got from silverlight web site, complain about msvc
version.

Regards







==============================================================================
TOPIC: Refreshing calling aspx page
http://groups.google.com/group/microsoft.public.dotnet.framework.aspnet/browse_thread/thread/98b9a33a023f6f17?hl=en
==============================================================================

== 1 of 2 ==
Date: Sun, May 11 2008 8:57 am
From: "David C"


I have an aspx page with a GridView that has an onclick attribute added to a
LinkButton.  The onclick calls the following Javascript function that opens
a new window to edit information:

   function openTask(id, coid)
   {
       var surl = "TaskEdit.aspx?id=" + id + "&coid=" + coid;
       void
window.open(surl,null,"height=400,width=600,status=yes,toolbar=no,menubar=no,location=no");
       return false;
   }

I would like to refresh (DataBind?) that GridView on the calling page when
the called page (TaskEdit.aspx) is closed.  I tried using Page.PreviousPage
etc. but that did not work.  Is there an easy way to do this?  Thanks.

David






== 2 of 2 ==
Date: Sun, May 11 2008 9:53 am
From: Alex Meleta


Hi David,

Put "parent.refresh(); self.close()" in popup window. Or, change the url
of parent form to refresh.

Regards, Alex
[TechBlog] http://devkids.blogspot.com



DC> I have an aspx page with a GridView that has an onclick attribute
DC> added to a LinkButton.  The onclick calls the following Javascript
DC> function that opens a new window to edit information:
DC>
DC> function openTask(id, coid)
DC> {
DC> var surl = "TaskEdit.aspx?id=" + id + "&coid=" + coid;
DC> void
DC> window.open(surl,null,"height=400,width=600,status=yes,toolbar=no,me
DC> nubar=no,location=no");
DC> return false;
DC> }
DC> I would like to refresh (DataBind?) that GridView on the calling
DC> page when the called page (TaskEdit.aspx) is closed.  I tried using
DC> Page.PreviousPage etc. but that did not work.  Is there an easy way
DC> to do this?  Thanks.
DC>
DC> David
DC>







==============================================================================
TOPIC: Problems with GridView.CssClass and Selections
http://groups.google.com/group/microsoft.public.dotnet.framework.aspnet/browse_thread/thread/d6e12dfb3c4afc91?hl=en
==============================================================================

== 1 of 1 ==
Date: Sun, May 11 2008 9:42 am
From: "Jonathan Wood"


Greetings,

On a GridView control, I want to show alternating colors. But instead of
alternating on each row, I want to alternate each group. So several items
would be one color and the next several items would be another color.

I'm able to accomplish this by setting the CssClass property in the
GridView's RowDataBound event handler.

But I also need the rows to be selectable so I set the CssClass for the
SelectedRowStyle at design time. The problem is that, when CssClass is set
in the RowDataBound event handler, that style is always used, even when the
row is selected. And these rows no longer provide any visual indication that
they are selected.

It appears that ASP.NET will not override a manually set CssClass with the
selected row CssClass.

Does anyone know how I could make this work?

Thanks.

--
Jonathan Wood
SoftCircuits Programming
http://www.softcircuits.com






==============================================================================
TOPIC: How to make sure that field validator is on the same line as text box
in gridview?
http://groups.google.com/group/microsoft.public.dotnet.framework.aspnet/browse_thread/thread/a62be4629914ce9c?hl=en
==============================================================================

== 1 of 1 ==
Date: Sun, May 11 2008 11:41 am
From: "dan"


Hi,

How do I make sure that RequiredFieldValidator attached to a textbox column
of a gridview is displayed on the right side of the field and not
underneath?  This is in edit mode of a gridview?

Thanks,
Dan






==============================================================================

You received this message because you are subscribed to the Google Groups "microsoft.public.dotnet.framework.aspnet"
group.

To post to this group, visit http://groups.google.com/group/microsoft.public.dotnet.framework.aspnet?hl=en

To unsubscribe from this group, send email to microsoft.public.dotnet.framework.aspnet-unsubscribe@googlegroups.com

To change the way you get mail from this group, visit:
http://groups.google.com/group/microsoft.public.dotnet.framework.aspnet/subscribe?hl=en

To report abuse, send email explaining the problem to abuse@googlegroups.com

==============================================================================
Google Groups: http://groups.google.com?hl=en

No comments: