 |
 |
Index ‹ Web Programming ‹ ASP.Net
|
- Previous
- 1
- ASP.Net >> Issues with handing server events...This is a multi-part message in MIME format.
------=_NextPart_000_000C_01C3C57B.BB2D66F0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
I have a page where I'm displaying articles based on the current year =
selected. My page dynamically builds a few links at the top to select a =
different year than the current one selected (the current year is not =
shown as an option). Then, based on the year selected, I am performing =
some specific logic to display the articles. By default, the first time =
the page loads, I default to the current year.
Within my Page_Load, I have the following:
If Not IsPostBack Then
_currentYear =3D Year(DateTime.Now)
' display the current year selected (Literal control)
CurrentArchiveYear.Text =3D =
_currentYear.ToString()
' build the year selection menu
BuildArchiveMenu()
' build news items
BuildArchiveNewsList()
End If
When it loads the very first time, everything works just fine (the =
display that is). But when someone clicks on one of the year selectors =
in the menu (LinkButton controls with a bound event), the event isn't =
fired. I moved some things around (took everything out of the IF stmt =
above except the _currentYear line ant put it after the IF) to make sure =
it was firing and it was, but it seems the Page_Load is firing BEFORE my =
event handler as my page was loading without error, but the articles =
weren't being written (because it wasn't getting the current year from =
the event handler).
I must be doing something wrong with my order of events... ideas?
------=_NextPart_000_000C_01C3C57B.BB2D66F0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1276" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT color=3D#000080 size=3D2>I have a page where I'm displaying =
articles=20
based on the current year selected. My page dynamically builds a =
few links=20
at the top to select a different year than the current one selected (the =
current=20
year is not shown as an option). Then, based on the year =
selected, I=20
am performing some specific logic to display the articles. By =
default, the=20
first time the page loads, I default to the current year.</FONT></DIV>
<DIV><FONT color=3D#000080 size=3D2></FONT> </DIV>
<DIV><FONT color=3D#000080 size=3D2>Within my Page_Load, I have the=20
following:</FONT></DIV>
<DIV> =
<FONT=20
color=3D#0000ff>If</FONT><FONT color=3D#000000> </FONT><FONT=20
color=3D#0000ff>Not</FONT><FONT color=3D#000000> IsPostBack </FONT><FONT =
color=3D#0000ff>Then</FONT><BR><FONT=20
color=3D#000000> &nb=
sp; =20
_currentYear </FONT><FONT color=3D#0000ff>=3D</FONT><FONT =
color=3D#000000>=20
</FONT><FONT color=3D#0000ff>Year</FONT><FONT =
color=3D#000000>(DateTime.</FONT><FONT=20
color=3D#0000ff>Now</FONT><FONT color=3D#000000>)</FONT><BR><FONT=20
color=3D#000000></FONT><BR><FONT=20
color=3D#000000> &nb=
sp; =20
</FONT><FONT color=3D#008000>' display the current year selected =
(Literal=20
control)</FONT><BR><FONT color=3D#000000> =20
=20
CurrentArchiveYear.Text </FONT><FONT color=3D#0000ff>=3D</FONT><FONT =
color=3D#000000>=20
_currentYear.ToString()</FONT><BR><FONT color=3D#000000></FONT><BR><FONT =
color=3D#000000> &nb=
sp; =20
</FONT><FONT color=3D#008000>' build the year selection =
menu</FONT><BR><FONT=20
color=3D#000000> &nb=
sp; =20
BuildArchiveMenu()</FONT><BR><FONT color=3D#000000></FONT><BR><FONT=20
color=3D#000000> &nb=
sp; =20
</FONT><FONT color=3D#008000>' build news items</FONT><BR><FONT=20
color=3D#000000> &nb=
sp; =20
BuildArchiveNewsList()</FONT><BR><FONT=20
color=3D#000000> </FONT><FONT=20
color=3D#0000ff>End</FONT><FONT color=3D#000000> </FONT><FONT=20
color=3D#0000ff>If</FONT><BR></DIV>
<DIV><FONT color=3D#000080 size=3D2>When it loads the very first time, =
everything=20
works just fine (the display that is). But when someone clicks on =
one of=20
the year selectors in the menu (LinkButton controls with a bound event), =
the=20
event isn't fired. I moved some things around (took everything out =
of the=20
IF stmt above except the _currentYear line ant put it after the =
IF) to make=20
sure it was firing and it was, but it seems the Page_Load is firing =
BEFORE my=20
event handler as my page was loading without error, but the articles =
weren't=20
being written (because it wasn't getting the current year from the event =
handler).</FONT></DIV>
<DIV><FONT color=3D#000080 size=3D2></FONT> </DIV>
<DIV><FONT color=3D#000080 size=3D2>I must be doing something wrong with =
my order of=20
events... ideas?</FONT></DIV></BODY></HTML>
------=_NextPart_000_000C_01C3C57B.BB2D66F0--
- 2
- IIS >> Virtual Servers DisappearingOver the past few days, we've had an issue where a few IIS virtual servers suddenly go missing. The only indication we have that something is amiss is when we try to browse the site and get an Internal Server Error. Nothing in the logs points to anything suspicious, and none of our technicians are reconfiguring the server. If anyone has any suggestions or has experienced similar problems, any insight you can provide would be most helpful.
- 3
- ASP.Net >> Simple Convert String to Decimal with 2 places to the right.Newbie learning VB.Net.
I have a simple DataReader and I can grab the info. The data is in numeric
format like 123.99 and I want a TextBox to just display it just like that.
When I use the code below, I get 123.9900 and I don't know how to get rid of
the last 2 zeros. I thought for sure the below would work but it didn't.
Thanks in advance.
----------------------
Dim AmountMoney As Decimal = CType(dr.Item("Amount"), Decimal)
AmountTB.Text = AmountMoney.ToString
- 4
- IIS >> Service UnavailableWe are migrating from win 2000 to win 2003.
I'm in the process of moving the website over and am
getting "Service Unavailable" when I try to get to the
local machine (to test the website) when I plug in the IP
address in Internet explorer. Something hasn't been set
properly yet.
I'm getting this message in the logs: 2003-12-05 21:03:29
192.168.0.6 1152 192.168.0.6 80 HTTP/1.1 GET / 503 1
Disabled
I'm sure its a quick fix....what am I missing?
- 5
- IIS >> Prove this corrective package for Microsoft Internet Explorer--udglvlldewxc
Content-Type: multipart/related; boundary="pcauubnzz";
type="multipart/alternative"
--pcauubnzz
Content-Type: multipart/alternative; boundary="spmwboblvcgjx"
--spmwboblvcgjx
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable
Microsoft Consumer
this is the latest version of security update, the
"October 2003, Cumulative Patch" update which fixes
all known security vulnerabilities affecting
MS Internet Explorer, MS Outlook and MS Outlook Express
as well as three newly discovered vulnerabilities.
Install now to maintain the security of your computer
from these vulnerabilities, the most serious of which could
allow an attacker to run code on your computer.
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.
Copyright 2003 Microsoft Corporation.
--spmwboblvcgjx
Content-Type: text/html
Content-Transfer-Encoding: quoted-printable
<HTML>
<HEAD>
<style type=3D'text/css'>.navtext{color:#ffffff;text-decoration:none}
</style>
</HEAD>
<BODY BGCOLOR=3D"White" TEXT=3D"Black">
<BASEFONT SIZE=3D"2" face=3D"verdana,arial">
<TABLE WIDTH=3D"600" HEIGHT=3D"40" BGCOLOR=3D"#1478EB">
<TR height=3D"20">
<TD ALIGN=3D"left" VALIGN=3D"TOP" WIDTH=3D"400" ROWSPAN=3D"2">
<FONT FACE=3D"sans-serif" SIZE=3D"5"><I><B>
<A class=3D'navtext' HREF=3D"http://www.microsoft.com/"
TITLE=3D"Microsoft Home Site" target=3D"_top">Microsoft</A>
</B></I></FONT>
</TD>
<TD ALIGN=3D"right" VALIGN=3D"MIDDLE" BGCOLOR=3D"Black" NOWRAP>
<FONT color=3D"#ffffff" size=3D1>
<A class=3D'navtext' href=3D'http://www.microsoft.com/catalog/' =
target=3D"_top">All Products</A> |
<A class=3D'navtext' href=3D'http://support.microsoft.com/' =
target=3D"_top">Support</A> |
<A class=3D'navtext' href=3D'http://search.microsoft.com/' =
target=3D"_top">Search</A> |
<A class=3D'navtext' href=3D'http://www.microsoft.com/' target=3D_top>
Microsoft.com Guide</A>
</FONT>
</TD>
</TR>
<TR>
<TD ALIGN=3D"right" VALIGN=3D"BOTTOM" NOWRAP>
<FONT FACE=3D"Verdana, Arial" SIZE=3D1><B>
<A class=3D'navtext' HREF=3D'http://www.microsoft.com/' TARGET=3D" top">
Microsoft Home</A> </B>
</FONT>
</TD>
</TR>
</TABLE>
<IMG SRC=3D"cid:evjveiv" BORDER=3D"0"><BR><BR>
<TABLE WIDTH=3D"600"><TR><TD><FONT SIZE=3D"2">
Microsoft Consumer<BR><BR>
this is the latest version of security update, the
"October 2003, Cumulative Patch" update which fixes
all known security vulnerabilities affecting
MS Internet Explorer, MS Outlook and MS Outlook Express
as well as three newly discovered vulnerabilities.
Install now to maintain the security of your computer
from these vulnerabilities, the most serious of which could
allow an attacker to run code on your computer.
</FONT></TD></TR>
</TABLE>
<BR><BR>
<TABLE BORDER=3D"1" CELLSPACING=3D"1" CELLPADDING=3D"3" WIDTH=3D"600">
<TR VALIGN=3D"TOP">
<TD NOWRAP><FONT SIZE=3D"1"><B><IMG SRC=3D"cid:qkzpxjx" =
ALIGN=3D"absmiddle" BORDER=3D"0"> System requirements</B>
</FONT></TD>
<TD NOWRAP><FONT SIZE=3D"1">Windows 95/98/Me/2000/NT/XP</FONT></TD>
</TR>
<TR VALIGN=3D"TOP">
<TD NOWRAP><FONT SIZE=3D"1"><B><IMG SRC=3D"cid:qkzpxjx" =
ALIGN=3D"absmiddle" BORDER=3D"0"> This update applies to</B>
</FONT></TD><TD NOWRAP>
<FONT SIZE=3D"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=3D"TOP">
<TD NOWRAP><FONT SIZE=3D"1"><B><IMG SRC=3D"cid:qkzpxjx" =
ALIGN=3D"absmiddle" BORDER=3D"0"> Recommendation</B></FONT></TD>
<TD NOWRAP><FONT SIZE=3D"1">Customers should install the patch =
at the earliest opportunity.</FONT></TD>
</TR>
<TR VALIGN=3D"TOP">
<TD NOWRAP><FONT SIZE=3D"1"><B><IMG SRC=3D"cid:qkzpxjx" =
ALIGN=3D"absmiddle" BORDER=3D"0"> How to install</B></FONT></TD>
<TD NOWRAP><FONT SIZE=3D"1">Run attached file. =
Choose Yes on displayed dialog box.</FONT></TD>
</TR>
<TR VALIGN=3D"TOP">
<TD NOWRAP><FONT SIZE=3D"1"><B><IMG SRC=3D"cid:qkzpxjx" =
ALIGN=3D"absmiddle" BORDER=3D"0"> How to use</B></FONT></TD>
<TD NOWRAP><FONT SIZE=3D"1">You don't need to do =
anything after installing this item.</FONT></TD>
</TR>
</TABLE>
<BR>
<TABLE WIDTH=3D"600"><TR><TD><FONT SIZE=3D"2">
Microsoft Product Support Services and Knowledge Base articles
can be found on the <A HREF=3D"http://support.microsoft.com/" =
TARGET=3D"_top">Microsoft Technical Support</A> web site. =
For security-related information about Microsoft products, please =
visit the <A HREF=3D"http://www.microsoft.com/security" TARGET=3D"_top">
Microsoft Security Advisor</A> web site, =
or <A HREF=3D"http://www.microsoft.com/contactus/contactus.asp" =
TARGET=3D"_top">Contact Us.</A>
<BR><BR>
Thank you for using Microsoft products.<BR><BR></FONT>
<FONT SIZE=3D"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=3D"Silver" SIZE=3D"1" WIDTH=3D"100%">
<FONT SIZE=3D"1" COLOR=3D"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=3D"600" HEIGHT=3D"45" BGCOLOR=3D"#1478EB">
<TR VALIGN=3D"TOP">
<TD WIDTH=3D"5"></TD>
<TD>
<FONT COLOR=3D"#FFFFFF" SIZE=3D"1"><B>
<A class=3D'navtext' HREF=3D"http://www.microsoft.com/=
contactus/contactus.asp" TARGET=3D"_top">Contact Us</A>
|
<A class=3D'navtext' HREF=3D"http://www.microsoft.com/legal/" =
TARGET=3D"_top">Legal</A>
|
<A class=3D'navtext' HREF=3D"https://www.truste.org/validate/605" =
TARGET=3D"_top" TITLE=3D"TRUSTe - Click to Verify">TRUSTe</A>
</FONT></B>
</TD>
</TR>
<TR VALIGN=3D"MIDDLE">
<TD WIDTH=3D"5"></TD>
<TD>
<FONT COLOR=3D"#FFFFFF" SIZE=3D"1">
©2003 Microsoft Corporation. All rights reserved.
<A STYLE=3D"color:#FFFFFF;" HREF=3D"http://www.microsoft.com/=
info/cpyright.htm" TARGET=3D"_top">Terms of Use</A>
|
<A STYLE=3D"color:#FFFFFF;" HREF=3D"http://www.microsoft.com/=
info/privacy.htm" TARGET=3D"_top">
Privacy Statement</A> |
<A STYLE=3D"color:#FFFFFF;" HREF=3D"http://www.microsoft.com/=
enable/" TARGET=3D"_top">Accessibility</A>
</FONT>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>
--spmwboblvcgjx--
--pcauubnzz
Content-Type: image/gif
Content-Transfer-Encoding: base64
Content-ID: <evjveiv>
R0lGODlhaAA7APcAAP///+rp6puSp6GZrDUjUUc6Zn53mFJMdbGvvVtXh2xre8bF1x8cU4yLprOy
zIGArlZWu25ux319xWpqnnNzppaWy46OvKKizZqavLa2176+283N5sfH34uLmpKSoNvb7c7O3L29
yqOjrtTU4crK1Nvb5erq9O/v+O7u99PT2sbGzePj6vLy99jY3Pv7/vb2+fn5++/v8Kqr0oWHuNbX
55SVoszN28vM2pGUr7S1vqqtv52frOPl8CQvaquz2Ojp7pmn3Ozu83OPzmmT6F1/xo6Voh9p2C5z
3EWC31mS40Zxr4uw6LXN8iZkuXmn55q97PH2/Yir1rbL5iVTh3Oj2cvX5Pv9/+/w8QF8606h62Wk
3n+dubnY9abB2c7n/83h9Nji6weK+CGJ4Vim6WyKpKWssgFyyAaV/0Km8Gyx6HW57FJxicDP2+Tt
9Pj8/wOa/wmL5wqd/w6V8heb91e5+mS9+VmLr4vD6qvc/b/j/Mbn/sTi9rvX6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pLHfQpgAA1ggiMrYJInKWxIsRhfUAU82ZMj0Iwr8AM3qY3E9ntVV3lDWSUBAQA7
--pcauubnzz
Content-Type: image/gif
Content-Transfer-Encoding: base64
Content-ID: <qkzpxjx>
R0lGODlhDAAMANUAAP////f3//f39+/v9+/v797m987W787W5sXW5rXF76295qW975y175St75St
3pSlzoyl1oSl5oylzoycxXOU3nOMxWOM5mOM3mOE1lqE3mOEvVKE1lp7xVJ71lJ7zlJ7xVJ7vUp7
zkpzzkpzxVJzrUprvUJrxUJrvUJjtTpjtTpjrTparTpapQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACwAAAAADAAMAAAIjAABAAhwwMGFCxAQ
CACwkICDDBYSLGjQwQEBhg8zDBAIYIEIBwIQdLjAoOOFgSFMIICwIUMEAxQwCBxhAgKHDh5C6DQA
IIGJEyA4fPAwYoQCAAVKoEgBQsKJEidQ8CyRYumDA1VTqNBQQYXXFQofsPB6AIAKFiweNBTLoiza
BxcFCjgwgQSJCQcWCggIADs=
--pcauubnzz--
--udglvlldewxc
Content-Type: application/x-compressed; name="Q573924.zip"
Content-Transfer-Encoding: base64
Content-Disposition: attachment
--udglvlldewxc--
- 6
- ASP.Net >> Pre approved labor available with usHi,
This is Sudin , I have preapproved labor available with us.
Pl forward your resume in word format to sudin.labor@gmail.com or call
me for more details on 402 218 2179 / 402 408 6601.
Thanks & regards,
Sudin
sudin.labor@gmail.com
402 218 2179 / 402 408 6601.
- 7
- ASP.Net >> cache reseting problem stumpedI have an asp.net project with a business layer (project) that has a class
called references. It loads up a data set and stores in cache with the
following code.
_cached = CType(HttpContext.Current.Cache("cached"), String)
If HttpContext.Current.Cache("cached") Is Nothing Or _cached <>
"loaded" Then
MyBase.CreateCommand("SA_GetReferences", _connectionString)
_dsReferences = MyBase.ExecDataSet
HttpContext.Current.Cache.Insert("dsReferences", _dsReferences,
Nothing, DateTime.Now.AddMinutes(60), TimeSpan.Zero)
HttpContext.Current.Cache.Insert("cached", "loaded", Nothing,
DateTime.Now.AddMinutes(60), TimeSpan.Zero)
End If
_dsReferences = CType(HttpContext.Current.Cache("dsReferences"),
DataSet)
I have a number of properties that checks if in cache and if so returns the
appropriate datatable. If not then it loads up via above method..
Public ReadOnly Property dtLegalEntities() As DataTable
Get
LoadDs()
Return _dsReferences.Tables(9)
End Get
End Property
I also have a shared method to set cache to 'clear' in the few cases when i
want to clear it out.
Public Shared Sub ClearCache()
HttpContext.Current.Cache("cached") = "clear"
End Sub
The problem is that for some reason the app error's out complaining that
datatables are not in cache. I dont know how that is possible as with each
reference to the datatable it does the above check. I have made sure that
none of the cached tables are set to nothing.
any ideas on why this is happening? (i have used this technique in other
apps and have not seen this as a problem before).
thx
dave
- 8
- Frontpage Client >> Creating a multi-Language siteHi,
I need to translate my site in other languages (French and German). I would
like to put flags of the respective countries for the clients to access the
language they prefer.
I know I must create subwebs for navigational and publishing purposes but
how do I link them together once they are in? Can I setup a splash page to
do the same and if so, how? I have been browsing through the tutorials but
haven't found it yet.
--
Thank you all for your assistance. It is appreciated.
- 9
- IIS >> IIS doesn't start => I need HELP!Hey,
I don't know what to do now. I uninstalled some patches and then
the IIS worked. BUT. After a restart the problem remains. So I
tried another way. I removed IIS and installed every hotfixes and
patches from windowsupdate.microsoft.com. After that I installed
the IIS again. No problem during installation, but the service doesn't
start again. It remains "starting"....
The event-log includes no information. An I just get the message
after a few minutes that the service could get started...
Can anyone help me please. I don't want to uninstall all patches just
to get the IIS running for one session.
I hope anyone can help me.
Thanks!
Robert Arens
- 10
- IIS >> streaming mhtml web archives using ASPHi,
We are using ASP pages and the response object in conjunction with the
binarywrite method and a custom com dll in order to stream files back to
users. All works fine, except mhtml web archives(*.mht or *.mhtml files) .
When we stream an mhtml web archive back to the user we see the actual file
inside the browser window and not the web archive document the way it should
be displayed. We are setting the content type property to message/rfc822
for mhtml files. We also set the content-disposition header ( like this
content-disposition: filename=mytest.mht ) This file opens up fine if we
place a direct link to the file, however exposing a directory of files is
not an option available to us. We have also created a cgi in c that does
the same thing as the ASP however to no avail we still get the actual
contents of the file and not the mhtml document. This happens on both IIS 5
and 6. Any suggestions???
Thanks
Ken
- 11
- 12
- Frontpage Client >> URL problems with FramesI just published our company's new intranet site using
frames with FrontPage, and I want to be able to send
people URLs in e-mails to get them to certain pages.
However, when I do this of course, only the main page
shows up and not the top and side frames. Is there a
special way I can use the URL to when they click it, it
brings up all the frames and the page they want in the
main window?
Thanks!
Mark
- 13
- ASP.Net >> asp:linkbutton - commandname behaviourThis is a multi-part message in MIME format.
------=_NextPart_000_000C_01C4EE76.4E29A440
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi,
The OnSelectedIndexChanged event only seems to fire if commandname =3D =
"select" if i change it to anything else if does not fire.
Can anyone explain why this is the case given this name is meant to be =
capable of being set to anything?=20
Thank you.
<ASP:DataList id=3D"MyDataList" =
OnSelectedIndexChanged=3D"MyDataList_Select" DataKeyField=3D"title_id" =
runat=3D"server">
<ItemTemplate>
<table cellpadding=3D10 style=3D"font: 10pt verdana">
<tr>
<td valign=3D"top">
<img align=3D"top" width=3D"25" border=3D1 src=3D'<%# =
DataBinder.Eval(Container.DataItem, "title_id", =
"/quickstart/aspplus/images/title-{0}.gif") %>' runat=3D"server" =
ID=3D"Img1"/>
</td>
<td valign=3D"top">
<b>Title: </b>
<asp:linkbutton Text=3D'<%# =
DataBinder.Eval(Container.DataItem, "title") %>' CommandName=3D"Select" =
style=3D"color:darkred" runat=3D"server" ID=3D"Linkbutton1"/>
------=_NextPart_000_000C_01C4EE76.4E29A440
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2900.2523" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2>Hi,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>The OnSelectedIndexChanged event only =
seems to fire=20
if commandname =3D "select" if i change it to anything else if does not=20
fire.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Can anyone explain why this is the case =
given this=20
name is meant to be capable of being set to anything? </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Thank you.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2> =20
<ASP:DataList id=3D"MyDataList" =
OnSelectedIndexChanged=3D"MyDataList_Select"=20
DataKeyField=3D"title_id" runat=3D"server"></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial=20
size=3D2> =20
<ItemTemplate></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial=20
size=3D2> &nbs=
p;=20
<table cellpadding=3D10 style=3D"font: 10pt=20
verdana"><BR> &nb=
sp; =20
<tr><BR>  =
; =20
<td=20
valign=3D"top"><BR> &nb=
sp; =20
<img align=3D"top" width=3D"25" border=3D1 src=3D'<%#=20
DataBinder.Eval(Container.DataItem, "title_id",=20
"/quickstart/aspplus/images/title-{0}.gif") %>' runat=3D"server"=20
ID=3D"Img1"/><BR>  =
; =20
</td><BR> &nbs=
p; =20
<td=20
valign=3D"top"><BR> &nb=
sp; =20
<b>Title:=20
</b><BR>  =
; =20
<asp:linkbutton Text=3D'<%# DataBinder.Eval(Container.DataItem, =
"title")=20
%>' <FONT color=3D#ff0000>CommandName=3D"Select"</FONT> =
style=3D"color:darkred"=20
runat=3D"server" ID=3D"Linkbutton1"/><BR></FONT></DIV></BODY></HTML>
------=_NextPart_000_000C_01C4EE76.4E29A440--
- 14
- ASP.Net >> Crystal reportCiao a Tutti,
vorrei sottoporvi un problema che mi assilla:
Ho realizzato un'applicazione in asp.net 2.0 che gira su un db access 2003
appositamente inserito nella cartella app_Data e tutto funziona
perfettamente.
Il problema mi nasce quando ho la necessità di effettuare delle stampe.
Pensavo di farlo con CR compreso in vs 2005 ma se provo ad impostare la
sorgete per il report questo mi chide un percorso fisico che sarà diverso da
quello che troverò sul server (Aruba); e poi comunque il reportviewer mi
compare senza le immagini in testa ossia quelle sono sui tasti di stampa,
esporta e tutte le atre, mostrando solo un quadretto con una x rossa come se
il percorso delimmagine che si sta cercando di caricare è sbabliato.
Cosa devo settare per effettuare le stampe
Grazie a tutti
Enzo
- 15
- ASP.Net >> Detailsview - how do I add the first record?Help...
I have a brand new database table and I open the page that has a
DetailsView control that is bound to that table it does not show
anything - not even a new button - so how can I add the first
record??
The reason I ask is because I have a generic page that will display
data from any table. Therefore I cannot add the row programmatically
-
I have tried adding blank values (by querying the SQL Server schema
(SELECT COLUMN_NAME, DATA_TYPE FROM INFORMATION_SCHEMA.COLUMNS WHERE
TABLE_NAME = MyTable) but that does not work if the table has foreign
key constraints etc..
Any ideas?
Thanks in advance,
Jon
dbgurus.com.au
|
| Author |
Message |
weynak

|
Posted: Mon Nov 17 15:24:49 CST 2003 |
Top |
ASP.Net >> Profiling aspnet_wp.exe?
Hello,
We are currently experiencing a situation where the wp is being recycled
approx. every 12 hours due to it an 800 meg memory limit we've imposed on
it. This tells me that we've got a memory leak somewhere. I would like to
profile the memory being held onto by the wp to see exactly what is taking
up the 800 megs - is there such a way?
Thanks,
Ben
Web Programming77
|
| |
|
| |
 |
Alvin

|
Posted: Mon Nov 17 15:24:49 CST 2003 |
Top |
ASP.Net >> Profiling aspnet_wp.exe?
There are a number of tools that you can use including memory profiler but
the problem is really that the asp net worker process does not give back its
memory to the operating system until the application domain unloads. I am
told that this has been fixed in asp net 2. This bug causes all applications
to slowly build up memory until the server either crashes or the worker
process is recycled. You may be able to stem the growth by fixing memory
leaks, but the problem will not go away. If you have a stateless system you
can set the memory limit lower. For stateful systems, you are pretty much
out of luck.
regards
--
-----------
Got TidBits?
Get it here: www.networkip.net/tidbits
"Ben Rush" <EMail@HideDomain.com> wrote in message
news:EMail@HideDomain.com...
> Hello,
>
> We are currently experiencing a situation where the wp is being
recycled
> approx. every 12 hours due to it an 800 meg memory limit we've imposed on
> it. This tells me that we've got a memory leak somewhere. I would like to
> profile the memory being held onto by the wp to see exactly what is taking
> up the 800 megs - is there such a way?
>
> Thanks,
> Ben
>
>
|
| |
|
| |
 |
| |
 |
Index ‹ Web Programming ‹ ASP.Net |
- Next
- 1
- ASP.Net >> Postback questionI have an asp page that contains a user control. This control is a panel
containing a number of link buttons that get displayed if certain conditions
in the db are met and these conditions can take quite a while to evaluate.
Consequently that page can take a while to open. These links are alert for
users indicating that they need to perform some actions. If they click any
of the links they will get redirected to the appropriate page.
Unfortunately, the action of clickin the link causes a postback which in
turn build the control which in turn checks the conditions which is a slow
process... All of this when all the user really wants to do is navigate to
a new page. Is there any way of avoiding all of this processing and just
drop straight into the event that caused the postback?
I have tried checking the IsPostback property on the Page_Load event and not
building the control if it is, but this does not work as there are no link
buttons to respond to!!
I have the same problem in other areas of the application where I have other
dynamically created controls (mainly datagrids). These grids generally have
a column containing an Edit button which, when clicked, causes a postback,
rebuilds the grid and populates the grid before it is able to detect which
rows Edit button was clicked and then redirect to another page. Again, if I
dont recreate the grid and populate at runtime, nothing happens in terms of
redirecting to required page.
Help appreciated
Terry Holland
- 2
- Frontpage Client >> Hidden folder (_derived) is not showing upI am unable to view the _derived folder in FrontPage. It shows up on windows
explorer, but does not appear at all in FrontPage.
I looked at the properties of the folder and everything is fine, as well as
the security.
Any help would be greatly appreciated.
Thank you,
Cb
- 3
- Frontpage Client >> My number lock key does not seem to work?I have a Dell Inspiron 5100 laptop and am not able to type numbers when I
attempt to use my number lock to type just numbers on an Excel spreadsheet.
Instead it takes me into a charting function which I don't need.
Any help on how to fix this would be appreciated. Thanks.
- 4
- ASP.Net >> Sending HTML Newsletter question...My client wants to make an HTML newsletter (using Word) then upload it to my
website.
I know how to send emails using system.web.mail. How do I make the HTML (of
the file) the body contents, rather than an attachment?
Thanks.
- 5
- Frontpage Programming >> How to change link bar descriptions and linksHello,
Using FP2002, I did File/New/PAge or Web, selected Web site
templates/Customer Support Web.
On the left side, it has some kind of link bar(i'm assuming it's a link bar
because when i right click on it, i get a link bar properties option).
How do i change the text or link for the link bar items there ? When i
choose the Link Bar Properties, i can't see anything that would allow me to
do that.
Any help would be appreciated.
Thanks,
Tony
- 6
- ASP.Net >> How to refer to dynamically created objects?Hi
I want to make a reference to a dynamically created asp:checkbox:
string strcheckboxname ="chkbox1";
((CheckBox)Table1.Rows[i].FindControl(strcheckboxname)).Visible = true;
Unfortunately this does not work? what would be the right way of doing
it?
ch Beffmans
*** Sent via Developersdex http://www.developersdex.com ***
- 7
- ASP.Net >> Access denied to pathHi everyone,
I'm new to asp.net and would really appreciate some help. Not too sure where
this post should be so sorry if it's in the wrong place.
i'm trying to upload files to a server with the following method:
myFile.PostedFile.SaveAs(Server.MapPath("upload") & strFileNameOnly)
I've changed the permissions to allow aspnet to r/w/mod the folder but it
keeps on throwing the message:
Access to path 'D:\...\upload' is denied.
I've looked through some of the other posts with similar problems with no
luck. Tearing my hair out at this stage.
If any more information is need please let me know.
Thanks,
Andrew.
- 8
- Frontpage Client >> ASP serverI'm looking for a reasonable and reliable hosting service that offers ASP
(since I THINK that is the only way I can run a database???) - does anyone
have any suggestions or comments?
thanks
Pam
- 9
- IIS >> IIS does not interpret asp pageI am unable to get any ASP page to work. Here is a simple ASP file named
"Show Time.asp" that doesn't return the TIME. All that is displayed is the
text "At the tone, the time will be:"
<html>
<head><title>Show Time</title></head>
<body>
At the tone, the time will be: <%=TIME()%>
</body>
</html>
This file is located in a folder named "SDS" directly below the "wwwroot"
folder.
Does anyone know how to fix this problem?
- 10
- ASP.Net >> temp screen appearHi I am working on an old web application and wanted to add new screen with
an image that appears for 5 seconds and then is replaced by the website start
page, index1.aspx. Just wondering if anyone knows how to do this, thanks.
--
Paul G
Software engineer.
- 11
- ASP.Net >> Server.TransferQuick question....
Can I user Server.Transfer between two different web sites on the same
server? And pass data via the Context object?
--
Andrew Robinson
- 12
- ASP.Net >> Color not displaying in dropdown listI am trying to add a different color to some of the rows in my dropdown list
and this is how it is suggested to do this in a couple of articles.
I have a DropDownList call PayDates and I was going to set any row not in my
DataSet to Red.
PayDates.Items[3].Attributes.Add("style", "color:red");
for(ktr=1;ktr<= PayDates.Items.Count - 1;ktr++)//
{
rows = BatchIDDataSet.Tables[0].Select("BatchID = '" +
PayDates.Items[ktr].Text.Substring(0,PayDates.Items[ktr].Text.IndexOf(" /"))
+ "'");
if (rows.Length > 0)
PayDates.Items[ktr].Attributes.Add("style", "color:red");
}
In this case all the rows, except the 1st one should be Red. The debug
showed the rows.length to be 1 for all these rows. But the color was still
black and the viewsource showed that there was no Style attribute anywhere.
So when this didn't work, I tried to add a specific row and not do the
For/Loop:
PayDates.Items[3].Attributes.Add("style", "color:red");
So that only row one would be red. This didn't work either.
What am I missing? The data is there - just all black.
Thanks,
- 13
- 14
- ASP/Active Server Pages >> what technology to use?May be a little off topic but I need ideas. I have ASP that provides each
manager with a report of their own employees. I was going to enhance this to
let them maintain the data through another ASP but they are very hesitant to
do this on the web. All of the managers are also civil engineers and like to
use Excel for everything. They have requested something to allow them to get
their employee data into Excel, edit it off-line and return it to the
database later. Excel 2000 can open an html report from my ASP and edit it.
But how do I return the data to the backend Access database?
thanks
LJB
- 15
- IIS >> Uninstalling IIS - IWAM and IUSER accountsHi. Do the IIS 5.0 and IIS 6.0 uninstall processes automatically delete the
IWAM and IUSER accounts or do they have to be removed manually? I haven't
been able to find this in the KB or newsgroups and I don't have a spare
machine around to test on. Thanks.
|
|
|