25 new messages in 20 topics - digest [9 May 2008]

> > I have an XML file with 50000 records, when i am trying to write into
> > DataSet through DataSet.ReadXml("C:\..\Customer.xml"). It takes more
> > than 30 minutes to write all records into DataSet. This affects  lot
> > on my application performance. Is there any alternative to increase
> > the performance & reduce the time taken for writing...
>
> Is this a one-off exercise, or something you need to do on a regular
> basis...?
>
> --
> Mark Rae
> ASP.NET MVPhttp://www.markrae.net

Hi mark,

Now it seems to be bit ok with the performance, I am using
XmlTextReader API to read nodes comparativelly its much faster than
DataSet.ReadXml()

Regards,
Deshi...





==============================================================================
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 2 ==
Date: Thurs, May 8 2008 12:20 am
From: "Anthony Jones"


"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






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


Hi Peter,

From your description, you're encountering some problem displaying an
ASP.NET web page(with iframe) in Citrix environment, correct?

As for the this problem, it is likely that the webbrowser's behavior
differs from normal environment. I suggest you try the following things to
see whether the http request from IE browser differs from normal
environment:

1. At server-side, you can check IIS log to see whether the request (from
the IFRAME) is correctly sent to server and any error entry exists in IIS
log.

2. You can download the web development helper tool to trace the http
messages(such as the one send for the iframe):

#Web Development Helper
http://projects.nikhilk.net/WebDevHelper/

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.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.



--------------------
>From: "Peter" <czupet@nospam.nospam>
>Subject: Citrix "The Page cannot be displayed"
>Date: Wed, 7 May 2008 16:19:03 -0500

>
>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?
>
>
>
>Thank You
>
>
>
>Peter
>
>
>






==============================================================================
TOPIC: How do I loop this in a FOR loop
http://groups.google.com/group/microsoft.public.dotnet.framework.aspnet/browse_thread/thread/6ed29049e425bf9a?hl=en
==============================================================================

== 1 of 1 ==
Date: Thurs, May 8 2008 12:44 am
From: "David"


You should be ashamed of yourself Peter... you missed a closing bracket
somewhere... :-)

(Mind you, it won't actually do anything, as the bracket is inside a quoted
string, but even then, if it is called txtSample1, it won't be found with
(txtSample1 as your string.  )

--
Best regards,
Dave Colliver.
http://www.AshfieldFOCUS.com
~~
http://www.FOCUSPortals.com - Local franchises available


"Peter Bromberg [C# MVP]" <pbromberg@nospammaam.yahoo.com> wrote in message
news:3518932A-91F1-462F-B896-852447941668@microsoft.com...
> I'm only guessing that this code will even work (the way you have it) but
> if the first one is "txtSample1" then you would need this:
>
>  UserTable.Rows[i].FindControl("(txtSample"+(i+1).ToString() ).Visible =
> true;
>
> --Peter
>
> "iHavAQuestion" <iHavAQuestion@discussions.microsoft.com> wrote in message
> news:FBD2DD26-C9A3-4019-8658-C3601CE3D5FC@microsoft.com...
>>I have  a textbox control in each row of the table and I need to display
>>it
>> dynamically
>> In the first row of the table it is txtSample1 and in the second row it
>> is
>> txtSample2
>>
>> The below code is not working
>>
>> for (int i = 0; i < ddlHowMany.SelectedIndex ; i++)
>> {
>>        UserTable.Rows[i].FindControl("(txtSample)+(i)").Visible = true;
>> }
>>
>> Plz help me out..
>>
>







==============================================================================
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 12:47 am
From: "Mark Rae [MVP]"


"Simon" <SimonZ@nospam.nospam> wrote in message
news:eKYVd4LsIHA.6096@TK2MSFTNGP06.phx.gbl...

> If I am running a long time query, how to show a wait page at then? Is
> there any recommended way to do it?

http://www.google.co.uk/search?sourceid=navclient&hl=en-GB&ie=UTF-8&rlz=1T4GZEZ_en-GBGB252GB252&q=ASP%2eNET+Ajax+Progress


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





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


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






==============================================================================
TOPIC: FormView with DropDownList
http://groups.google.com/group/microsoft.public.dotnet.framework.aspnet/browse_thread/thread/922f05dcf40f6c87?hl=en
==============================================================================

== 1 of 1 ==
Date: Thurs, May 8 2008 12:55 am
From: etam


Thanks, all clear ;).





==============================================================================
TOPIC: Help: Copy Web site vs Publish Website vs Web Deployment Project
http://groups.google.com/group/microsoft.public.dotnet.framework.aspnet/browse_thread/thread/17773ad5958bc84a?hl=en
==============================================================================

== 1 of 2 ==
Date: Thurs, May 8 2008 12:54 am
From: "Cirene"


When would I use "Copy Web site" over "Publish Website" or visa versa?  Why
would I use the Web Deployment Project vs these options?

I want to make sure no one can pull up/read/download my vb source code (in
.vb files).

I would prefer easy update of the site (code or aspx.)

Thanks.






== 2 of 2 ==
Date: Thurs, May 8 2008 1:30 am
From: "Mark Rae [MVP]"


"Cirene" <cirene@nowhere.com> wrote in message
news:er232COsIHA.4876@TK2MSFTNGP02.phx.gbl...

> When would I use "Copy Web site" over "Publish Website" or visa versa?
> Why would I use the Web Deployment Project vs these options?

WDP gives you loads more options which aren't available straight out of the
box, such as the ability to have different web.config files for development,
testing and production etc...


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






==============================================================================
TOPIC: FormViewList?
http://groups.google.com/group/microsoft.public.dotnet.framework.aspnet/browse_thread/thread/1232244307d40b65?hl=en
==============================================================================

== 1 of 1 ==
Date: Thurs, May 8 2008 12:58 am
From: etam


Hi,

I like FormView for its flexibility. Is there something for displaying
list of FormViews? If not what is the best way to show dynamic number
of FormViews?

Thanks in advance,
Etam.





==============================================================================
TOPIC: Try/Catch for Events
http://groups.google.com/group/microsoft.public.dotnet.framework.aspnet/browse_thread/thread/b0c1da8df28a3e90?hl=en
==============================================================================

== 1 of 1 ==
Date: Thurs, May 8 2008 1:00 am
From: "Leon Mayne"



"randy.buchholz" <randy.buchholz@dads.state.tx.us> wrote in message
news:uvOkxTFsIHA.1220@TK2MSFTNGP04.phx.gbl...
> Yes, that works and preserves the exception.  Thanks.  I've been searching
> MSDN for a list of exceptions (especially PK violation) any ideas on where
> I can find a good list?  Intellisence has some, but not the ones I'm
> looking for.

It depends on what you are expecting to be thrown. I don't think looking
through a list of exceptions will help much. You may be better off breaking
the system yourself and seeing what gets thrown by stepping into the code.






==============================================================================
TOPIC: what have I broke?
http://groups.google.com/group/microsoft.public.dotnet.framework.aspnet/browse_thread/thread/2a2f0b16fde645b3?hl=en
==============================================================================

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


Thanks for your followup Dan,

I'm glad that you've finally figured out the problem.  Sure, I believe this
thread will be helpful for other members who may run into the same problem.
Thank you for sharing your information with us.

Have a good day!

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.

--------------------
>From: =?Utf-8?B?bXVzb3NkZXY=?= <musoswire@community.nospam>
>References:  <192F696B-C2DC-4706-8A7E-FC19D774F8CF@microsoft.com>
<1D7DAC36-D9EF-471C-B400-79789C76C5B8@microsoft.com>
<B80D2B37-FBDF-498F-AA46-422078D27124@microsoft.com>
<33269F4E-E2D2-4CB4-A662-9E04FAACAF37@microsoft.com>
<DI#$j2npIHA.5740@TK2MSFTNGHUB02.phx.gbl>
<GurcJZqqIHA.4284@TK2MSFTNGHUB02.phx.gbl>
>Subject: Re: what have I broke?
>Date: Wed, 7 May 2008 03:24:02 -0700

>
>Hi Steven / Peter
>
>Thank you for your follow ups. I tried everything you suggested to no
avail.
>Quite embarrasingly, a few hours of trying to fix it later, I noticed one
of
>the page class names didn't seem right.
>
>It *appears* I must have caught the mouse cursor and deleted part of a
class
>name, because I checked that against the page, fixed it to match... and it
>all compiled perfectly.
>
>Amazing how you never expect the simple stuff to catch you out. Apologies
>for time wasted, hopefully someone will find this thread useful if they
have
>the same problem in the future and it isn't typo related!
>
>Thanks,
>
>
>Dan
>






==============================================================================
TOPIC: RedirectFromLoginPage redirect to a Different URL
http://groups.google.com/group/microsoft.public.dotnet.framework.aspnet/browse_thread/thread/b08509c58a352d24?hl=en
==============================================================================

== 1 of 1 ==
Date: Thurs, May 8 2008 2:09 am
From: "Leon Mayne"


<ckkwan@my-deja.com> wrote in message
news:3b3dce28-abf8-44ab-b27c-57d55da9a832@w1g2000prd.googlegroups.com...
> RedirectFromLoginPage will always re-direct to the ReturnURL or
> DefaultURL. And unfortunately neither one of this can be changed
> programmatically.
>
> I have a need, where different users need to be re-directed to
> different page after login.

Use FormsAuthentication.SetAuthCookie then Response.Redirect to the page you
want to send them to.

--
Leon Mayne
http://leon.mvps.org/






==============================================================================
TOPIC: Javascript Textbox border issue
http://groups.google.com/group/microsoft.public.dotnet.framework.aspnet/browse_thread/thread/6a421a3ebd726951?hl=en
==============================================================================

== 1 of 1 ==
Date: Thurs, May 8 2008 3:33 am
From: "john"


Thanks your last method worked.
John

"Norm" <neonorm@gmail.com> wrote in message
news:e922745d-88e6-4121-aaba-674e7be02a25@h1g2000prh.googlegroups.com...
On May 7, 3:46 am, "john" <n...@none.com> wrote:
> I'm adding a Textbox with javascript, it works except for the border
> attribute, any advive
> Thanks
> John
>
> var formFld = document.createElement('input')
>
> formFld.setAttribute('type', 'text')
>
> formFld.setAttribute('id', txt)
>
> formFld.value = document.getElementById(lb).innerHTML
>
> formFld.name = txt
>
> formFld.setAttribute('width','30')
>
> formFld.setAttribute('border', '3px solid #FF0000')

John,
That last line is setting the html attribute of "border" (which I'm
pretty sure doesn't exist on  textbox) to a CSS value.
A simple correction would be:

formFld.setAttribute('style', 'border: 3px solid #FF0000;')

Although, I'm not actually sure this would work. I would instead
suggest using the style property as such:

formFld.style.border = '3px solid #FF0000'

Reference: http://www.w3schools.com/htmldom/dom_obj_style.asp#border

Hope This helps!
Norm







==============================================================================
TOPIC: MS Design template installation problem
http://groups.google.com/group/microsoft.public.dotnet.framework.aspnet/browse_thread/thread/11f4389f384a310d?hl=en
==============================================================================

== 1 of 1 ==
Date: Thurs, May 8 2008 3:59 am
From: Nilla


Hi!

I have downloaded and installed the design templates Personal Design
and Basic from http://msdn.microsoft.com/en-us/asp.net/aa336613.aspx
but I cannot make them appear among other templates when choosing "New
project"

I have also installed other templates like these:
http://www.visualwebgui.com/Community/Resources/Codes/tabid/326/articleType/ArticleView/articleId/45/Default.aspx
and that works, they are visible under My Templates in the New project
- wizard.

What shall I do to be able to select the MS-templates?

Thanks!





==============================================================================
TOPIC: Authenticate against Active Directory
http://groups.google.com/group/microsoft.public.dotnet.framework.aspnet/browse_thread/thread/4cf97e2b32df7abf?hl=en
==============================================================================

== 1 of 1 ==
Date: Thurs, May 8 2008 4:49 am
From: "Jon"


Thank you! I will try this and see if I can get it working. Two questions -
the AppSettings AD user and pass - do those need to be for the domain admin?
Second, the ActiveDirectoryServer variable - would that just be the windows
machine name of the AD server or a full domain name, etc?

Thanks, again
Jon



"ABHIJIT B" <abhijitbavdhankar@gmail.com> wrote in message
news:4f07c019-1272-40f4-8ff3-3ca95b6bd586@e53g2000hsa.googlegroups.com...
Hi Jon,

I did AD authentication in one of my page in ASP.NET 2.0 , you can
find same in 1.1

/// <summary>
   /// This will get user list.
   /// </summary>
   protected bool GetSearchUserData()
   {
       try
       {
           //Bind Search UserList grid  as per user entered

           string loginName = txtSULoginName.Text;
           string firstName = txtSUFirstName.Text;
           string lastName = txtSULastName.Text;

           string ActiveDirectoryServer =
Convert.ToString(ConfigurationManager.AppSettings["ActiveDirectoryServer"]);

          // User that can access domain user details
           string ADUserName =
Convert.ToString(ConfigurationManager.AppSettings["ADUserName"]);
           string ADUserPassword =
Convert.ToString(ConfigurationManager.AppSettings["ADUserPassword"]);

           DirectoryEntry entry = new
DirectoryEntry(ActiveDirectoryServer, ADUserName, ADUserPassword);
           DirectorySearcher ds = new DirectorySearcher(entry);

           ds.Filter = "(&(objectClass=user)(objectClass=person))";
           if (loginName != "")
           {
               ds.Filter = ds.Filter.Remove(ds.Filter.Length - 1, 1);
               ds.Filter += "(sAMAccountName=" + loginName.Trim() +
"*))";
           }
           if (firstName != "")
           {
               ds.Filter = ds.Filter.Remove(ds.Filter.Length - 1, 1);
               ds.Filter += "(givenName=" + firstName.Trim() + "*))";
           }
           if (lastName != "")
           {
               ds.Filter = ds.Filter.Remove(ds.Filter.Length - 1, 1);
               ds.Filter += "(sn=" + lastName.Trim() + "*))";
           }

           dtSearchUserList.Columns.Clear();
           dtSearchUserList.Columns.Add(new DataColumn("LoginName",
typeof(string)));
           dtSearchUserList.Columns.Add(new DataColumn("FirstName",
typeof(string)));
           dtSearchUserList.Columns.Add(new DataColumn("LastName",
typeof(string)));

           foreach (SearchResult sr in ds.FindAll())
           {
               DataRow row = dtSearchUserList.NewRow();
               string name = sr.Properties["Name"][0].ToString();
               string firstname = "";
               string lastname = "";

               if (name.Length == 0)
               {
                   firstname = "";
                   lastname = "";
               }
               else if (name.IndexOf(",") != -1)
               {
                   iActualLength = name.Length;
                   iLength = name.IndexOf(",") + 2;

                   if (iActualLength < iLength)
                   {
                       firstname = "";
                       lastname = name;
                   }
                   else
                   {
                       firstname = name.Substring(name.IndexOf(",") +
2);
                       lastname = name.Substring(0,
name.IndexOf(","));
                   }
               }
               else if (name.IndexOf(" ") != -1)
               {
                   iActualLength = name.Length;
                   iLength = name.IndexOf(" ") + 1;

                   if (iActualLength < iLength)
                   {
                       firstname = "";
                       lastname = name;
                   }
                   else
                   {
                       lastname = name.Substring(name.IndexOf(" ") +
1);
                       firstname = name.Substring(0, name.IndexOf("
"));
                   }
               }
               else
               {
                   firstname = "";
                   lastname = name;
               }
               row["FirstName"] = firstname.Replace("'", "");
               row["LastName"] = lastname.Replace("'", "");
               row["LoginName"] = sr.Properties["SamAccountName"]
[0].ToString();
               dtSearchUserList.Rows.Add(row);
           }

           if (dtSearchUserList != null &&
dtSearchUserList.Rows.Count > 0)
           {
               dtSearchUserList.DefaultView.Sort = "LoginName ASC,
FirstName ASC, LastName ASC";
               dgADUserList.DataSource = dtSearchUserList;
               dgADUserList.DataBind();
               blSUSearchSucess = true;
               lblSUErrorText.Text = "";
           }
           else
           {
               dtSearchUserList.Columns.Clear();
               dtSearchUserList.Columns.Add(new DataColumn("Select",
typeof(string)));
               dtSearchUserList.Columns.Add(new
DataColumn("LoginName", typeof(string)));
               dtSearchUserList.Columns.Add(new
DataColumn("FirstName", typeof(string)));
               dtSearchUserList.Columns.Add(new
DataColumn("LastName", typeof(string)));
               dgADUserList.DataSource = dtSearchUserList;
               dgADUserList.DataBind();
               lblSUErrorText.Text = ErrorLog.GetText("NoUsers");
               blSUSearchSucess = false;
           }
       }
       catch (Exception ex)
       {
           blSUSearchSucess = false;
           TraceSUError.Log("\nAn error occurred while fetching user
details.\nException occurred : " + ex.Message);
           strURL = "ErrorPage.aspx?strErrPageName=SearchUsers.aspx";
           Response.Redirect(strURL, false);
       }

       return blSUSearchSucess;
   }

Also you can check login user details,

IIdentity WinId = HttpContext.Current.User.Identity;
               WindowsIdentity wi = (WindowsIdentity)WinId;

               strDCHLoginID = wi.Name.Split('\\')[1];
               hidDHLoginID.Value = wi.Name.Split('\\')
[1];

               if (ValidLoginUserData(strDCHLoginID)) //check user is
present in Database

Regards,
Abhijit B

On May 7, 12:59 pm, "Jon" <rosenb...@mainstreams.com> wrote:
> I am modifying an app for a customer in ASP.Net 1.1. The app is running on
> a
> server outside their network, yet they want to authenticate users against
> their internal active directory set up (they will open the necessary
> ports).
>
> So, I have a simple login page with username and password, and then I will
> authenticate that credentials entered against their AD server. I am having
> a
> real hard time figuring this out. We can't use Windows Forms Auth, so I
> need
> to do it all manually in code.
>
> On the System.DirectoryServices namespace I can't find what methods I need
> to connect to their AD using SSL and then to authenticate the user. I've
> found a lot online using Forms Auth and ADAM, but nothing has really fit
> what I'm doing.
>
> Could anyone point me to a tutorial or outline what methods, etc I need to
> use to accomplish this?
>
> Thank you so much!
> Jon






==============================================================================
TOPIC: IE does not reload css or js file...
http://groups.google.com/group/microsoft.public.dotnet.framework.aspnet/browse_thread/thread/5c9c707e144bcd4f?hl=en
==============================================================================

== 1 of 1 ==
Date: Thurs, May 8 2008 5:51 am
From: "Matthew Wells"


This one seemed to wokrk!!!! Thanks!!!!  There is still a timing issue with
javascript, but I'll put that one in a separate post.

Matthew Wells
Matthew.Wells@FirstByte.net


<fd123456@hotmail.com> wrote in message
news:801b3f79-9060-4f8c-a9ce-3385753d912f@2g2000hsn.googlegroups.com...
I believe his problem is not on his browser's side but on his server's
side. IIS will cache the css stylesheet and will not always detect
when it's changed (i.e. if the file is programmatically modified
instead of copied/deleted/created).

To disable CSS caching (and most of the caching mechanisms, be
warned...), on the server, create the following registry key :

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\HTTP\Parameters
\UriEnableCache

...and set it to 0 (zero).

This works on IIS 7, don't know about other versions but it's worth a
try.

Don't know if it will help with the js problem, though.

Warning : always make a backup of the registry before editing, be
extra careful if it's a production server, etc, you know the drill.

HTH,

Michel




On 3 mai, 19:12, "Matthew Wells" <Matthew.We...@FirstByte.net> wrote:
> Hello,
>
> I'm working on an ASP.net 2.0 web project using VS 2005. I'm on my laptop
> running IIS on WinXP SP2 with all the latest updates. The Default web site
> is set to run on .net 2.0 My project uses a master page.
>
> I have two separate issues that I think are related.
>
> First, I can't figure out why changes to my CSS don't load when I start
> the
> project. The css is in the master page. The CSS loads, but only the last
> version I hit F5 for. I always have to hit F5 to see the changes. I set
> the IE option to Check for newer versions of stored pages every time I
> visit
> the webpage. Yes I closed all instances of IE and even rebooted for good
> measure. No luck.
>
> Second, I can't get javascript to work when it's being called using the
> src
> attribute. I use
>
> <script type="text/javascript" src="test.js" ></script>
>
> test.js is in the same folder as test.aspx, which calls it. I stripped
> everything out of the files - even the code-behind file. All that's in the
> .js file is an alert function. The only thing on the web form is a button
> that calls the function using OnClientClick. It works if I put the
> function
> in the web form so I know javascript works. I had a brief moment of
> success
> when it worked - I thought - but it was having the same problem as the
> CSS -
> It would not show the latest changes without hitting F5. I would make the
> message "aaaaa" and start the project, hit F5 and see "aaaaa". I'd stop
> the
> project, change the message to "bbbbb", start the project and still see
> "aaaaa" until I hit F5 and see "bbbbb".
>
> This is why I think the CSS and javascript problems are related.
>
> Does anyone know why this is happening?
>
> Thanks.
>
> Matthew Wells
> Matthew.We...@FirstByte.net







==============================================================================
TOPIC: Getting the DataKey Value in a GridView
http://groups.google.com/group/microsoft.public.dotnet.framework.aspnet/browse_thread/thread/6c128794197d573c?hl=en
==============================================================================

== 1 of 1 ==
Date: Thurs, May 8 2008 5:57 am
From: Wannabe


I have a gridview that has a label field and a checkbox field in it. I have
the checkbox set to autopost when changed. How can I get the datakey value
that is assigned to that row when a checkbox is either checked or unchecked?





==============================================================================
TOPIC: UTF-8
http://groups.google.com/group/microsoft.public.dotnet.framework.aspnet/browse_thread/thread/a01b389cd2f15b2b?hl=en
==============================================================================

== 1 of 2 ==
Date: Thurs, May 8 2008 5:57 am
From: "Mike Gleason jr Couturier"


Hi,

I'm uploading a text file (.csv) dynamically to the client with this method
:

--
Response.Clear();
Response.AddHeader("Content-disposition:", "attachment;
filename=export.csv");
Response.AddHeader("Content-type", "application/vnd.ms-excel");
Response.ContentEncoding = Encoding.UTF8;

Response.Write([...]);
Response.Write([...]);

Response.End();
--
Some accentuated acharacters does not display correctly in excel... but when
I open the file the characters are displayed fine.. and notepad tells me
that the file is indeed a UTF-8 file (when file/save as)..

Im I missing something here? (apparently yes!)

Thanks guys (and or gals)

Mike






== 2 of 2 ==
Date: Thurs, May 8 2008 6:37 am
From: "Mike Gleason jr Couturier"



"Mike Gleason jr Couturier" <nospam@invalidhost.com> a écrit dans le message
de news: uLFlgsQsIHA.1240@TK2MSFTNGP02.phx.gbl...
> Hi,
>
> I'm uploading a text file (.csv) dynamically to the client with this
> method :
>
> --
> Response.Clear();
> Response.AddHeader("Content-disposition:", "attachment;
> filename=export.csv");
> Response.AddHeader("Content-type", "application/vnd.ms-excel");
> Response.ContentEncoding = Encoding.UTF8;
>
> Response.Write([...]);
> Response.Write([...]);
>
> Response.End();
> --
> Some accentuated acharacters does not display correctly in excel... but
> when I open the file the characters are displayed fine.. and notepad tells
> me that the file is indeed a UTF-8 file (when file/save as)..
>
> Im I missing something here? (apparently yes!)
>
> Thanks guys (and or gals)
>
> Mike
>
>

I've managed to get it done by:

Response.AddHeader("Content-disposition:", "attachment;
filename=export.csv");
Response.AddHeader("Content-type", "application/vnd.ms-excel;
charset=ISO-8859-1");
Response.Charset = "ISO-8859-1";
Response.ContentEncoding = Encoding.GetEncoding("ISO-8859-1");
I don't really need UTF8... my text was in latin iso  :|

Mike







==============================================================================
TOPIC: How to Create Drill Down on Web Page
http://groups.google.com/group/microsoft.public.dotnet.framework.aspnet/browse_thread/thread/69797b51b6222827?hl=en
==============================================================================

== 1 of 1 ==
Date: Thurs, May 8 2008 6:07 am
From: Mel


On May 7, 6:08 pm, "Juan T. Llibre" <nomailrepl...@nowhere.com> wrote:
> re:
> !> I want to create something like when you search for car
> !> parts the user can navigate the drill downs
>
> Here's a complete example you can adapt :http://www.codeproject.com/KB/combobox/DrillDown.aspx
>
> re:
> !> at the top of the page is says something like this:
> !> Chevy>>2002>>Avalanche>>1500
>
> Are you thinking of breadcrumbs ?
> Usually an "at the top of the page" display refers to directories, not to data.
>
> 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/
> ======================================
>
> "Mel" <MLights...@gmail.com> wrote in messagenews:7865232b-53e8-483c-a65d-b79313d299cc@s50g2000hsb.googlegroups.com...
> > Can anyone provide any help on how I would create a drill down on a
> > web page?  I want to create something like when you search for car
> > parts the user can navigate the drill downs and at the top of the page
> > is says something like this:
>
> > Chevy>>2002>>Avalanche>>1500
>
> > What is the database behind it?  I want to use an Access Database to
> > store the data is that possible?  How would the database be
> > structured?
>
> > (Using Asp.net 2.0, VB.net)

Unfortunately the code project example is in C#, which I am not very
familiar with at all, but that is exactly what I am looking for.  I
converted the example project with Visual Studio 2005 and when I try
to run it an error message appears:

"A project with an Output Type of Class Library cannot be started
directly.  In order to debug this project, add an executable project
to this solution which references the library project.  Set the
executable project as the startup project."

This message makes no sense to me.  What do I need to do here?





==============================================================================
TOPIC: Use library
http://groups.google.com/group/microsoft.public.dotnet.framework.aspnet/browse_thread/thread/c1666f1c2aef123c?hl=en
==============================================================================

== 1 of 1 ==
Date: Thurs, May 8 2008 6:14 am
From: shapper


Hello,

In a web site application in VS 2008 where should I place third party
DLL files and what is the best way to make them available, including
the namespaces, to my web application?

Thanks,

Miguel





==============================================================================
TOPIC: KeyBoard Layout
http://groups.google.com/group/microsoft.public.dotnet.framework.aspnet/browse_thread/thread/8fbca916f573fe0f?hl=en
==============================================================================

== 1 of 2 ==
Date: Thurs, May 8 2008 6:16 am
From: Arnab das


Currenlty I am working on KeyBoarLayout in C#. I donot know how to
change the keyboardlayout .I am creating a software similar to "Avro
KeyBoard 4.5.1". Thanks in advance.

Arnab




== 2 of 2 ==
Date: Thurs, May 8 2008 6:30 am
From: "Mark Rae [MVP]"


"Arnab das" <arnabit@gmail.com> wrote in message
news:83b9cda0-4369-4770-b977-d1d23f7313c7@w7g2000hsa.googlegroups.com...

> Currenlty I am working on KeyBoarLayout in C#. I donot know how to
> change the keyboardlayout .I am creating a software similar to "Avro
> KeyBoard 4.5.1". Thanks in advance.

I think you're in the wrong newsgroup - this is for ASP.NET.

For C# WinForms applications, please post to:
microsoft.public.dotnet.languages.csharp


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






==============================================================================
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 6:22 am
From: "WT"


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





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

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: