 |
 |
Index ‹ dotnet-framework-aspnet
|
- Previous
- 1
- problem with multithreading and Web services method invocationHi:
I have an ASP.NET page which makes a synchronous Web services method
call. At the same time, however, I wanted it to load another page as an
iFrame (i've also tried as a javascript popup window) - this second
page is responsible for polling a DB and continually updating its text
box display.
The problem is that once the Web service call is initiated, the second
page becomes unresponsive exactly until the call is completed, when it
resumes. I'm baffled as to why this second page's request should have
anything to do with the first one's Web service request. I've tried to
encapsulate the time-consuming DB queries of the second page into a
separate thread and this works great (I tested it by printing a
timestamp to a file), but I also need a way of updating the display in
real-time while the Web services call is going through. Are there any
ideas as to how I can accomplish this?
- adh
- 3
- shopping cart binding to datagridHi,
I'm wondering if there is a way to bind to datagrid or a gridview the
items in an arraylist. These items all have vars such as price,
qty..etc? (besides putting in a datagrid or datatable first).
ex.
ArrayList alShoppingCart = shoppingCart.GetCurrentItems;
alShoppingCart contains an array list of Item objects.
Thanks
Maz.
- 3
- not properly authenticating?hey all,
i have a simple asp.net app that using window authentication integration and
disallowing anonymous users.
well, when a user tries to browse to this page she gets a "The page cannot
be displayed error." I figured I'd at least get the asp.net error page.
any ideas?
some environment notes:
windows 2000 server sp4
windows 2003 r2 sql server 2005 sp4
xp pro sp2 vs2005 sp1 is my dev
xp pro sp2 is the user's machine with nothing but ie on it.
i'm thinking it's the user is not properly authenticating to active
directory because when i changed iis settings for the app to allow anonymous
the user can get to the page that way. but i'm not user how to troubleshoot
this if this is the case.
thanks,
rodchar
- 3
- Oracle Data Provider for .NETHello to everybody,
I hope this group is the correct one for posting my problem. If I've
posted in the wrong place, could you please redirect me to the correct
group? Thank you in advance for that ;)
My problem:
I need to call an oracle function from a .NET application passing an
XmlType input parameter to it. I have no idea on how to set the value
of this input parameter. I've tried to pass a String, but it results
in a NULL XmlType parameter value (using Toad as a SQL Profiler).
Any help is welcome,
bye,
Simone.
- 4
- Getting control of Items within a DatalistI have a problem as I have placed a dropdownlist in a datalist.
Whenever the selected index changes I need to change a label inside
the datalist.
The problem is I can't get control of the label.
When dropdownlist changes it goes to a function with args of
systemEvent than a DataListItemEventArgs so I have no way getting
control of the item in the datalist to change the label.
Can someone please help me.
- 4
- problem on downlaod zip file via asp net applicationwhen i try to download my zip file via my asp net program, the zip file will
be corrupted after i download, below is my code:
' Identify the file to download including its path.
Dim filepath As String = Server.MapPath("\eClinicApp\VISITD.ZIP")
' Identify the file name.
Dim filename As String = System.IO.Path.GetFileName(filepath)
Response.Clear()
' Specify the Type of the downloadable file.
' octet-stream
Response.ContentType = "application/octet-stream"
' Set the Default file name in the FileDownload dialog box.
Response.AddHeader("Content-Disposition", "attachment; filename="""
& filename & """")
' Download the file.
Response.WriteFile(filepath)
Response.Flush()
Any body know what happen, pls help
- 6
- 6
- ASP.NET 2.0 hosting with ATLAS for personal homepagegood luck! If you find somewhere that does this could you let me know
im looking for the same thing but havent found anywhere that will do
this for less than 70
email***@***.com wrote:
> Hi,
>
> I'm looking for an ASP.NET 2.0 hosting with ATLAS to put my personal
> homepage. I don't want to spend more than 25€ / year (=32 USD). And
> of couse, I don't want add banners or popups.
>
> Anyone knows or has experience with a good one?
>
> Veerle
- 7
- Invoke IE from ASP.NETHi
I would like to invoke a new instance of IE from within a page and pass it a
URL. How can I do this in C#?
I have tried using SHDOCVW.DLL to no avail.
TIA
- 8
- Multi-threaded HTTP ModuleAll,
I am trying to write a multi-threaded HTTP module that handles the
OnBeginRequest and logs it. What I am trying to do is to offload the
logging to another thread which will allow the http module to release
the OnBeginRequest.
The issue that I have is that I keep on getting "Request is not
available in this context" exceptions.
The following is the code I am using:
using System;
using System.Web;
public class ProcessRequest
{
public HttpApplication HttpRequest;
public void ProcessingThread()
{
try
{
string sRequestUrl;
if (HttpRequest.Request!=null)
{
sRequestUrl=HttpRequest.Request.HttpMethod;
System.Diagnostics.Debug.WriteLine(sRequestUrl);
}
}
catch (System.Exception ex)
{
throw ex;
}
}
}
public class HttpRequestLogger : IHttpModule
{
protected System.Collections.Queue oHttpRequestQueue= new
System.Collections.Queue();
protected bool bModuleRunning =false;
public HttpRequestLogger()
{
}
// In the Init function, register for HttpApplication
// events by adding your handlers.
public void Init(HttpApplication application)
{
application.BeginRequest +=
(new EventHandler(this.Application_BeginRequest));
application.EndRequest +=
(new EventHandler(this.Application_EndRequest));
}
private void Application_BeginRequest(Object source, EventArgs e)
{
// Create HttpApplication and HttpContext objects to access
// request and response properties.
System.Threading.Thread oProcessingThread;
HttpApplication application = (HttpApplication)source;
ProcessRequest oRequestProcessor=new ProcessRequest();
oRequestProcessor.HttpRequest=application;
oProcessingThread =new System.Threading.Thread(new
System.Threading.ThreadStart(oRequestProcessor.ProcessingThread));
oProcessingThread.Start();
}
private void Application_EndRequest(Object source, EventArgs e)
{
// HttpApplication application = (HttpApplication)source;
// HttpContext context = application.Context;
}
public void Dispose()
{
}
}
- 9
- TIP: httpRuntime executionTimeoutI had noticed a number of people posting that they where having
trouble getting the Web.config httpRuntime executionTimeout attribute
to work as expected.
I realized today that if the compilation debug attribute is set to
"true" in the configuration, then the framework doesn't seem to
timeout requests (probably because this might be annoying if you had a
debugger attached and were stepping through code).
It would be nice if the MSDN documentation for the executionTimeout
config attribute referenced this dependency. A similar thing that
threw me for awhile was that a trace="true" at the page level seems to
implicitly cause a No-Cache directive to be issued in the response.
Hope this helps someone.
Pete
- 11
- 15
- Forms Auth SignOut QuestionI have a Forms Auth and use a button that allows users to SignOut below
but when they sign out and PRESS THE BACK BUTTON they can see the
previous page WHY?
Sub SignOut(objSender As Object, objArgs As EventArgs)
'delete the users auth cookie and sign out
System.Web.Security.FormsAuthentication.SignOut()
Session.Abandon()
Session.Remove("Context.User.Identity.Name")
'redirect the user to their referring page
Response.Redirect("logon.aspx?ReturnUrl=%2fFormsAuthAd%2fdefault.aspx")
End Sub
ANY IDEAS WHAT I'M DOING WRONG!
Thx
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
- 15
- lost session values, not SessionYour post went unanswered. Have you resolved this issue?
--
Regards,
Alvin Bruney [ASP.NET MVP]
Got tidbits? Get it here...
http://tinyurl.com/3he3b
"Xis" <email***@***.com> wrote in message
news:%23XOLlH6%email***@***.com...
> I have several aspx files, where session do as expected with all pages
> except one of them.
> I'm using Trace in the page (winform1.aspx) that session values are lost.
> Only values are lost not session ID !!
> Attached is the trace for the first time I access the page
(Windform1.aspx)
> and also the trace for the second time, when I do something else in the
page
> and session values are lost.
> In line 303 of trace_1.txt you could see the session state:
> entradaNick System.String felix
> ASP.NET_SessionId vsic1n45xiihuf55cmy3mk45
>
> In The second trace values of session dessappear, but no the session ID,
it
> remain the same.
>
>
>
>
- 16
|
| Author |
Message |
GaryDean

|
Posted: 2008-2-27 23:41:16 |
Top |
dotnet-framework-aspnet, VS mangles HTML
On one of our projects, using vs2005 professional, Visual Studio reformats
the html in an aspx page so that it is virtually impossible to work with -
although it still executes properly. For instance it takes well formed html
that is indented for readability and converts everything to uppercase and
removes all carriage returns.
it converts this...............
<table>
<tr>
<td> vAlign=top>
<asp:panel id="LEFTPANEL" runat="server" Width="400px">
<table... . . .
to this..........
<TABLE><TBODY><TR><TD vAlign=top><asp:Panel id="LEFTPANEL" runat="server"
Width="400px"><TABLE
The page is then full of errors saying that uppercase is not valid.
I don't recall this every happening before but it is happening on this
project. We don't know of any settings that have been changed.
TIA,
Gary
|
| |
|
| |
 |
j8qxe324#

|
Posted: 2008-2-28 0:21:00 |
Top |
dotnet-framework-aspnet >> VS mangles HTML
On Feb 27, 9:41 am, "GaryDean" <email***@***.com> wrote:
> On one of our projects, using vs2005 professional, Visual Studio reformats
> the html in an aspx page so that it is virtually impossible to work with -
> although it still executes properly. For instance it takes well formed html
> that is indented for readability and converts everything to uppercase and
> removes all carriage returns.
>
> it converts this...............
> <table>
> <tr>
> <td> vAlign=top>
> <asp:panel id="LEFTPANEL" runat="server" Width="400px">
> <table... . . .
>
> to this..........
> <TABLE><TBODY><TR><TD vAlign=top><asp:Panel id="LEFTPANEL" runat="server"
> Width="400px"><TABLE
>
> The page is then full of errors saying that uppercase is not valid.
>
> I don't recall this every happening before but it is happening on this
> project. We don't know of any settings that have been changed.
>
> TIA,
> Gary
The errors flagging uppercase may be due to the HTML validation model
you have chosen. XHTML validation is much more strict (as it should
be). IE 6 validation is pretty forgiving.
|
| |
|
| |
 |
GaryDean

|
Posted: 2008-2-28 1:35:00 |
Top |
dotnet-framework-aspnet >> VS mangles HTML
Huh?
"j8qxe324#" <email***@***.com> wrote in message
news:email***@***.com...
> On Feb 27, 9:41 am, "GaryDean" <email***@***.com> wrote:
>> On one of our projects, using vs2005 professional, Visual Studio
>> reformats
>> the html in an aspx page so that it is virtually impossible to work
>> with -
>> although it still executes properly. For instance it takes well formed
>> html
>> that is indented for readability and converts everything to uppercase and
>> removes all carriage returns.
>>
>> it converts this...............
>> <table>
>> <tr>
>> <td> vAlign=top>
>> <asp:panel id="LEFTPANEL" runat="server" Width="400px">
>> <table... . . .
>>
>> to this..........
>> <TABLE><TBODY><TR><TD vAlign=top><asp:Panel id="LEFTPANEL" runat="server"
>> Width="400px"><TABLE
>>
>> The page is then full of errors saying that uppercase is not valid.
>>
>> I don't recall this every happening before but it is happening on this
>> project. We don't know of any settings that have been changed.
>>
>> TIA,
>> Gary
>
> The errors flagging uppercase may be due to the HTML validation model
> you have chosen. XHTML validation is much more strict (as it should
> be). IE 6 validation is pretty forgiving.
|
| |
|
| |
 |
darrel

|
Posted: 2008-2-28 4:16:00 |
Top |
dotnet-framework-aspnet >> VS mangles HTML
> Huh?
What doctype are you using?
-Darrel
|
| |
|
| |
 |
Lars

|
Posted: 2008-2-28 6:46:00 |
Top |
dotnet-framework-aspnet >> VS mangles HTML
Hi
The problem may be easy to solve if you are using information html coded not
forms in the aspx pages. Weather I use PHP or ASP.NEt I always write the
information pages in Dreamweaver to get a good design of the pages. Although
I exclude the header and footer parts in the HTML file see the example
below. Then I import the HTML page into the PHP or ASP.NET script. This way
when I update my homepage I only upload the html files.
<!-- Start of HTML file -->
<table align="center" width="100%">
<h1 align="center">Some Header</h1>
<tr><td><p>Some text</p></td></tr>
</table>
<!-- End of HTML file -->
Use the Method
Response.WriteFile("index.htm");
This way no HTML code gets mangled when edit the pages in ASP.NET. Visual
Studio is not the tool to write documents in but it is good for designing
and create web forms.
Lars
"darrel" <email***@***.com> skrev i meddelandet
news:email***@***.com...
>> Huh?
>
> What doctype are you using?
>
> -Darrel
>
|
| |
|
| |
 |
GaryDean

|
Posted: 2008-2-28 8:30:00 |
Top |
dotnet-framework-aspnet >> VS mangles HTML
There is no "doctype" in my aspx page. It's an ordinary aspx page generated
by visual studio.
Gary
"darrel" <email***@***.com> wrote in message
news:email***@***.com...
>> Huh?
>
> What doctype are you using?
>
> -Darrel
>
|
| |
|
| |
 |
GaryDean

|
Posted: 2008-2-28 8:32:00 |
Top |
dotnet-framework-aspnet >> VS mangles HTML
Believe me, thousands of people use visual studio to generate aspx pages.
I've done it thousands of times myself with no problem. This is obviously
an anomaly of some kind. Switchiung to Dreamweaver is probably not the
right solution for me to take.
Gary
"Lars" <email***@***.com> wrote in message
news:7Llxj.4237$email***@***.com...
> Hi
>
> The problem may be easy to solve if you are using information html coded
> not forms in the aspx pages. Weather I use PHP or ASP.NEt I always write
> the information pages in Dreamweaver to get a good design of the pages.
> Although I exclude the header and footer parts in the HTML file see the
> example below. Then I import the HTML page into the PHP or ASP.NET script.
> This way when I update my homepage I only upload the html files.
>
> <!-- Start of HTML file -->
> <table align="center" width="100%">
> <h1 align="center">Some Header</h1>
> <tr><td><p>Some text</p></td></tr>
> </table>
> <!-- End of HTML file -->
>
> Use the Method
> Response.WriteFile("index.htm");
>
> This way no HTML code gets mangled when edit the pages in ASP.NET. Visual
> Studio is not the tool to write documents in but it is good for designing
> and create web forms.
>
> Lars
>
>
>
>
>
> "darrel" <email***@***.com> skrev i meddelandet
> news:email***@***.com...
>>> Huh?
>>
>> What doctype are you using?
>>
>> -Darrel
>>
>
>
|
| |
|
| |
 |
stcheng

|
Posted: 2008-2-28 12:11:00 |
Top |
dotnet-framework-aspnet >> VS mangles HTML
Hi Gary,
As for the VS 2005 HTML designer, it has improved much for HTML formatting
comparing to VS 2003 though there may still exists some automatic changes
in html source of page. I think the problem you meet is probably a specific
issue. Have you tried editing the same page in some other box(with VS 2005
installed) or some other pages to see whether the same problem will occur?
For html editing, the general settings are in the "Tools-->options--> Text
Editor ->...." area. For a quick test in case there may have any changes of
your VS 2005 IDE settings, you can try reset the VS 2005 settings(or import
an existing one from another VS 2005 IDE) via the "Tools-->Import and
Export Settings Wizard..."
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
==================================================
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: "GaryDean" <email***@***.com>
>Subject: Re: VS mangles HTML
>Date: Wed, 27 Feb 2008 17:30:15 -0700
>
>There is no "doctype" in my aspx page. It's an ordinary aspx page
generated
>by visual studio.
>Gary
>
>"darrel" <email***@***.com> wrote in message
>news:email***@***.com...
>>> Huh?
>>
>> What doctype are you using?
>>
>> -Darrel
>>
>
>
>
|
| |
|
| |
 |
GaryDean

|
Posted: 2008-2-28 23:06:00 |
Top |
dotnet-framework-aspnet >> VS mangles HTML
Steven
I have went through all the options and I don't see a "reset VS 2005
options" button or checkbox. There is a "restore file associations" but
that is the only reset I see. It's still happenning and it is costing hours
of developer time as the page is almost impossible to work with. Also if I
type in <table> <tr> <td> </td> </tr> <table> it gets converted to <TABLE>
<TBODY> ......
The <TBODY> is getting inserted into the html!!
Also I don't even see an option for "please make my html completely unusable
:)
Gary
""Steven Cheng"" <email***@***.com> wrote in message
news:email***@***.com...
> Hi Gary,
>
> As for the VS 2005 HTML designer, it has improved much for HTML formatting
> comparing to VS 2003 though there may still exists some automatic changes
> in html source of page. I think the problem you meet is probably a
> specific
> issue. Have you tried editing the same page in some other box(with VS 2005
> installed) or some other pages to see whether the same problem will occur?
>
> For html editing, the general settings are in the "Tools-->options--> Text
> Editor ->...." area. For a quick test in case there may have any changes
> of
> your VS 2005 IDE settings, you can try reset the VS 2005 settings(or
> import
> an existing one from another VS 2005 IDE) via the "Tools-->Import and
> Export Settings Wizard..."
>
> Sincerely,
>
> Steven Cheng
>
> Microsoft MSDN Online Support Lead
>
>
>
> ==================================================
>
> 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: "GaryDean" <email***@***.com>
>>Subject: Re: VS mangles HTML
>>Date: Wed, 27 Feb 2008 17:30:15 -0700
>
>>
>>There is no "doctype" in my aspx page. It's an ordinary aspx page
> generated
>>by visual studio.
>>Gary
>>
>>"darrel" <email***@***.com> wrote in message
>>news:email***@***.com...
>>>> Huh?
>>>
>>> What doctype are you using?
>>>
>>> -Darrel
>>>
>>
>>
>>
>
|
| |
|
| |
 |
Juan T. Llibre

|
Posted: 2008-2-28 23:30:00 |
Top |
dotnet-framework-aspnet >> VS mangles HTML
Please look at "Tools", "Options", "Text Editor", "HTML", "Format",
and hit the "Tag specific options" button.
You should be able to customize the actions you want there.
Also, in the validation section for HTML, you could choose a different type of validation.
Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espa駉l : http://asp.net.do/foros/
======================================
"GaryDean" <email***@***.com> wrote in message news:email***@***.com...
> Steven
> I have went through all the options and I don't see a "reset VS 2005 options" button or checkbox. There is a "restore
> file associations" but that is the only reset I see. It's still happenning and it is costing hours of developer time
> as the page is almost impossible to work with. Also if I type in <table> <tr> <td> </td> </tr> <table> it gets
> converted to <TABLE> <TBODY> ......
>
> The <TBODY> is getting inserted into the html!!
>
> Also I don't even see an option for "please make my html completely unusable :)
>
>
> Gary
> ""Steven Cheng"" <email***@***.com> wrote in message news:email***@***.com...
>> Hi Gary,
>>
>> As for the VS 2005 HTML designer, it has improved much for HTML formatting
>> comparing to VS 2003 though there may still exists some automatic changes
>> in html source of page. I think the problem you meet is probably a specific
>> issue. Have you tried editing the same page in some other box(with VS 2005
>> installed) or some other pages to see whether the same problem will occur?
>>
>> For html editing, the general settings are in the "Tools-->options--> Text
>> Editor ->...." area. For a quick test in case there may have any changes of
>> your VS 2005 IDE settings, you can try reset the VS 2005 settings(or import
>> an existing one from another VS 2005 IDE) via the "Tools-->Import and
>> Export Settings Wizard..."
>>
>> Sincerely,
>>
>> Steven Cheng
>>
>> Microsoft MSDN Online Support Lead
>>
>>
>>
>> ==================================================
>>
>> 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: "GaryDean" <email***@***.com>
>>>Subject: Re: VS mangles HTML
>>>Date: Wed, 27 Feb 2008 17:30:15 -0700
>>
>>>
>>>There is no "doctype" in my aspx page. It's an ordinary aspx page
>> generated
>>>by visual studio.
>>>Gary
>>>
>>>"darrel" <email***@***.com> wrote in message
>>>news:email***@***.com...
>>>>> Huh?
>>>>
>>>> What doctype are you using?
>>>>
>>>> -Darrel
>>>>
>>>
>>>
>>>
>>
>
>
|
| |
|
| |
 |
GaryDean

|
Posted: 2008-2-29 6:22:00 |
Top |
dotnet-framework-aspnet >> VS mangles HTML
settings same as our other vs2005 instances. Other instances are not
mangling the html.
Do you know of a setting that would remove all carriage returns and
indentations that make html readable and convert all tags to uppercase?
Gary
"Juan T. Llibre" <email***@***.com> wrote in message
news:email***@***.com...
> Please look at "Tools", "Options", "Text Editor", "HTML", "Format",
> and hit the "Tag specific options" button.
>
> You should be able to customize the actions you want there.
>
> Also, in the validation section for HTML, you could choose a different
> type of validation.
>
>
>
>
> Juan T. Llibre, asp.net MVP
> asp.net faq : http://asp.net.do/faq/
> foros de asp.net, en espa駉l : http://asp.net.do/foros/
> ======================================
> "GaryDean" <email***@***.com> wrote in message
> news:email***@***.com...
>> Steven
>> I have went through all the options and I don't see a "reset VS 2005
>> options" button or checkbox. There is a "restore file associations" but
>> that is the only reset I see. It's still happenning and it is costing
>> hours of developer time as the page is almost impossible to work with.
>> Also if I type in <table> <tr> <td> </td> </tr> <table> it gets converted
>> to <TABLE> <TBODY> ......
>>
>> The <TBODY> is getting inserted into the html!!
>>
>> Also I don't even see an option for "please make my html completely
>> unusable :)
>>
>>
>> Gary
>> ""Steven Cheng"" <email***@***.com> wrote in message
>> news:email***@***.com...
>>> Hi Gary,
>>>
>>> As for the VS 2005 HTML designer, it has improved much for HTML
>>> formatting
>>> comparing to VS 2003 though there may still exists some automatic
>>> changes
>>> in html source of page. I think the problem you meet is probably a
>>> specific
>>> issue. Have you tried editing the same page in some other box(with VS
>>> 2005
>>> installed) or some other pages to see whether the same problem will
>>> occur?
>>>
>>> For html editing, the general settings are in the "Tools-->options-->
>>> Text
>>> Editor ->...." area. For a quick test in case there may have any changes
>>> of
>>> your VS 2005 IDE settings, you can try reset the VS 2005 settings(or
>>> import
>>> an existing one from another VS 2005 IDE) via the "Tools-->Import and
>>> Export Settings Wizard..."
>>>
>>> Sincerely,
>>>
>>> Steven Cheng
>>>
>>> Microsoft MSDN Online Support Lead
>>>
>>>
>>>
>>> ==================================================
>>>
>>> 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: "GaryDean" <email***@***.com>
>>>>Subject: Re: VS mangles HTML
>>>>Date: Wed, 27 Feb 2008 17:30:15 -0700
>>>
>>>>
>>>>There is no "doctype" in my aspx page. It's an ordinary aspx page
>>> generated
>>>>by visual studio.
>>>>Gary
>>>>
>>>>"darrel" <email***@***.com> wrote in message
>>>>news:email***@***.com...
>>>>>> Huh?
>>>>>
>>>>> What doctype are you using?
>>>>>
>>>>> -Darrel
>>>>>
>>>>
>>>>
>>>>
>>>
>>
>>
>
>
|
| |
|
| |
 |
stcheng

|
Posted: 2008-2-29 15:06:00 |
Top |
dotnet-framework-aspnet >> VS mangles HTML
Hi Gary,
The "Import and Export Settings..." menu item is under "Tools" menu of the
VS IDE. Also, after you click it, there is an "Reset All Settings" option
in the popup dialog.
BTW, one possible problem for such html content reformatting is due to the
aspx page's html markup has some invalid character(or some wrong content
such as missing a end > tag or quot ). In such cases, the IDE will always
think the document incorrect/invalid and try to format it wihch cause the
document be formatted everytime the IDE has performed validation against
it. Therefore, you can also try checking the aspx page content(you can try
copy it into a new page and remove content step by step to isolate the
problem).
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
>From: "GaryDean" <email***@***.com>
>References: <#email***@***.com>
<email***@***.com>
>Subject: Re: VS mangles HTML
>Date: Thu, 28 Feb 2008 15:22:13 -0700
>
>settings same as our other vs2005 instances. Other instances are not
>mangling the html.
>
>Do you know of a setting that would remove all carriage returns and
>indentations that make html readable and convert all tags to uppercase?
>Gary
>
>"Juan T. Llibre" <email***@***.com> wrote in message
>news:email***@***.com...
>> Please look at "Tools", "Options", "Text Editor", "HTML", "Format",
>> and hit the "Tag specific options" button.
>>
>> You should be able to customize the actions you want there.
>>
>> Also, in the validation section for HTML, you could choose a different
>> type of validation.
>>
>>
>>
>>
>> Juan T. Llibre, asp.net MVP
>> asp.net faq : http://asp.net.do/faq/
>> foros de asp.net, en espa駉l : http://asp.net.do/foros/
>> ======================================
>> "GaryDean" <email***@***.com> wrote in message
>> news:email***@***.com...
>>> Steven
>>> I have went through all the options and I don't see a "reset VS 2005
>>> options" button or checkbox. There is a "restore file associations"
but
>>> that is the only reset I see. It's still happenning and it is costing
>>> hours of developer time as the page is almost impossible to work with.
>>> Also if I type in <table> <tr> <td> </td> </tr> <table> it gets
converted
>>> to <TABLE> <TBODY> ......
>>>
>>> The <TBODY> is getting inserted into the html!!
>>>
>>> Also I don't even see an option for "please make my html completely
>>> unusable :)
>>>
>>>
>>> Gary
>>> ""Steven Cheng"" <email***@***.com> wrote in message
>>> news:email***@***.com...
>>>> Hi Gary,
>>>>
>>>> As for the VS 2005 HTML designer, it has improved much for HTML
>>>> formatting
>>>> comparing to VS 2003 though there may still exists some automatic
>>>> changes
>>>> in html source of page. I think the problem you meet is probably a
>>>> specific
>>>> issue. Have you tried editing the same page in some other box(with VS
>>>> 2005
>>>> installed) or some other pages to see whether the same problem will
>>>> occur?
>>>>
>>>> For html editing, the general settings are in the "Tools-->options-->
>>>> Text
>>>> Editor ->...." area. For a quick test in case there may have any
changes
>>>> of
>>>> your VS 2005 IDE settings, you can try reset the VS 2005 settings(or
>>>> import
>>>> an existing one from another VS 2005 IDE) via the "Tools-->Import and
>>>> Export Settings Wizard..."
>>>>
>>>> Sincerely,
>>>>
>>>> Steven Cheng
>>>>
>>>> Microsoft MSDN Online Support Lead
>>>>
>>>>
>>>>
>>>> ==================================================
>>>>
>>>> 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: "GaryDean" <email***@***.com>
>>>>>Subject: Re: VS mangles HTML
>>>>>Date: Wed, 27 Feb 2008 17:30:15 -0700
>>>>
>>>>>
>>>>>There is no "doctype" in my aspx page. It's an ordinary aspx page
>>>> generated
>>>>>by visual studio.
>>>>>Gary
>>>>>
>>>>>"darrel" <email***@***.com> wrote in message
>>>>>news:email***@***.com...
>>>>>>> Huh?
>>>>>>
>>>>>> What doctype are you using?
>>>>>>
>>>>>> -Darrel
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>
>>>
>>
>>
>
>
>
|
| |
|
| |
 |
Lars

|
Posted: 2008-2-29 22:49:00 |
Top |
dotnet-framework-aspnet >> VS mangles HTML
HI
I'm evaluating VS2008 and the design of webpages isn't as good as other html
tools like Dreamweaver. I still suggest you write the forms in VS and the
information pages in Dreamweaver.
However I haven't seen VS2008 mangle my HTML (ASPX) pages at all. I can swap
between design and source view of the ASPX file. SInce I don't edit HTML
pages i VS I can't tell if VS2008 mangles HTML files. But it's not easy to
create HTML pages with VS.
And really, you shouldn't have to design or format any HTML tag. That should
be done in CSS files only. But there is one thing I need to find out for
this. That is how to read an HTML page from file and write it to a specific
place on the page. For example I want to put a file myFile.hml in a page
that is a subpage to a master page. The following writes the output at the
start of the returning html file.
protected void Load_Page(s............)
{
Response.WriteFile("~/MyFile.htm");
}
Does any one now of how to write Responce to the subpage
Lars
""Steven Cheng"" <email***@***.com> skrev i meddelandet
news:email***@***.com...
> Hi Gary,
>
> The "Import and Export Settings..." menu item is under "Tools" menu of the
> VS IDE. Also, after you click it, there is an "Reset All Settings" option
> in the popup dialog.
>
> BTW, one possible problem for such html content reformatting is due to the
> aspx page's html markup has some invalid character(or some wrong content
> such as missing a end > tag or quot ). In such cases, the IDE will always
> think the document incorrect/invalid and try to format it wihch cause the
> document be formatted everytime the IDE has performed validation against
> it. Therefore, you can also try checking the aspx page content(you can try
> copy it into a new page and remove content step by step to isolate the
> problem).
>
> Sincerely,
>
> Steven Cheng
>
> Microsoft MSDN Online Support Lead
>
>
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
>
>
> --------------------
>>From: "GaryDean" <email***@***.com>
>>References: <#email***@***.com>
> <email***@***.com>
>>Subject: Re: VS mangles HTML
>>Date: Thu, 28 Feb 2008 15:22:13 -0700
>
>>
>>settings same as our other vs2005 instances. Other instances are not
>>mangling the html.
>>
>>Do you know of a setting that would remove all carriage returns and
>>indentations that make html readable and convert all tags to uppercase?
>>Gary
>>
>>"Juan T. Llibre" <email***@***.com> wrote in message
>>news:email***@***.com...
>>> Please look at "Tools", "Options", "Text Editor", "HTML", "Format",
>>> and hit the "Tag specific options" button.
>>>
>>> You should be able to customize the actions you want there.
>>>
>>> Also, in the validation section for HTML, you could choose a different
>>> type of validation.
>>>
>>>
>>>
>>>
>>> Juan T. Llibre, asp.net MVP
>>> asp.net faq : http://asp.net.do/faq/
>>> foros de asp.net, en espa駉l : http://asp.net.do/foros/
>>> ======================================
>>> "GaryDean" <email***@***.com> wrote in message
>>> news:email***@***.com...
>>>> Steven
>>>> I have went through all the options and I don't see a "reset VS 2005
>>>> options" button or checkbox. There is a "restore file associations"
> but
>>>> that is the only reset I see. It's still happenning and it is costing
>>>> hours of developer time as the page is almost impossible to work with.
>>>> Also if I type in <table> <tr> <td> </td> </tr> <table> it gets
> converted
>>>> to <TABLE> <TBODY> ......
>>>>
>>>> The <TBODY> is getting inserted into the html!!
>>>>
>>>> Also I don't even see an option for "please make my html completely
>>>> unusable :)
>>>>
>>>>
>>>> Gary
>>>> ""Steven Cheng"" <email***@***.com> wrote in message
>>>> news:email***@***.com...
>>>>> Hi Gary,
>>>>>
>>>>> As for the VS 2005 HTML designer, it has improved much for HTML
>>>>> formatting
>>>>> comparing to VS 2003 though there may still exists some automatic
>>>>> changes
>>>>> in html source of page. I think the problem you meet is probably a
>>>>> specific
>>>>> issue. Have you tried editing the same page in some other box(with VS
>>>>> 2005
>>>>> installed) or some other pages to see whether the same problem will
>>>>> occur?
>>>>>
>>>>> For html editing, the general settings are in the "Tools-->options-->
>>>>> Text
>>>>> Editor ->...." area. For a quick test in case there may have any
> changes
>>>>> of
>>>>> your VS 2005 IDE settings, you can try reset the VS 2005 settings(or
>>>>> import
>>>>> an existing one from another VS 2005 IDE) via the "Tools-->Import and
>>>>> Export Settings Wizard..."
>>>>>
>>>>> Sincerely,
>>>>>
>>>>> Steven Cheng
>>>>>
>>>>> Microsoft MSDN Online Support Lead
>>>>>
>>>>>
>>>>>
>>>>> ==================================================
>>>>>
>>>>> 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: "GaryDean" <email***@***.com>
>>>>>>Subject: Re: VS mangles HTML
>>>>>>Date: Wed, 27 Feb 2008 17:30:15 -0700
>>>>>
>>>>>>
>>>>>>There is no "doctype" in my aspx page. It's an ordinary aspx page
>>>>> generated
>>>>>>by visual studio.
>>>>>>Gary
>>>>>>
>>>>>>"darrel" <email***@***.com> wrote in message
>>>>>>news:email***@***.com...
>>>>>>>> Huh?
>>>>>>>
>>>>>>> What doctype are you using?
>>>>>>>
>>>>>>> -Darrel
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>>
>
|
| |
|
| |
 |
| |
 |
Index ‹ dotnet-framework-aspnet |
- Next
- 1
- Sizing start page based on client display settingHi just wondering if there is a way to automatically set the start page to
fit the display on the client machine? This seems to be dependent on what
pixel settings the client has for its display.
Thanks.
--
Paul G
Software engineer.
- 2
- 3
- How to save a TreeView?Hi Experts:
I'm using ASP.NET 2.0. I'm using a TreeView control with a design-time
configured XmlDataSource (an XML file). I use the TreeView control as a
"message board" with each node representing a message. I noticed that the
TreeView loads alright from the XML file but did not save anything. I call
the TreeView.Save() for each new node added into the TreeView. What I'm
missing here?
Thanks in advance!
Polaris
- 4
- Can't install sqlserver express due previous betaAfaik, i removed all beta parts.
I do work with free VWD express version since nov-7th !
All installed fine except for the SQL server part.
This might be since i removed an existing sql server version rather
drastically, it wouldn't uninstall.
What should i remove to allow installing?
I mean manually since there are no refers in the software uninstall panel
(grrrr)
:)
- 5
- Webservice NamespaceHi
My web service resides at
http://www.mydomain.com/staff/staffws/StaffWS.asmx. The web method itself is
called GetStaffDiary(). What is the namespace I should use at the top of the
web service?
Thanks
Regards
- 6
- FormsAuthentication and Local Intranet ZoneI'm a bit stumped by this one: It seems that when I connect to my
application using the server's intranet name (http://intranetserver/MyApp/)
FormsAuthentication kicks back the user to the Login page after I call
RedirectFromLoginPage. It works fine if I access the server by IP address
(http://xx.xx.xx.xx) and if I access the server over its public domain name
(http://www.myserver.com).
Why is this happening?
I have IIS set to Anonymous Auth. Windows Auth is disabled. My web.config
auth section looks like this
<authentication mode="Forms">
<forms name=".MyAppAuth" loginUrl="Logon.aspx"/>
</authentication>
<authorization>
<deny users="?"/>
</authorization>
--
-C. Moya
www.cmoya.com
- 7
- TemplateColumn & BoundColumnA DataGrid can be changed to the editable mode by using a
TemplateColumn (say, with a Label in the ItemTemplate & a TextBox in
the EditItemTemplate) as well as by using a BoundColumn (which will
automatically change to a TextBox when the DataGrid is in the editable
mode).
So when should a TemplateColumn (with an ItemTemplate & an
EditItemTemplate) be used & when should a BoundColumn be used?
- 8
- Forms Authentication across directoriesI have an application on my local machine that has a 'Manager' folder which
holds the content management/admin pages to the site. I'd like to administer
forms authentication for the pages in this folder alone. Do I have to make
this a new application in IIS? If so, can I use user controls in the main
application?
Thanks,
Nathan
- 9
- Understanding/explaining WebZones....The SDK has me a bit confused with respect to WebPartZones and the sections
within them. The SDK page for the WebZone has s table that lists the sections
within a zone: header/body/chrome/part controls/footer.
I get the header and footer sections, but the other three are a big hazy
to me... please correct these statements where appropirate (as I don't think
I have it just right). Two (part controls & chrome) of the items listed as
"sections" doesn't quite make sense to me as they seem to be more of categories/labels
than sections.
The body is essentially everything in the WebPart sans header and footer.
The Part Controls are essentially any controls added to the zone... correct?
The chrome is all the UI components/elements within the zone... correct?
If so, then why call chrome & part controls a section?
--
-AC [MVP MCMS]
http://www.andrewconnell.com
http://www.andrewconnell.com/mvp
- 10
- dynamic webservice creationHi all,
Is it possible in .Net 2.0 to host a Webservice without ISS? Yes, I've
seen the articles and saw it was possible, but I would like the
webservices to be dynamic and be created at runtime, including the WSDL
creation and execution. Suggestions are welcome.
Greetings,
Arnoud
- 11
- How to show more error message?I use these setting in Web.Config
<customErrors mode="On"
defaultRedirect="~/ErrorPage/GenericErrorPage.aspx">
<error statusCode="403" redirect="~/ErrorPage/NoAccess.aspx"/>
<error statusCode="404" redirect="~/ErrorPage/NotFound.aspx"/>
<error statusCode="500" redirect="~/ErrorPage/InternalError.aspx"/>
</customErrors>
The error of Code 403 and 404 is clear and it will transfer to a assigned
page.
But when the error StatusCode is 500 or not defined, I want to show
something more detail to user on the errorPage.
I have tried string sMsg = Server.GetLastError().Message in
InternalError.aspx and GenericErrorPage.aspx,
But the GetLastError() always return null.
How can I do?
- 12
- Can someone ExplainRun at server and Client javascriptsHi
i'm still getting my head around developing in a web environement.
I have a server button. on the load Page_Load event i use the following code
to register a client script.
btnReturn.Attributes.Add("onclick", "javascript:NewPatient()")
one thing i've noticed is that although the code fires it still seems to
come back to the server. (i had assumed that if their was only javascript
event it would only run at the client. But if there was both then it would
run first at the client and then the server)
I used a html button and in its onlick event it fired the same function but
did no do a postback to the server.
Can someone tell me a site that explains in numpty language what is going on
and how to create client side scripts/ assign them correctly.
Cheers
- 13
- Cross page data: Session, Viewstate or something else?Hello,
I have a webapp with on each page a "language" drop down list. Now, if I
choose X, I want to initialise the drop down list to X. Easy to understand.
But what is the best way to do this in ASP.NET? The obvious answer is, I
think, the Session object. But one thing annoys me: a session can expire. It
is difficult to guess the expiration time; 20 minutes, 40, 60? I just don't
know. Is there a better way to pass data between pages? I was thinking about
the good old url parameters: page.aspx?language=en. But I don't think that's
the ASP.NET way.
Ideas, suggestions and comments more than welcome.
- 14
- Trying to show a Crystal Report at WebForm1.aspxTrying to show a Crystal Report at WebForm1.aspx:
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here
If Not Page.IsPostBack Then
showReport()
End If
End Sub
Private Sub showReport()
' Filling DataTable
'...
crReportDocument.SetDataSource(MyDataTable)
CrystalReportViewer1.ReportSource = crReportDocument
End Sub
Crystal Report shows on the web page very well. But if you click on
link page number 2, trying to get the next page, WebForm1.aspx will be
reloaded again, as page.ispostback. Then I can't see any more pages but
page1 of my Crystal Report. How could I show a Crystal Report, please?
- 15
- Session Time Out Issue In ASP.NEtT hosted in Windows 2003 Enterprise EditionDear Gurus,
My ASP.NET website is running on .NET 1.1. hosted in windows server 2003
enterprise edition. We are having two sites. They are
1. One internet site
2. One intranet site.
Both these sites are having same aspx pages. No difference at all
between them in page content.
My business logic is hosted as web service which is running in the
intranet site. My intranet site web server also hosts a legacy web speed
application whose authentication is controlled by the new ASP.NET
application. This is being achieved through setting some cookies.
Most of my ASPX pages are popup pages.
We are facing one peculiar problem in the intranet site. After
authentication When ever a user clicks any one of the links of the popup
windows the session is getting timed out. But when we navigate with
normal pages this does not happen.
This problem occurs only in the intranet web server where my web
service and the legacy wep speed application is hosted.
The same asp.net code which is hosted in internet web server does bot
pose any problem.
Last time when we had this prolem we have replaced the dlls which are
working fine in the internet site to the intranet site virtual
directory. Then this problem was solved. But now after some time this
problem is coming again in the same pattern.
Could any one thorw some light on this?
Early response is appreciated.
with regds,
Vasu
*** Sent via Developersdex http://www.developersdex.com ***
|
|
|