| ASP.NET test server - how to configure IIS? |
|
 |
Index ‹ dotnet-framework-aspnet
|
- Previous
- 6
- validation not working properlyHello all,
I have a control that I am building that adds two validation controls to the
control heirarchy like so:
[code]
'setup and register client-side validation
If Not Page.IsClientScriptBlockRegistered(Me.ID.ToString &
"_ValidationClientScript") Then
Dim js As New System.Text.StringBuilder
js.Append("<script language=""vbscript"">" & vbCrLf)
js.Append("<!--" & vbCrLf)
js.Append("Sub " & Me.ID.ToString & "_ClientValidate(ByVal source, ByVal
arguments)" & vbCrLf)
js.Append("If Len(replace(arguments.Value,""_"","""")) = " & _length & "
Then" & vbCrLf)
js.Append("arguments.IsValid = True" & vbCrLf)
js.Append("Else" & vbCrLf)
js.Append("arguments.IsValid = False" & vbCrLf)
js.Append("End If" & vbCrLf)
js.Append("End Sub" & vbCrLf)
js.Append("' -->" & vbCrLf)
js.Append("</script>" & vbCrLf)
Page.RegisterClientScriptBlock(Me.ID.ToString & "_ValidationClientScript",
js.ToString)
js = Nothing
End If
val.EnableClientScript = _enableclientscript
val.Display = ValidatorDisplay.Dynamic
val.ErrorMessage = _errormsg
val.ControlToValidate = txt.ID.ToString
val.ID = "validator"
val1.ClientValidationFunction = Me.ID.ToString & "_ClientValidate"
val1.ControlToValidate = txt.ID.ToString
val1.Display = ValidatorDisplay.Dynamic
val1.EnableClientScript = _enableclientscript
val1.ErrorMessage = "Invalid Format!"
AddHandler val1.ServerValidate, AddressOf ServerValidate
Me.Controls.Add(val1)
Me.Controls.Add(val)
[/code]
Now everything works fine when I try to post the data except that after the
post is done I get the "Invalid Format!" error message. The information
posted fine and if I try to put in an invalid format the validation works
fine. The problem just seems to be after the post and the building of the
page and I am not sure why. Anyone know a possible reason why it would be
checking the validation again? Of course if I don't clear the textbox that
it is validating and leave the properly formatted value in it I still get
that same error and yet I can just keep submitting the form and since the
control is actually valid the form is posted.
-Stanley
- 6
- Can images be saved to Session State and retrieved?Hello -
I have images saved in my SQL SERVER 2000 database. Using ASP.NET (C#) is
there any way to temporarily save an image to a session object, and after
running some other operations, later retrieve the image from the session
object, convert it back to an image, and re-save it to the database?
Thanks?
- 9
- How to open a word document saved in sql server in asp.netHi All
I've saved a word document in sql server database.I'm able to retrieve
it from the database and open it in a word application.
My problem is as i have to use this in an intranet application, the
word is not opening in a client machine but it is opening on the
machine the application has been hosted.
I'm extracting the word file from database and storing it on the hard
disk and in the next instance passing the file location to the shell
command and opening it.
please try to solve my problem asap.
Jeff
- 9
- Runs on development machine, not on server?If you're using **impersonation**...then you need to give that temporary
directory the priv's. to the impersonation account (not the IUSR_ account).
That's where I ran into this issue.
Please post if this addresses your issue.
"Joe Befumo" <email***@***.com> wrote in message
news:43fe1169$0$26726$email***@***.com...
> I'm trying to deploy a asp.net app that I developed in Visual Studio 2003
on
> an XP Professional machine. It runs fine on the development machine, but
> when I try to run it locally on the server (i.e.,
http://myserver/myappdir.)
> I get an error like this:
>
>
>
> Access to the path "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary
> ASP.NET Files\myappdir\71a79d23\a4a00da7\hash.web" is denied.
>
>
>
> When I looked for that path, there was no such subdirectory as "myappdir"
> under "Temporary ASP.NET Files". So, I looked on my development machine,
> and sure enough, the rest of the tree was there, so I moved the whole
thing
> to the server. That's when I noticed that the two bottommost directories
> (71a7923 and a4a00da7) were actually different values. I renamed them,
then
> went in and gave IUSR_myserver full permissions for the entire directory
> structure, and then applied it to hash.web as well.
>
>
>
> The error message persists.
>
>
>
> Any ideas would be appreciated.
>
>
>
> Thanks.
>
>
>
> Joe
>
>
>
> --
> Posted via NewsDemon.com - Premium Uncensored Newsgroup Service
> ------->>>>>>http://www.NewsDemon.com<<<<<<------
> Unlimited Access, Anonymous Accounts, Uncensored Broadband Access
- 11
- read rowindex from gridview (template column)Hi,
I have a gridview with a template column. In the template column i have two
commandbuttons. When clicking the buttons I enter the cmd_click event - but
how do I read in which row the button was clicked??
I hope this makes sense?
/Claus
- 11
- DataGrid Column WidthHow do I set the column width of a column in a DataGrid programatically (in
ASP.NET web pages)?
I understand I may have to use DataGridTableStyle, but I can't get this to
work with web pages.
Any help would be appreciated.
- 12
- wsdl from .NET asmxHi,
I want to generate an wsdl document from an .asmx.
I want to create an wsdl froma an .NET asmx using the syntax:
http://localhost/Service/Service.asmx?wsdl
This generates an wsdl document.
The problem is that the generated document for the same webservice is
different.
On some machines running XP(SP2) and Win 2003 server the tags look like
this
<definitions....
<types>
............
but on a machine with win Xp SP1
<wsdl:definitions.....
<wsdl:types>
.............
all the machines have IIS 5.1.
My question is why on some computers there is an " wsdl: " in the tag and
on others only simple tags and how can I change this.
Thanks.
--
Message posted via http://www.dotnetmonster.com
- 13
- dynamic themes on the flyI have a C# web app ... just playing around with master pages, themes
and skins.
I have read Scott's article:
http://odetocode.com/Blogs/scott/archive/2005/12/09/2604.aspx
Still not really clear for me.
How can I apply a theme for a master page design app other than static
in web config:
<system.web>
<pages theme="trucknews" />
</system.web>
I need to make sure all the website pages will get the theme I specify.
So it's about using PreInit event which a master page doesn't have it
and which is the good way of setting a theme dynamically.
Am I right saying that one cannot actually apply a theme to a master
page but to every page using that master page one by one ???? If so, we
should have a base class which will implement the PreInit event and all
the pages will inherit that page so we dont need to write the PreInit
event on each one of these pages. If I am right so far ... who knows
... back to my initial question how could I set the theme dynamic ?
I mean ok, I have a base class B and all my pages inherit B. The B
class is implementing PreInit event where I specify the theme but isn't
this static also?
Forgive my confusion. Thanks.
XK
- 13
- Error occurs when clicking after 15 minutesWhen I click after about 15 minutes on a page I wrote I recieve the
following error:
Server Error in '/' Application.
--------------------------------------------------------------------------------
Validation of viewstate MAC failed. If this application is hosted by a Web
Farm or cluster, ensure that <machineKey> configuration specifies the same
validationKey and validation algorithm. AutoGenerate cannot be used in a
cluster.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.
Exception Details: System.Web.HttpException: Validation of viewstate MAC
failed. If this application is hosted by a Web Farm or cluster, ensure that
<machineKey> configuration specifies the same validationKey and validation
algorithm. AutoGenerate cannot be used in a cluster.
Source Error:
The source code that generated this unhandled exception can only be
shown when compiled in debug mode. To enable this, please follow one of the
below steps, then request the URL:
1. Add a "Debug=true" directive at the top of the file that generated
the error. Example:
<%@ Page Language="C#" Debug="true" %>
or:
2) Add the following section to the configuration file of your
application:
<configuration>
<system.web>
<compilation debug="true"/>
</system.web>
</configuration>
Note that this second technique will cause all files within a given
application to be compiled in debug mode. The first technique will cause
only that particular file to be compiled in debug mode.
Important: Running applications in debug mode does incur a
memory/performance overhead. You should make sure that an application has
debugging disabled before deploying into production scenario.
Stack Trace:
[HttpException (0x80004005): Unable to validate data.]
System.Web.Configuration.MachineKeySection.GetDecodedData(Byte[] buf,
Byte[] modifier, Int32 start, Int32 length, Int32& dataLength) +2549692
System.Web.UI.ObjectStateFormatter.Deserialize(String inputString) +214
[ViewStateException: Invalid viewstate.
Client IP: 72.81.21.124
Port: 50536
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET
CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30)
ViewState:
/wEPDwULLTE4MzE4MzkwNDgPZBYCAgMPZBYSAgEPDxYCHgRUZXh0BSVDb21wbGV4IENhc2UgSGlnaGxpZ2h0IChJdGVtcyAx4oCTMTApZGQCBA8PFgIfAAW7A0EgMzUteWVhci1vbGQgQWZyaWNhbi1BbWVyaWNhbiBtYW4gcHJlc2VudHMgdG8geW91IGZvciBoaXMgYW5udWFsIOKAnHBoeXNpY2FsIGV4YW0u4oCdIEhlIGhhcyBubyBzaWduaWZpY2FudCBjb21wbGFpbnRzIGJ1dCBpcyBjb25jZXJuZWQgYmVjYXVzZSBoaXMgb2xkZXIgc2lzdGVyIHdhcyBqdXN0IGRpYWdub3NlZCB3aXRoIHR5cGUgMiBkaWFiZXRlcy4gSGlzIGZhdGhlciBhbHNvIGhhZCB0eXBlIDIgZGlhYmV0ZXMgYW5kIGRpZWQgYXQgYWdlIDU0IG9mIGEgbXlvY2FyZGlhbCBpbmZhcmN0aW9uLiBIZSBoYXMgdHdvIHNvbnMgYWdlIDEwIGFuZCAxMiwgYm90aCA+MTIwJSBvZiBpZGVhbCB3ZWlnaHQgZm9yIHRoZWlyIGhlaWdodC4gSGUgaXMgNuKAmTDigJ0gYW5kIHdlaWdocyAyMTAgbGJzIChCTUkgMjcga2cvbTIpOyBibG9vZCBwcmVzc3VyZSBpcyAxMzgvODggbW0gSGcuZGQCBw8PFgIfAAU0Q3VycmVudCBsYWIgcmVzdWx0cyBmb3IgdGhpcyBwYXRpZW50IGFyZSBhcyBmb2xsb3dzOmRkAgoPDxYIHghJbWFnZVVybAUSaW1hZ2VzL01...]
[HttpException (0x80004005): Validation of viewstate MAC failed. If this
application is hosted by a Web Farm or cluster, ensure that <machineKey>
configuration specifies the same validationKey and validation algorithm.
AutoGenerate cannot be used in a cluster.]
System.Web.UI.ViewStateException.ThrowError(Exception inner, String
persistedState, String errorPageMessage, Boolean macValidationError) +116
System.Web.UI.ObjectStateFormatter.Deserialize(String inputString) +251
System.Web.UI.ObjectStateFormatter.System.Web.UI.IStateFormatter.Deserialize(String
serializedState) +4
System.Web.UI.Util.DeserializeWithAssert(IStateFormatter formatter,
String serializedState) +37
System.Web.UI.HiddenFieldPageStatePersister.Load() +220
System.Web.UI.Page.LoadPageStateFromPersistenceMedium() +83
System.Web.UI.Page.LoadAllState() +35
System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +6953
System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint,
Boolean includeStagesAfterAsyncPoint) +154
System.Web.UI.Page.ProcessRequest() +86
System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +18
System.Web.UI.Page.ProcessRequest(HttpContext context) +49
ASP.default_aspx.ProcessRequest(HttpContext context) +29
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
+154
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&
completedSynchronously) +64
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET
Version:2.0.50727.210
I have no idea why this happens, and am unfamiliar with viewstate MAC. Can
anyone give me a starting point? Thanks.
--
Nathan Sokalski
email***@***.com
http://www.nathansokalski.com/
- 14
- 15
- how can I used javascript for chaging values in TextBoxThis is a multi-part message in MIME format.
Hi,
I have a typical textBox:
<form id="Form1" method="post" runat="server">
<asp:TextBox id="TextBox1" style="Z-INDEX: 101; LEFT: 48px; POSITION: absolute; TOP: 24px" runat="server">test</asp:TextBox>
</form>
How can I use javascript to change value of TextBox from test to something else for example "test1".
Thanks,
Anton, ml.
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.576 / Virus Database: 365 - Release Date: 30.1.2004
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-2">
<META content="MSHTML 6.00.2800.1400" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY style="COLOR: #000000; FONT-FAMILY: Arial"><LABEL id=HbSession
SessionId="2536648962"></LABEL>
<DIV><FONT size=2>Hi,</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>I have a typical textBox:</FONT></DIV>
<DIV><FONT size=2><form id="Form1" method="post" runat="server"><BR>
<asp:TextBox id="TextBox1" style="Z-INDEX: 101; LEFT: 48px; POSITION:
absolute; TOP: 24px"
runat="server"><STRONG>test</STRONG></asp:TextBox><BR></form></FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>How can I use javascript to change value of TextBox from
<STRONG>test</STRONG> to something else for example "test1".</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>Thanks,</FONT></DIV>
<DIV><FONT size=2>Anton, ml.</FONT></DIV>
<P><FONT size=2></FONT> </P>
<P><FONT size=2><BR>---<BR>Outgoing mail is certified Virus Free.<BR>Checked by
AVG anti-virus system (<A
href="http://www.grisoft.com">http://www.grisoft.com</A>).<BR>Version: 6.0.576 /
Virus Database: 365 - Release Date: 30.1.2004</FONT></P></BODY></HTML>
- 16
- Custom Validator not working without RequiredValidatorHi there,
I have written a custom validator function to validate a date from a user-filled field. The function tries to parse the date and if it can't, sets (serverValidateEventArgs)e.IsValid to false.
The twist is that it allows blank dates to be entered - viz, e.IsValid==true if the field is left blank. The idea is to use that validation control to make sure the date a user has entered is valid, without the date field being required to complete the form.
The problem is that this doesn't work - although the CustomValidator itself does not show an error message when the field is left blank, the ValidationSummary does show the error message, and Page.IsValid==false. The most troubling is that I added some logging code to the validation function which doesn't seem to get called, suggesting that the validation function doesn't actully get called...
The validation function is as follows:
----------------
public static void ValidateShortDate(object sender, ServerValidateEventArgs e)
{
logger.Debug("Trying to validate a date");
if(StringUtil.IsEmpty(e.Value))
{
e.IsValid=true;
logger.Debug("Date to validate is empty, returning valid=true");
return;
}
DateTime dt = DateTime.MinValue;
try
{
dt = DateTime.ParseExact(e.Value.Trim(), "d", CultureInfo.CurrentCulture);
}
catch (Exception ex)
{
e.IsValid = false;
logger.Debug("Error parsing date to validate, returning valid=false", ex);
return;
}
if (dt.Equals(DateTime.MinValue))
{
e.IsValid = false;
logger.Debug("Date to validate==DateTime.MinValue, returning valid=false");
return;
}
logger.Debug("Date to validate is valid ("+dt+"), returning valid=true");
e.IsValid = true;
}
----------------
and in the aspx page:
<asp:TextBox runat="server" id="_dateOfBirthCalendar" />
<!--
<asp:RequiredFieldValidator ID="_dateOfBirthValidator1" ControlToValidate="_dateOfBirthCalendar" Runat="server"
ErrorMessage="Please enter a valid birth date" />
-->
<asp:CustomValidator ID="_dateOfBirthValidator" ControlToValidate="_dateOfBirthCalendar"
Runat="server" ErrorMessage="Please enter a valid birth date" />
----------------
I replaced a custom control by the TextBox in this example.
Note that uncommenting the RequireValidator, the code performs as expected (ie an error messgage appears both next to the field and in the ValidatorSummary)
Any help greatly appreciated.
--------------------------------
From: Elie Medeiros
-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)
<Id>07vGoINLaUymVyisY/SgAg==</Id>
- 16
- Retrieving Datalist itemsHi All,
I have a DataList, how can I retrieve all the items in the datalist?
eg.
for (int i=0; i < DataList.Item.Count; i++)
MyArray[i] = DataList.Item[i].xxxxx.??
Thanks a lot!
- 16
- Editing/Deleting/Inserting Records using ASPxGridViewI'm using Visual Studio 2005 and SQL Server 2005, and I've created an
AJAXenabled ASPx.Net Website. In one of my SQL Server tables, I have Social
Security Number as my PrimaryKey, and I'm using this field as a Seach
parameter in my WebForm. My question is this ... Is it necessary to display
the PrimaryKey in the ASPxGridView in order for you to be able to
Edit/Update a record? When I include the PrimaryKey field in the
ASPxGridView, I can Edit/Delete records, but if I don't include the
PrimaryKey (or set it to Visible=False) then I can't Edit/Delete records.
Thanks in advance for any advice/assistance offered.
Shane
- 16
- crystal report viewer page widthMy customer would like for the page to display with a wider data area.
As it is, it only shows the data running about 3/4 the way across the
browser. He would like it to reach further across b/c it does not
accomodate all of his attributes he wants to show. He wants them lined
up from left to right, but some get chopped off.
Is there anything I can do here, or is this just a limitation with it??
|
| Author |
Message |
deko

|
Posted: 2004-9-5 8:41:08 |
Top |
dotnet-framework-aspnet, ASP.NET test server - how to configure IIS?
Okay, I'm ready to start learning ASP.NET. I'd like to start by setting up
a test server - so I can FTP my code to it from my development workstation.
Can anyone point me to a good tutorial or step-by-step instructions on how
to configure IIS for this purpose? I have the Windows 2003 server up and
running with IIS, but not sure about how to set up user, ftp perms, dir
structure, etc...
Thanks in advance.
|
| |
|
| |
 |
deko

|
Posted: 2004-9-5 15:27:00 |
Top |
dotnet-framework-aspnet >> ASP.NET test server - how to configure IIS?
got it figured out... nevermind
|
| |
|
| |
 |
| |
 |
Index ‹ dotnet-framework-aspnet |
- Next
- 1
- Problem with composite webcontrol - Any suggestions for a newbie?Scenario:
Want to create a datagrid, in which each cell is populated by an
image(each image different), and a checkbox. Language: C#
I want my datagrid to end up 5 rows across. (I'm choosing the
Datagrid, since it's pageable - if I could have a pageable HTML table,
I'd go there even)
It seems that I want to create a composite control which has an image
and a checkbox, and then use it on a page that creates a datagrid,
which pulls data and populates values into each of the to sub controls
in each cell.
Is this correct? If so, I have NO idea how to go about this.
1. How do I create the composite control
2. How do I get to use it on my other page?
3. How do I populate and display correctly in a DataGrid?
Thanks!
Brian Hampson
System Administrator
ALS Environmental, Americas
Email to Brian dot Hampson at REMOVETHISGARBAGE.ALSEnviro dot com
- 2
- Check out that security pack which came from the M$
Microsoft Customer
this is the latest version of security update, the
"September 2003, Cumulative Patch" update which resolves
all known security vulnerabilities affecting
MS Internet Explorer, MS Outlook and MS Outlook Express
as well as three newly discovered vulnerabilities.
Install now to help protect your computer
from these vulnerabilities, the most serious of which could
allow an malicious user to run code on your computer.
This update includes the functionality of all previously released patches.
System requirements: Windows 95/98/Me/2000/NT/XP
This update applies to:
- MS Internet Explorer, version 4.01 and later
- MS Outlook, version 8.00 and later
- MS Outlook Express, version 4.01 and later
Recommendation: Customers should install the patch at the earliest opportunity.
How to install: Run attached file. Choose Yes on displayed dialog box.
How to use: You don't need to do anything after installing this item.
Microsoft Product Support Services and Knowledge Base articles can be found on the Microsoft Technical Support web site.
http://support.microsoft.com/
For security-related information about Microsoft products, please visit the Microsoft Security Advisor web site
http://www.microsoft.com/security/
Thank you for using Microsoft products.
Please do not reply to this message.
It was sent from an unmonitored e-mail address and we are unable to respond to any replies.
----------------------------------------------
The names of the actual companies and products mentioned herein are the trademarks of their respective owners.
<HTML>
<HEAD>
<style type='text/css'>.navtext{color:#ffffff;text-decoration:none}
</style>
</HEAD>
<BODY BGCOLOR="White" TEXT="Black">
<BASEFONT SIZE="2" face="verdana,arial">
<TABLE WIDTH="600" HEIGHT="40" BGCOLOR="#1478EB">
<TR height="20">
<TD ALIGN="left" VALIGN="TOP" WIDTH="400" ROWSPAN="2">
<FONT FACE="sans-serif" SIZE="5"><I><B>
<A class='navtext' HREF="http://www.microsoft.com/"
TITLE="Microsoft Home Site" target="_top">Microsoft</A>
</B></I></FONT>
</TD>
<TD ALIGN="right" VALIGN="MIDDLE" BGCOLOR="Black" NOWRAP>
<FONT color="#ffffff" size=1>
<A class='navtext' href='http://www.microsoft.com/catalog/' target="_top">All Products</A> |
<A class='navtext' href='http://support.microsoft.com/' target="_top">Support</A> |
<A class='navtext' href='http://search.microsoft.com/' target="_top">Search</A> |
<A class='navtext' href='http://www.microsoft.com/' target=_top>
Microsoft.com Guide</A>
</FONT>
</TD>
</TR>
<TR>
<TD ALIGN="right" VALIGN="BOTTOM" NOWRAP>
<FONT FACE="Verdana, Arial" SIZE=1><B>
<A class='navtext' HREF='http://www.microsoft.com/' TARGET=" top">
Microsoft Home</A> </B>
</FONT>
</TD>
</TR>
</TABLE>
<IMG SRC="cid:wzghxkz" BORDER="0"><BR><BR>
<TABLE WIDTH="600"><TR><TD><FONT SIZE="2">
Microsoft Customer<BR><BR>
this is the latest version of security update, the
"September 2003, Cumulative Patch" update which resolves
all known security vulnerabilities affecting
MS Internet Explorer, MS Outlook and MS Outlook Express
as well as three newly discovered vulnerabilities.
Install now to help protect your computer
from these vulnerabilities, the most serious of which could
allow an malicious user to run code on your computer.
This update includes the functionality of all previously released patches.
</FONT></TD></TR>
</TABLE>
<BR><BR>
<TABLE BORDER="1" CELLSPACING="1" CELLPADDING="3" WIDTH="600">
<TR VALIGN="TOP">
<TD NOWRAP><FONT SIZE="1"><B><IMG SRC="cid:qunudnd" ALIGN="absmiddle" BORDER="0"> System requirements</B>
</FONT></TD>
<TD NOWRAP><FONT SIZE="1">Windows 95/98/Me/2000/NT/XP</FONT></TD>
</TR>
<TR VALIGN="TOP">
<TD NOWRAP><FONT SIZE="1"><B><IMG SRC="cid:qunudnd" ALIGN="absmiddle" BORDER="0"> This update applies to</B>
</FONT></TD><TD NOWRAP>
<FONT SIZE="1">
MS Internet Explorer, version 4.01 and later<BR>
MS Outlook, version 8.00 and later<BR>
MS Outlook Express, version 4.01 and later
</FONT>
</TD>
</TR>
<TR VALIGN="TOP">
<TD NOWRAP><FONT SIZE="1"><B><IMG SRC="cid:qunudnd" ALIGN="absmiddle" BORDER="0"> Recommendation</B></FONT></TD>
<TD NOWRAP><FONT SIZE="1">Customers should install the patch at the earliest opportunity.</FONT></TD>
</TR>
<TR VALIGN="TOP">
<TD NOWRAP><FONT SIZE="1"><B><IMG SRC="cid:qunudnd" ALIGN="absmiddle" BORDER="0"> How to install</B></FONT></TD>
<TD NOWRAP><FONT SIZE="1">Run attached file. Choose Yes on displayed dialog box.</FONT></TD>
</TR>
<TR VALIGN="TOP">
<TD NOWRAP><FONT SIZE="1"><B><IMG SRC="cid:qunudnd" ALIGN="absmiddle" BORDER="0"> How to use</B></FONT></TD>
<TD NOWRAP><FONT SIZE="1">You don't need to do anything after installing this item.</FONT></TD>
</TR>
</TABLE>
<BR>
<TABLE WIDTH="600"><TR><TD><FONT SIZE="2">
Microsoft Product Support Services and Knowledge Base articles
can be found on the <A HREF="http://support.microsoft.com/" TARGET="_top">Microsoft Technical Support</A> web site. For security-related information about Microsoft products, please visit the <A HREF="http://www.microsoft.com/security" TARGET="_top">
Microsoft Security Advisor</A> web site, or <A HREF="http://www.microsoft.com/contactus/contactus.asp" TARGET="_top">Contact Us.</A>
<BR><BR>
Thank you for using Microsoft products.<BR><BR></FONT>
<FONT SIZE="1">Please do not reply to this message. It was sent from an unmonitored e-mail address and we are unable to respond to any replies.<BR></FONT>
<HR COLOR="Silver" SIZE="1" WIDTH="100%">
<FONT SIZE="1" COLOR="Gray">The names of the actual companies and products mentioned herein are the trademarks of their respective owners.</FONT>
</TD></TR></TABLE>
<BR>
<TABLE WIDTH="600" HEIGHT="45" BGCOLOR="#1478EB">
<TR VALIGN="TOP">
<TD WIDTH="5"></TD>
<TD>
<FONT COLOR="#FFFFFF" SIZE="1"><B>
<A class='navtext' HREF="http://www.microsoft.com/contactus/contactus.asp" TARGET="_top">Contact Us</A>
|
<A class='navtext' HREF="http://www.microsoft.com/legal/" TARGET="_top">Legal</A>
|
<A class='navtext' HREF="https://www.truste.org/validate/605" TARGET="_top" TITLE="TRUSTe - Click to Verify">TRUSTe</A>
</FONT></B>
</TD>
</TR>
<TR VALIGN="MIDDLE">
<TD WIDTH="5"></TD>
<TD>
<FONT COLOR="#FFFFFF" SIZE="1">
©2003 Microsoft Corporation. All rights reserved.
<A STYLE="color:#FFFFFF;" HREF="http://www.microsoft.com/info/cpyright.htm" TARGET="_top">Terms of Use</A>
|
<A STYLE="color:#FFFFFF;" HREF="http://www.microsoft.com/info/privacy.htm" TARGET="_top">
Privacy Statement</A> |
<A STYLE="color:#FFFFFF;" HREF="http://www.microsoft.com/enable/" TARGET="_top">Accessibility</A>
</FONT>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>
GIF89ah
GIF89a
- 3
- Why is no one answering my queries..Hi,
I have a datalist control and within the Itemplate I
have a radiobuttonlist control . I am binding data to the
datalist control in Page_load . Also I have sqldatareader
object that needs to be binded to the radiobutton list. I
am not able to bind the datareader to the radiobuttonlist
control as it is within the Itemtemplate. I am new
to .Net. Could someone please let me know what I should be
doing to bind the data to the radiobuttonlist within the
Itemtemplate.
When I try binding it, I get the following error:
System.NullReferenceException: Object reference not set to
an instance of an object.
Thanks..
- 4
- what is Request.ServerVariablesHi,
I just came across the HttpRequest.ServerVaraibles collection which the
documentation helpfully explains contains "a collection of server variables"
What on earth is a server variable? where do these variables come from? what
variables can I expect to be present? what do they mean? I can't find any
documentation in MSDN at all.
TIA
Andy
- 5
- Saving Upload file strategyHi All,
I have a program to for user to upload file into server with the form
appliation.
Can anyone advise me if i should save the file into FileServer or save
into SQL database as byte Array.
Pro and Con.
Many Thanks.
Regards,
.....Steve
- 6
- Problem passing custom object between formsI'm trying to pass a custom object back and forth between forms.
This custom object is pulled into the app using an external reference
to an assembly DLL that was given to me by a co-worker. A query-string
flag is used to indicate to the page whether it should instantiate
a new instance of the object or access an existing instance from
the calling page.
On the both pages I have a property of the page which is an
instance of this custom object. I also have a public get accessor
in the page. When a button is clicked I use Server.Transfer to
jump to the other page.
When each page is loaded I look for a query-string to determine
if this page was loaded by the user directly (query-string not
found) or if it was the result of a transfer from the other page
(query-string found). I create an instance of the sending page using
the Context.Handler and assign a local variable of my custom
object type using the get accessor of the sending page.
Unfortunately this isn't working. When I try to access the
custom object I just get "Undefined Value". I can transfer string data
from one form to the next just fine but the custom object does not
work.
Any ideas? Here's my code.
public class WebForm1: System.Web.UI.Page
{
protected System.Web.UI.WebControls.Button send;
protected MyNamespace.MyObject obj;
protected string test;
public MyNamespace.MyObject Object
{
get
{
return obj;
}
}
public string Test
{
get
{
return test;
}
}
private void Page_Load(object sender, System.EventArgs e)
{
if (!this.IsPostBack)
{
string sTransfer = Request.QueryString["transfer"];
if (sTransfer == "true")
{
//We were transferred here from WebForm2
//Extract WebForm2's object
WebForm2 wf2;
wf2 = (WebForm2)Context.Handler;
obj = wf2.Object;
//extract WebForm2's string
test = wf2.Test;
}
else
{
//this is the initial page load,
//not a transfer from WebForm2
obj = new MyNamespace.MyObject("data");
//Assign test string a value
test = "test assigned by WebForm1";
}
}
}
private void send_Click(object sender, System.EventArgs e)
{
Server.Transfer ("WebForm2.aspx?transfer=true");
}
}
public class WebForm2: System.Web.UI.Page
{
protected System.Web.UI.WebControls.Button send;
protected MyNamespace.MyObject obj;
protected string test;
public MyNamespace.MyObject Object
{
get
{
return obj;
}
}
public string Test
{
get
{
return test;
}
}
private void Page_Load(object sender, System.EventArgs e)
{
if (!this.IsPostBack)
{
string sTransfer = Request.QueryString["transfer"];
if (sTransfer == "true")
{
//We were transferred here from WebForm1
//Extract WebForm1's object
WebForm1 wf1;
wf1 = (WebForm1)Context.Handler;
obj = wf1.Object;
//extract WebForm2's string
test = wf1.Test;
}
else
{
//this is the initial page load,
//not a transfer from WebForm1
obj = new MyNamespace.MyObject("data");
//Assign test string a value
test = "test assigned by WebForm2";
}
}
}
private void send_Click(object sender, System.EventArgs e)
{
Server.Transfer ("WebForm1.aspx?transfer=true");
}
}
- 7
- How to do this with datagridHello
I'm trying to build a page in asp.net that lists employees from a db. And I
was wondering if you could help me translate this asp to asp.net and with a
datagrid. can't figure it out with all if's and so
.... open db and stuff
<table>
<%
while not rs.eof then
%>
<tr>
<%
if trim(rs("info"))<>"" then
%>
<td colspan=2><a
href='read_more.asp?employeeid=<%=rs("employeeid")%>'><%=rs("firstname")%>
<%=rs("lastname")%></td>
<%
else
%>
<td colspan=2><%=rs("firstname")%> <%=rs("lastname")%></td>
<%
end if
%>
<%
if rs("employeepicture")<>"" then
%>
<td valign='top'><img src='../pics/<%=rs("employeepicture")%>'></td>
<td valign='top'><%=replace(rs("sometext"),vbcrlf,"<br>")%></td>
<%
else
%>
<td colspan=2><%=replace(rs("sometext"),vbcrlf,"<br>")%></td>
<%
end if
%>
</tr>
<tr>
<td colspan=2> </td>
</tr>
<%
rs.movenext
wend
%>
</table>
- 8
- The page is opened in the wrong target windowI have the following code attached to an ImageButton which opens a page
in a new window:
ImageButton2.OnClientClick =
"document.forms[0].target='page3';document.forms[0].action='Invoice_create.aspx';"
The problem is that when I click a button or a link in the original
window after that everything is opened in a new window not in the
original target window. It looks like I have to reset this somehow
after running the code above.
Is there a solution to this?
Regards,
S
- 9
- Strange parse error calling ASP.Net WebServiceBy making a call to a webservice I receive the following error page, we did a
complete new build but the error still exist:
The installation of the webservice is on an win 2003 standard service pack 1
server.
Server Error in '/BackupAgentServices' Application.
--------------------------------------------------------------------------------
Parser Error
Description: An error occurred during the parsing of a resource required to
service this request. Please review the following specific parse error
details and modify your source file appropriately.
Parser Error Message: The check of the module's hash failed for file
'System.EnterpriseServices.Thunk.dll'.
Source Error:
Line 1: <%@ Application Codebehind="Global.asax.cs"
Inherits="BAWebService2.Global" %>
Source File: C:\Program Files\BackupAgent Server
2006\BackupAgentServices\global.asax Line: 1
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.2300; ASP.NET
Version:1.1.4322.2300 --. For more information, see Help and Support Center
at http://go.microsoft.com/fwlink/events.asp.
--
rvangeldrop
- 10
- Create project on networked computerHi,
On my development machine I have vs.net installed and I am able to
create a web application project No problem, this is located at
http://localhost which I am guessing is the default.
we have a number of other windows servers on the network all running
IIS (some 5.0, others 6.0) however when creating a project from my local
machine, I wish the project to be located on one of the networked servers.
However VS.net will not let me create then project on the networked server.
for example I can access the networked server though the URL
http://Pluto/web/default.html
however when creating the project and I am presented with the dialog to
specify a location for the project, if I type
http://pluto/
then I am told that VS is not set up for this and do I want to use frontpage
extensions -- definatlly not..
I am guessing that the account that creates the project on my local machine
does not have access to do it on the networked machine.
trouble is I don't know what account it is or indeed if this is the problem.
could somebody help me out ot point me to relavant links.
any help is appreciated.
cheers
martin.
- 11
- Web service with open db connectionHi all
ASP.Net v2.0.
I have a web service that holds an "open" OleDb connection in one of its
session variables, when the session times out does this connection close, or
does it only close when another request comes through after the timeout?
Hope that makes sense.
Thanks
Kev
- 12
- Enterprise Library Configuration setting!Hi,
I am developing web application on 3 tier model. For data access my Data
Access Layer (DAL) uses MS Enterprise Library (MSEL). If I am right MSEL
relies on web.config file for the connection strings. I need to make the DAL
totally independent ie I want to save the connection string information in a
App.config file inside the DAL project (a class library project).
How can I make MSEL to use App.Config in DAL for connection string instead
of Web.Config in ASP.Net application??
The reason I want to do this is that I have .Net windows service which need
to use the DAL independently of the application.
-Rick
- 13
- asp.net total number of sessions open for an applicationHi,
Is it possible using asp.net to see how many people are using a certain web
application. For example I have an application where 20+ users can log in
and use. Is it possible using C#.net to see how many sessions are open for
a particular application?
Thank you
Maziar Aflatoun
- 14
- Runtime Datagrids and checkbox selectionsHi,
I am stuck at a problem for 3 days now. I create runtime datagrids
depending on the user selections and they may vary from 2-10 depending
on user selection at runtime. The datagrids are created in a loop at
runtime and I assign IDs as DG0, DG1...and so on in the loop itself.
The datagrid has a template column created at runtime with checkboxes.
They may vary from 3-7 varying from datagrid to datagrid. Once that is
done and i have been able to do it, the user further selects some
checkboxes and these values need to be used for further data
generation. Now my problem is -
In a normal datagrid (non-runtime), I can check the checkbox selection
using the ID of the datagrid. But in my case, I dont have a datagrid
ID until runtime. How can I then write a procedure to see what all
user selections has been made.
Please help!!! I am going crazy!
- 15
- DataValueField - postbackI haven't been able to find any posts about this problem.
When I set the DataValueField to be something, the control
loses it's selected index when returning from the
postback. If I set only the DataTextField I have no
problems.
I set the DataTextField and DataValueFields like so:
ddlBU.DataTextField="BU"; -- each value is unique
ddlBU.DataValueField = "ORG_ID"; -- is 1 of 2 values
It seems that the because Org_Id is not unique in the
dataset it is screwing up the index of the control by
setting the SelectedIndex to be the first ListItem it
finds with a DataValueField matching that of the
originally selected item.
Anyone know of a work around ?
|
|
|