Fwd: 17 new messages in 14 topics


Today's topics:

==============================================================================
TOPIC: how make codefile default
http://groups.google.com/group/microsoft.public.dotnet.framework.aspnet/browse_thread/thread/1f1123c2b0d606ab?hl=en
==============================================================================

== 1 of 2 ==
Date: Thurs, May 8 2008 4:19 pm
From: "Cirene"


This happens when i create an aspx page form a master page using EXPRESSION
WEB. :(

"Cirene" <cirene@nowhere.com> wrote in message
news:ewrdYhUsIHA.3632@TK2MSFTNGP04.phx.gbl...
> Usually I like to have my vb code in a seperate file, rather than inline
> with the HTML.  I know that the codefile directive is what links the 2
> together.
>
> For some reason, all of a sudden my new pages are lacking the CodeFile
> even though I check "Place code in separate file".  Is it because they are
> linked with a master page?  How can I do this after the fact?
>
> Thanks.
>






== 2 of 2 ==
Date: Thurs, May 8 2008 11:27 pm
From: "Juan T. Llibre"


re:
!> This happens when i create an aspx page form a master page using EXPRESSION WEB

No wonder you're having problems.

Expression Web doesn't handle code in separate files.
In fact, it doesn't handle code-behind at all.

If you can't afford the full Visual Studio (2005 or 2008)
download the free Visual Web Developer from :

Visual Web Developer 2005 :
http://msdn.microsoft.com/en-us/express/aa975050.aspx

Visual Web Developer 2008 :
http://www.microsoft.com/express/download/

VWD handles code-behind in separate files.

re:
!> even though I check "Place code in separate file"

Are you sure you did that in Expression Web ?
Expression Web doesn't have that option.





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/
======================================
"Cirene" <cirene@nowhere.com> wrote in message news:%23aiqsHWsIHA.548@TK2MSFTNGP06.phx.gbl...
> This happens when i create an aspx page form a master page using EXPRESSION WEB. :(
>
> "Cirene" <cirene@nowhere.com> wrote in message news:ewrdYhUsIHA.3632@TK2MSFTNGP04.phx.gbl...
>> Usually I like to have my vb code in a seperate file, rather than inline with the HTML.  I know that the codefile
>> directive is what links the 2 together.
>>
>> For some reason, all of a sudden my new pages are lacking the CodeFile even though I check "Place code in separate
>> file".  Is it because they are linked with a master page?  How can I do this after the fact?
>>
>> Thanks.
>>
>
>







==============================================================================
TOPIC: getting fileupload values into a form that's bound to a datagrid
http://groups.google.com/group/microsoft.public.dotnet.framework.aspnet/browse_thread/thread/5d4e7bfc176b80aa?hl=en
==============================================================================

== 1 of 1 ==
Date: Thurs, May 8 2008 4:52 pm
From: pauld


Hello-
Note: this is all VB/Asp.net 2.0

I have a formview(insert template)  whose fields are bound to a
datagrid that  is connects to an MS SQL Server 2005 database. One of
the options on the form is to allow user to upload a photo. I want to
store just the photo name in the db. To accommodate this there's a
link to a "Photo Upload" page that pops a window with a fileupload
control. I am using the filename property of the fileupload control to
store the photo's name as a public string var. This is all working
pretty well, but here's my problem:

How do I assign the textfield that is bound to the photo's name that
string var so that once the fileupload is complete the name of the
photo is automatically filled in?

Any help greatly appreciated.





==============================================================================
TOPIC: Programmatically adding a css style to a web content form
http://groups.google.com/group/microsoft.public.dotnet.framework.aspnet/browse_thread/thread/20bf147fb0837f73?hl=en
==============================================================================

== 1 of 1 ==
Date: Thurs, May 8 2008 5:06 pm
From: "Nathan Sokalski"


I am not talking about the Style property of a web server control, I am
talking about a Web.UI.WebControls.Style object, which does not have an Add
method. You seem to have the Style object confused with the
CssStyleCollection object. These two object can be easy to confuse because
the Style property is not an instance of the Style class. Any other
suggestions?
--
Nathan Sokalski
njsokalski@hotmail.com
http://www.nathansokalski.com/

"Stan" <google@philphall.me.uk> wrote in message
news:fd22485c-66da-48a6-bcff-cd555c7fc8bb@b1g2000hsg.googlegroups.com...
>> ...  and I am having trouble figuring out
>> how to add all the desired css properties to a
>> System.Web.UI.WebControls.Style object. Can anyone help me? Thanks.
>
>
> The "Style" property of a web server control is actually a collection
> not a single object (really ought to be named "Styles"). So you use
> the Add method. CssStyleCollections are actually a list of key/value
> pairs where the key is the attribute and the value the value. For
> example:
>
> Suppose you have a label control where you want to set the styles
> programmatically:
>
>        Label1.Style.Add("Color", "Blue");
>        Label1.Style.Add("font-size", "2em");
>
> will make the text quite large and blue.
>
> HTH
>







==============================================================================
TOPIC: Use class ... why is not available?
http://groups.google.com/group/microsoft.public.dotnet.framework.aspnet/browse_thread/thread/1137f4c408c684a8?hl=en
==============================================================================

== 1 of 2 ==
Date: Thurs, May 8 2008 5:25 pm
From: "Peter Bromberg [C# MVP]"


I am pretty sure that classes in the App_Code folder don't work in a Web
Application Project as you would expect them to in a Web Site project. Put
them next to the aspx pages and they'll get compiled.
Peter
"shapper" <mdmoura@gmail.com> wrote in message
news:1a2b3250-759d-4df2-924b-538291ad210b@f63g2000hsf.googlegroups.com...
On May 8, 6:25 pm, "Juan T. Llibre" <nomailrepl...@nowhere.com> wrote:
> re:
> !> The problem is when I create classes in App_Folder they don't
> !> seem to be accessible to ASPX pages as it is usual in Web Site.
>
> !> The only solution I found was to make all classes "Build: Compile"
> !> and rename the App_Code folder to New_App_Code.
>
> Have you tried putting all your classes in the App_Code folder, instead of
> in your App_Folder folder ?
>
> ASP.NET will not automatically compile classes in application folders,
> but *will* compile classes in source files in the App_Code folder.
>
> Better yet, have you considered compiling your helper classes
> into assemblies and placing the dll's in your app's bin directory ?
>
> 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/
> ======================================
>
> "shapper" <mdmo...@gmail.com> wrote in
> messagenews:93187d96-3ff0-4157-956f-d6d1bdbc12cc@r66g2000hsg.googlegroups.com...
> > On May 8, 3:13 pm, "Mark Rae [MVP]" <m...@markNOSPAMrae.net> wrote:
> >> "shapper" <mdmo...@gmail.com> wrote in message
>
> >>news:811ff1c6-7f0c-4849-96e4-7d55f109b3f7@a23g2000hsc.googlegroups.com...
>
> >> > I added a class but whatever I do the class is not visible to my aspx
> >> > pages or anywhere else.
>
> >> > I then changed the property Build Action in my class from Content to
> >> > Compile. Now it is recognized.
>
> >> > Why do I need to do this?
>
> >> Sounds like something's up with your installation of VS.NET, as classes
> >> (should) have their Build Action property set to Compile by default...
>
> >> --
> >> Mark Rae
> >> ASP.NET MVPhttp://www.markrae.net
>
> > Hi,
>
> > I think the problem is where the classes are being added to.
> > App_Folder or somewhere else.
>
> > I created a Web Application Project.
>
> > When I add a class to App_Folder it VS 2008 makes "Build: Content". If
> > I add the class somewhere else it says "Build: Compile".
>
> > The problem is when I create classes in App_Folder they don't seem to
> > be accessible to ASPX pages as it is usual in Web Site.
>
> > When I changed them "Build: Compile" then I am able to build the
> > solution with no errors but when I preview an ASPX pages I get errors
> > everywhere.
>
> > The only solution I found was to make all classes "Build: Compile" and
> > rename the App_Code folder to New_App_Code.
>
> > I think I am missing something.
>
> > Any idea?
>
> > Thanks,
>
> > Miguel

Sorry, when I wrote App_Folder I meant App_Code ... and that is the
strange problem!

Thanks,
Miguel





== 2 of 2 ==
Date: Thurs, May 8 2008 11:35 pm
From: "Juan T. Llibre"


re:
!> classes in the App_Code folder don't work in a Web Application Project

AFAIK :

By default, only class files of Web application projects are compiled
by MSBuild when the Build Action property is set to Compile.

However, if a Web Application project includes class files in the App_Code folder,
those class files will be compiled by the ASP.NET compiler.

This is true even if their build action is not explicitly set to Compile.

The App_Code folder exists for Web site projects.

This folder is not included in Web Application projects by default,
although it may be explicitly created and any class files placed in it *will* be compiled.




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/
======================================

"Peter Bromberg [C# MVP]" <pbromberg@nospammaam.yahoo.com> wrote in message
news:0D7C170D-3BF1-4260-B414-8D5570FBECC2@microsoft.com...
>I am pretty sure that classes in the App_Code folder don't work in a Web Application Project as you would expect them
>to in a Web Site project. Put them next to the aspx pages and they'll get compiled.
> Peter
> "shapper" <mdmoura@gmail.com> wrote in message
> news:1a2b3250-759d-4df2-924b-538291ad210b@f63g2000hsf.googlegroups.com...
> On May 8, 6:25 pm, "Juan T. Llibre" <nomailrepl...@nowhere.com> wrote:
>> re:
>> !> The problem is when I create classes in App_Folder they don't
>> !> seem to be accessible to ASPX pages as it is usual in Web Site.
>>
>> !> The only solution I found was to make all classes "Build: Compile"
>> !> and rename the App_Code folder to New_App_Code.
>>
>> Have you tried putting all your classes in the App_Code folder, instead of in your App_Folder folder ?
>>
>> ASP.NET will not automatically compile classes in application folders,
>> but *will* compile classes in source files in the App_Code folder.
>>
>> Better yet, have you considered compiling your helper classes
>> into assemblies and placing the dll's in your app's bin directory ?
>>
>> 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/
>> ======================================
>>
>> "shapper" <mdmo...@gmail.com> wrote in
>> messagenews:93187d96-3ff0-4157-956f-d6d1bdbc12cc@r66g2000hsg.googlegroups.com...
>> > On May 8, 3:13 pm, "Mark Rae [MVP]" <m...@markNOSPAMrae.net> wrote:
>> >> "shapper" <mdmo...@gmail.com> wrote in message
>>
>> >>news:811ff1c6-7f0c-4849-96e4-7d55f109b3f7@a23g2000hsc.googlegroups.com...
>>
>> >> > I added a class but whatever I do the class is not visible to my aspx
>> >> > pages or anywhere else.
>>
>> >> > I then changed the property Build Action in my class from Content to
>> >> > Compile. Now it is recognized.
>>
>> >> > Why do I need to do this?
>>
>> >> Sounds like something's up with your installation of VS.NET, as classes
>> >> (should) have their Build Action property set to Compile by default...
>>
>> >> --
>> >> Mark Rae
>> >> ASP.NET MVPhttp://www.markrae.net
>>
>> > Hi,
>>
>> > I think the problem is where the classes are being added to.
>> > App_Folder or somewhere else.
>>
>> > I created a Web Application Project.
>>
>> > When I add a class to App_Folder it VS 2008 makes "Build: Content". If
>> > I add the class somewhere else it says "Build: Compile".
>>
>> > The problem is when I create classes in App_Folder they don't seem to
>> > be accessible to ASPX pages as it is usual in Web Site.
>>
>> > When I changed them "Build: Compile" then I am able to build the
>> > solution with no errors but when I preview an ASPX pages I get errors
>> > everywhere.
>>
>> > The only solution I found was to make all classes "Build: Compile" and
>> > rename the App_Code folder to New_App_Code.
>>
>> > I think I am missing something.
>>
>> > Any idea?
>>
>> > Thanks,
>>
>> > Miguel
>
> Sorry, when I wrote App_Folder I meant App_Code ... and that is the
> strange problem!
>
> Thanks,
> Miguel








==============================================================================
TOPIC: How to display a Wait page while a query is running?
http://groups.google.com/group/microsoft.public.dotnet.framework.aspnet/browse_thread/thread/6fda4200c1b6402e?hl=en
==============================================================================

== 1 of 2 ==
Date: Thurs, May 8 2008 6:48 pm
From: "Simon"


Thanks very much, Mark and Steven. It is helpful.

"Steven Cheng [MSFT]" <stcheng@online.microsoft.com> wrote in message
news:O30r6xOsIHA.1784@TK2MSFTNGHUB02.phx.gbl...
> Hi Simon,
>
> Sure, for long-run task and waiting page, there are many existing articles
> describe how to build a asynchornous processing model and waiting page:
>
> #Building a Better Wait Page
> http://www.codeproject.com/KB/aspnet/wait_page.aspx
>
> #Implementing Waiting Pages in ASP.NET
> http://www.simple-talk.com/dotnet/asp.net/implementing-waiting-pages-in-asp.
> net/
>
> here are some other reference about long-run pattern in ASP.NET web
> application:
>
> #Executing Long-Running Tasks with the Progress Bar in ASP.NET
> http://www.aspfree.com/c/a/VB.NET/Executing-LongRunning-Tasks-with-the-Progr
> ess-Bar-in-ASPNET/
>
> #ASP.NET: Long Running Tasks with Page Feedback
> http://www.eggheadcafe.com/articles/20051223.asp
>
> Sincerely,
>
> Steven Cheng
>
> Microsoft MSDN Online Support Lead
>
>
> Delighting our customers is our #1 priority. We welcome your comments and
> suggestions about how we can improve the support we provide to you. Please
> feel free to let my manager know what you think of the level of service
> provided. You can send feedback directly to my manager at:
> msdnmg@microsoft.com.
>
> ==================================================
> Get notification to my posts through email? Please refer to
> http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
> ications.
>
> ==================================================
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
>
>
>
> --------------------
>>Reply-To: "Simon" <SimonZ@nospam.nospam>
>>From: "Simon" <SimonZ@nospam.nospam>
>>Subject: How to display a Wait page while a query is running?
>>Date: Thu, 8 May 2008 11:46:33 +0800
>
>>
>>If I am running a long time query, how to show a wait page at then? Is
> there
>>any recommended way to do it? Thanks.
>>
>>
>





== 2 of 2 ==
Date: Thurs, May 8 2008 7:25 pm
From: stcheng@online.microsoft.com (Steven Cheng [MSFT])


You're welcome Simon,

If there is anything else we can help, welcome to post here.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
>Reply-To: "Simon" <SimonZ@nospam.nospam>
>From: "Simon" <SimonZ@nospam.nospam>
>References: <eKYVd4LsIHA.6096@TK2MSFTNGP06.phx.gbl>
<O30r6xOsIHA.1784@TK2MSFTNGHUB02.phx.gbl>
>In-Reply-To: <O30r6xOsIHA.1784@TK2MSFTNGHUB02.phx.gbl>
>Subject: Re: How to display a Wait page while a query is running?
>Date: Fri, 9 May 2008 09:48:08 +0800

>Thanks very much, Mark and Steven. It is helpful.
>
>"Steven Cheng [MSFT]" <stcheng@online.microsoft.com> wrote in message
>news:O30r6xOsIHA.1784@TK2MSFTNGHUB02.phx.gbl...
>> Hi Simon,
>>
>> Sure, for long-run task and waiting page, there are many existing
articles
>> describe how to build a asynchornous processing model and waiting page:
>>
>> #Building a Better Wait Page
>> http://www.codeproject.com/KB/aspnet/wait_page.aspx
>>
>> #Implementing Waiting Pages in ASP.NET
>>
http://www.simple-talk.com/dotnet/asp.net/implementing-waiting-pages-in-asp.
>> net/
>>
>> here are some other reference about long-run pattern in ASP.NET web
>> application:
>>
>> #Executing Long-Running Tasks with the Progress Bar in ASP.NET
>>
http://www.aspfree.com/c/a/VB.NET/Executing-LongRunning-Tasks-with-the-Progr
>> ess-Bar-in-ASPNET/
>>
>> #ASP.NET: Long Running Tasks with Page Feedback
>> http://www.eggheadcafe.com/articles/20051223.asp
>>
>> Sincerely,
>>
>> Steven Cheng
>>
>> Microsoft MSDN Online Support Lead
>>






==============================================================================
TOPIC: Database issue
http://groups.google.com/group/microsoft.public.dotnet.framework.aspnet/browse_thread/thread/ce0f9d4fc017eba6?hl=en
==============================================================================

== 1 of 1 ==
Date: Thurs, May 8 2008 7:03 pm
From: "Cowboy \(Gregory A. Beamer\)"


The read only can come from a couple of things:

1. Permissions on the file
2. Permissions on the folder
3. You have the file open while you are running your application

The last is unique to file type databases, like Access, and will only
require a bit of discipline on your part.

If you have an ISP that has a server type database, I would aim that
direction before using Access, personally. Many provide either SQL Express
or mySQL. You can download both for free, so there is no cost issue here.

That is a bit overkill for a simple page counter, however. I will post back
something shortly.

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

Subscribe to my blog
http://gregorybeamer.spaces.live.com/lists/feed.rss

or just read it:
http://gregorybeamer.spaces.live.com/

*************************************************
| Think outside the box!
|
*************************************************
"BD" <JustMe@nothome.net> wrote in message
news:Ome6vsGsIHA.4848@TK2MSFTNGP05.phx.gbl...
> Thanks for the reply Cowboy.
> First off, I'm very new to ASP.Net and to ASP in general.  I'm used to
> doing my page code in straight HTML using FrontPage 2003.
> I really don't have any idea how to proceed with this and I'm just trying
> to muddle my way through it.  The reason for using the database was that
> there are several pages that will be tracked in that table and the DB also
> has another table that I want to implement later for tracking downloads of
> zip and exe files which are available on the site.
> The error is that the database is read only which I understand has to do
> with folder permissions.  I can probably solve that on IIS 6 which I use
> for testing only.  The pages finally end up on another server which is
> 2003 and I have no way (AFAIK) of setting folder permissions there.
> I'm open to any code that you think will do what I want but I warn you in
> advance that this will be a "Hold my hand" operation.
> Again, my gratitude for your help here.
> BD
>
> "Cowboy (Gregory A. Beamer)" <NoSpamMgbworld@comcast.netNoSpamM> wrote in
> message news:OQqc0lFsIHA.4912@TK2MSFTNGP03.phx.gbl...
>> First, I am not sure that a counter is best implemented in a database.
>> There are plenty of examples on the web of counters persisted in memory
>> and spun down and up as the application is started and stopped. You can
>> also persist hits to an XML file, if you would rather head that
>> direction.
>>
>> Second, even if you persist each hit to the database, I am not sure why
>> you are adding new  rows. It is a single value updated over and over
>> again, right?
>>
>> Third, why are you using old style ADO objects instead of ADO.NET
>> objects. There is really no need for this line:
>> Server.CreateObject("ADODB.Recordset")
>> other than familiarity with the old. ADO.NET will be faster and easier to
>> debug than a COM object, as you have full exposure of what is going on.
>> When you use an ADODB.Recordset, the COM errors are trapped and .NET
>> exceptions thrown, which obfuscates what is actually going on.
>>
>> Finally, you are writing your ASP.NET like ASP, which is not the optimal
>> way to do something like this.
>>
>> As for the error, what error are you recieving? One of the most common
>> errors comes from opening the Access database in Access while you are
>> trying to hit it with the web page. I forget the error number, but the
>> error message is completely unrelated to what is actually happening, in
>> most cases. You are probably not seeing this error anyway, as .NET is
>> trapping it and throwing its own exception.
>>
>> --
>> Gregory A. Beamer
>> MVP, MCP: +I, SE, SD, DBA
>>
>> Subscribe to my blog
>> http://gregorybeamer.spaces.live.com/lists/feed.rss
>>
>> or just read it:
>> http://gregorybeamer.spaces.live.com/
>>
>> *************************************************
>> | Think outside the box! |
>> *************************************************
>
>







==============================================================================
TOPIC: Missing IsClientScriptxxxRegistered method with ScriptManager
http://groups.google.com/group/microsoft.public.dotnet.framework.aspnet/browse_thread/thread/5ee90be23fef1b66?hl=en
==============================================================================

== 1 of 1 ==
Date: Thurs, May 8 2008 7:23 pm
From: stcheng@online.microsoft.com (Steven Cheng [MSFT])


Hi Cs,

Thanks for your reply.

The AJAX ScriptManager's register script functions also done some
additional things. For pages that use AJAX feature, I think you can
register scripts via the AJAX scriptmanager object. If your registered
scripts are used for standard web page processing and postback (rather than
ajax), you can still use the normal clientscriptmanager.

If you have any other questions, please feel free to post here.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
>From: "WT" <WT@newsgroups.nospam>
>References: <7B42EE23-7864-4694-9465-E52FFC839210@microsoft.com>
<QZsEzqyrIHA.1784@TK2MSFTNGHUB02.phx.gbl>
>In-Reply-To: <QZsEzqyrIHA.1784@TK2MSFTNGHUB02.phx.gbl>
>Subject: Re: Missing IsClientScriptxxxRegistered method with ScriptManager
>Date: Thu, 8 May 2008 15:22:57 +0200
>
>Hi Steven,
>So as soon as we are sure to have a ScriptManager in the page we could
>switch all ClientScript calls to ScriptManager corresponding Methods ?
>
>Regards
>CS
>
>
>"Steven Cheng [MSFT]" <stcheng@online.microsoft.com> a écrit dans le
message
>de news:QZsEzqyrIHA.1784@TK2MSFTNGHUB02.phx.gbl...
>> Hi CS,
>>
>> As for the AJAX script manager, through the reflector code, you can find
>> that it will also get reference to the container Page and use
>> Page.ClientScript.RegisterXXX method. Therefore, just like you call
>> Page.RegisterXXX method, it will help maintain the existing script block
>> or
>> overwrite the existing one(if the key is the same).
>>
>> Sincerely,
>>
>> Steven Cheng
>>
>> Microsoft MSDN Online Support Lead
>>
>>
>> Delighting our customers is our #1 priority. We welcome your comments and
>> suggestions about how we can improve the support we provide to you.
Please
>> feel free to let my manager know what you think of the level of service
>> provided. You can send feedback directly to my manager at:
>> msdnmg@microsoft.com.
>>
>> ==================================================
>> This posting is provided "AS IS" with no warranties, and confers no
>> rights.
>>
>> --------------------
>>>From: "WT" <WT@newsgroups.nospam>
>>>Subject: Missing IsClientScriptxxxRegistered method with ScriptManager
>>>Date: Mon, 5 May 2008 15:46:24 +0200
>>>Lines: 9
>>>
>>>Hello,
>>>
>>>How could we simulate the IsClientScriptBlocRegistered method of
>>>ClientScript when we use an update panel and the static ScriptManager ?
>>>Is this test already included in the ScriptManager.Registerxxx methods ?
>>>
>>>Regards
>>>CS
>>>
>>>
>>
>
>






==============================================================================
TOPIC: Citrix "The Page cannot be displayed"
http://groups.google.com/group/microsoft.public.dotnet.framework.aspnet/browse_thread/thread/fcc2c073ff5635fa?hl=en
==============================================================================

== 1 of 1 ==
Date: Thurs, May 8 2008 9:29 pm
From: "Peter"



"Anthony Jones" <Ant@yadayadayada.com> wrote in message
news:ewT9RwNsIHA.3680@TK2MSFTNGP05.phx.gbl...
> "Peter" <czupet@nospam.nospam> wrote in message
> news:uPhI7fIsIHA.2188@TK2MSFTNGP04.phx.gbl...
>> I have the following code which works fine in IE6 and IE7 and FireFox,
>> but
>> when I run IE6 on Citrix I get "The page cannot be displayed" in the
> iframe.
>> We don't have IE7 on Citrix so I can't try it.
>>
>>   <span id="ShowReport" disabled="disabled"
>> style="display:inline-block;height:1200px;width:880px;">
>>        <div>
>>            <iframe src=../../WsiLogo.gif> <frame src=../../WsiLogo.gif>
>> <embed src=../../WsiLogo.gif> </iframe>
>>       </div>
>> </span>
>>
>>
>> I know little about Citrix and our Citrix admin knows little about HTML,
> so
>> between two of us we know nothing.
>>
>> Does anyone have any suggestions on how to fix this?
>>
>
>
> The HTML doesn't appear to make a great deal of sense.
>
> Try a very simple page that only has this in the body:-
>
> <iframe src="../../WsiLogo.gif"></iframe>
>
> Consider using an absolute path instead of the relative one you are using
> here.
>
> I can't see anything here that Citirix itself would impact.
>
> BTW, why are you opening a gif in an IFrame?  Try visiting the URL to the
> gif directly using IE address bar, what happens?
>
>
>
> --
> Anthony Jones - MVP ASP/ASP.NET
>
>

I tried the following on Citrix

http://reports01/reports/WsiLogo.gif

and got the same error "The Page cannot be displayed"

but if I try

http://reports01/reports/Test.html

it works just fine

and if I try on none-citrix computer everything works.







==============================================================================
TOPIC: Breadcrumbs and my menu
http://groups.google.com/group/microsoft.public.dotnet.framework.aspnet/browse_thread/thread/cbd8f9910e675ad0?hl=en
==============================================================================

== 1 of 1 ==
Date: Thurs, May 8 2008 9:38 pm
From: info@listerhome.com


If you make the Breadcrumbs control use the site map, is there a way
to not show certain things that can be visible in the site map, but
not in the main navidation menu?

I ask, as I have an item on my menu: Organisations

I click that, and I can edit the Org, or I can select a branch from a
grid. The bread crumbs should just show, 'Organisations'.

When I select a branch, the breadcrumbs should then read Organisations
> Branch.

I don't want a user to be able to navidate directly to a branch from
the main menu. I am new to ASP.net, but I was told that we would need
2 site maps. That seems wrong.

Is there a way for this to work?





==============================================================================
TOPIC: Confusing performance data
http://groups.google.com/group/microsoft.public.dotnet.framework.aspnet/browse_thread/thread/910e7d51068d67fd?hl=en
==============================================================================

== 1 of 1 ==
Date: Thurs, May 8 2008 9:36 pm
From: APA


I have a ASP.NET 20 application that is suffering some pretty poor performance.  I'm using the Web Application Stress tool to run a script and I see
some confusing performance data.  As expected the request execution time is long.  It averages about 10 seconds and goes as high as 70 seconds.
Another performance counter that is very high is Page Faults/Sec, it averages about 1000 (faults/sec).  Given that the server has 2GB of RAM and that
only 250MB is used by the app I don't understand the high page faults.  I have the WAST set to 50 thread spread over three clients and Performance
monitor shows only about 3 requests per second (which makes the high request time even more puzzling since I certainly think the app can process three
requests per second).  Another puzzling performance stat is the Requests Executing, it averages about 40.  I guess this is because of the long
execution time but if that were the case it seems that this would continue to increase because if 3 or 4 requests per second a are being services and
only one request is being complete every 10 seconds it would seem that the Requests executing would just increase linearly.  Also the Request Wait
Time is always zero and the CPU runs in the 40-50% range.  Seems like an odd set of performance statistics to me.

The only way that I can think that the request time could be so high is that some how one process is blocking the other but the .NET CLR
LocksAndThread:Current Queue Length is always zero too.  So, with this data I'm not ever sure where to begin to start looking in my app to fix the
issue.  Any and all suggestions are appreciated.

The test is being run on a Win2K server (AMD X2 3800+ CPU, 2GB of RAM) using a SQL 2005 database on another server (no database issues exist).





==============================================================================
TOPIC: http xml post
http://groups.google.com/group/microsoft.public.dotnet.framework.aspnet/browse_thread/thread/d2bcfdfc91ccdf4d?hl=en
==============================================================================

== 1 of 1 ==
Date: Thurs, May 8 2008 9:51 pm
From: bruce barker


generally this means they want a form post with one form field
containing the xml. in this case your post data is:

string postdata = "fieldname=" + HttpUtility.UrlEncode(doc.OuterXml);

note: you should set the content-type to:
       application/x-www-form-urlencoded

-- bruce (sqlwork.com)


CindyH wrote:
> Hi
>
> I'm working on a http xml post (request/response).
>
> In my testing - I have been able to create and post xml string/stream and
> send response
> back.
>
> But now I've been told that I should "code the whole xml payload string as a
> single key"
>
> I'm not sure what this means and haven't been able to find anything about
> it.
>
> Can anyone help me with this?
>
> Thanks,
> Cindy
>
>





==============================================================================
TOPIC: javascript file won't work with .cs file...
http://groups.google.com/group/microsoft.public.dotnet.framework.aspnet/browse_thread/thread/b3d042edb660c0cd?hl=en
==============================================================================

== 1 of 1 ==
Date: Thurs, May 8 2008 9:55 pm
From: bruce barker


you don't give enough info to know what you are doing wrong. there is no
difference between inline script or included script.

try using firefox to debug the script, you must have a syntax error.

-- bruce (sqlwork.com)


Matthew Wells wrote:
> Hello.  I'm reposting this because my prioe post's subject line was
> incorrect.
>
>     I'm developing an asp.net 2.0 project using VS 2005 on XP sp2 with all
> the updates.  I have an aspx page with javascript that works fine until I
> try to separate the script into a .js file.  I've found that only the script
> that is called from events set in the aspx.cs file don't work.  I eliminated
> all script except two functions.  One is used with the .cs file and the
> other one is not.
>
> First, here's the functino used with the .cs file:
> if (!this.IsPostBack)
> {
>
> btnFirst.OnClientClick = "return btnFirst_Click()";
>
> }
> ... the javascript function is...
>
>
> function btnFirst_Click()
>
> {
>
> alert("This is btnFirst_Click"):
>
> return false;
>
> }
>
> Now the second javascript function is only
>
> function ShowAlert()
> {
>     alert("This is ShowAlert");
>     return false;
> }
>
> This function is called from another button - button1 - from the
> OnClientClick event which I set in the property page..
>
> When I have all the javascript in the aspx page, it all wokrs, but when I
> move it to a .js file, the first function doesn't work, but the second one
> does.
>
> I don't want to add all my javascript in rhe .cs file because that would
> expose all my code - that's why I'm teying to put it in a .js file.
>
> How can I make all the code work using both methods?
>
> Thanks...
>





==============================================================================
TOPIC: Cache-control and Expires headers
http://groups.google.com/group/microsoft.public.dotnet.framework.aspnet/browse_thread/thread/bbe5736a547ffbc2?hl=en
==============================================================================

== 1 of 1 ==
Date: Thurs, May 8 2008 11:16 pm
From: stcheng@online.microsoft.com (Steven Cheng [MSFT])


Thanks for your inputs.

I've also forwarded this question to some other ASPNET dev engineers. I'll
post here is if there is any further information about this issue.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
>Subject: RE: Cache-control and Expires headers

>Newsgroups: microsoft.public.dotnet.framework.aspnet
>Date: Wed, 07 May 2008 07:08:20 -0700

>I am having the exact same problem. I am using VS2008 (.Net 3.5) and I
>can't set the Expires date out any further than one day.
>
>Doing a little reflection, I see that in the HttpCachePolicy class,
>SetExpires() method, if the expires is already set, it will only change
>if the new expiration date is less than the existing one.
>
>I have removed all of my custom HttpModules and discovered that none of
>mine are setting the expiration.
>
>Somwhere in the pipeline, something built in is pre-setting the
>expiration date to one day forward from the request.
>
>I experience the same effect whether I use Response.Cache.SetExpires(),
>Response.Expires, or Response.ExpiresAbsolute.
>
>
>Sometimes the greatest solutions come from the simplest logic.
>Being told "No" is merely the incentive to do it anyway.
>
>*** Sent via Developersdex http://www.developersdex.com ***
>






==============================================================================
TOPIC: problem with e.Row.Cells() of gridview
http://groups.google.com/group/microsoft.public.dotnet.framework.aspnet/browse_thread/thread/2e9d7c9c829fa9d2?hl=en
==============================================================================

== 1 of 1 ==
Date: Thurs, May 8 2008 11:49 pm
From: "Chris"


I tested with this line:
response.write(e.Row.Cells(3).Text) which gives nothing ....
but, as i wrote, the gridview renders correctly the values.


"Chris" <ssd@qsd.dc> schreef in bericht
news:%23NXS0FVsIHA.4492@TK2MSFTNGP02.phx.gbl...
> Hi,
>
> i want to make the forecolor of values into a gridview red but only when
> they equals 'n'.
>
> <asp:GridView ID="GridView1" runat="server"
>        DataKeyNames="hour,place" DataSourceID="SqlDataSource1" >
>       <Columns>
>            <asp:CommandField ShowEditButton="True"/>
>            <asp:BoundField DataField="place" HeaderText="place"
> ReadOnly="True" />
>            <asp:BoundField DataField="hour" HeaderText="hour"
> ReadOnly="True" />
>
>            <asp:TemplateField HeaderText="theday">
>                    <EditItemTemplate>
>               <asp:DropDownList ID="DropDownList1" SelectedValue='<%#
> Bind("theday") %>' runat="server">
>               <asp:ListItem Text="y" Value="y"></asp:ListItem>
>                <asp:ListItem Text="n" Value="n"></asp:ListItem>
>               </asp:DropDownList>
>                    </EditItemTemplate>
>                    <ItemTemplate>
>             <asp:Label ID="Label2" runat="server" Text='<%# Bind("theday")
> %>'></asp:Label>
>                    </ItemTemplate>
>                </asp:TemplateField>
>
>      </Columns>
> </asp:GridView>
>
>
> Protected Sub GridView1_RowDataBound(ByVal sender As Object, ByVal e As
> System.Web.UI.WebControls.GridViewRowEventArgs) Handles
> GridView1.RowDataBound
>
>        If e.Row.RowType = DataControlRowType.DataRow Then
>            Dim m As String
>            m = e.Row.Cells(3).Text
>           If m = "n" Then
>                e.Row.Cells(3).ForeColor = Drawing.Color.Red
>            End If
>       End If
>    End Sub
>
> The values are correctly rendered, i can update etc ... but the forecolor
> remains black. Is this due to the template?
> Thanks for help
> Chris
>






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

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: