| Identifying what is behind W3WP.exe |
|
 |
Index ‹ Web Programming ‹ IIS
|
- Previous
- 1
- Frontpage Client >> Form target new page in same windowI just want my form target to be another page but open it in the same
window. Here is my code for the 2 pages :
-------------------------------form1.htm------------------------------------
<html>
<body>
This is form 1
<form ACTION="form2.htm" METHOD="POST" target="self">
<input type="submit" value="Submit">
</form>
</body>
</html>
-------------------------------form2.htm------------------------------------
<html>
<body>
This is form 2
<form ACTION="form1.htm" METHOD="POST" target="self">
<input type="submit" value="Submit">
</form>
</body>
</html>
----------------------------------------------------------------------------
--
You'd think the same window would just switch pages back and forth as you
clicked the submit buttons but it doesn't work. Not only does the new form
open in a seperate window but it then claims that it is an invalid address
and won't display the page.
http://www.mississippiprinting.com/MPCNew/form1.htm
http://www.mississippiprinting.com/MPCNew/form2.htm
What simple thing have I missed here? Thanks!
- 2
- ASP.Net >> Forgotten Password ResetI want to enable visitors who have forgotten their password to request a new
one. I have seen that some sites simply require users to enter their e-mail
address. Then the server-side logic sends the password (perhaps a new
temporary one) to the e-mail address if it is a valid address in the db for
the site.
I'm looking for opinions and perspective on implementing something similar.
I understand that doing this would open up additional security risks - but
considering the tradeoffs, it might be worthwhile (no angry users calling me
at 2:00 AM). But as long as I'm going to do something like this, I want to
be smart about it. So, any feedback, links, etc that deal with this topic
would be appreciated..
- 3
- IIS >> ASP 0178 server.createobject access deniedHello,
I have an ASP web application working on a IIS 5.0 Server 2000.
I am trying to add an ASP page with a DTC using an Microsoft OLE DB provider
for ODBC Drivers. The database is VFP6.0
All non-data bound ASP pages work. When I try to run the data-bound page I
get an ASP 0178 error 0x80070005 referring to server.createobject Access
is denied to this object.
I'm not sure which object I should change the permissions for. Any help
would be appreciated.
Thanks in advance
Randy
- 4
- ASP.Net >> MultiPageHi all
How can i use trapstrip & multipage to navigate througth aspx page
thanks
- 5
- ASP.Net >> Getting log4net to work *just* the way I want it to!Folks,
I'd really like to use log4net for our error logging, but I'm having
two problems:
1) For certain cases, I'd like to log error and messages to text
files. I tried both the regular FileAppender, as well as the
RollingFileAppender, but both don't work exactly the way I'd like them
to.
What I'd like to achieve is logging into a file that I can specify the
file name format of: something like <prefix>-<date in my own custom
format>.log.
With the rolling file appender, I *almost* get it, but when I specify
"DateFormat=YYYYMMDD", then what I end up with are files such as
mylog_2006-09-01.log
mylog_2006-09-01.log2006-09-02
mylog_2006-09-01.log2006-09-03
and so on. *NOT* what I wanted, really ! I want the date string to be
in the NAME of the file, and *NOT* just appended to the extension of
the file. Because this way, I can't get all the files by specifying a
"*.log" dir mask......
Also, another trouble is that Windows services seem to "hold on" to
their log file, and when I start a Windows service on Sept 1th, 2006,
it will log into Service_2006-09-01.log and then lock that, and even
if more messages come in on the 2nd and 3rd of September, those will
still be written into the 2006-09-01.log file.
So my two main complaints / questions are:
* How do I tell log4net to format the file name according to
*MY* choice?
mylog_YYYY-MM-DD.log and nothing else
* How do I get Windows Services to "switch" to a new log file,
if a message appears
on Sept 2nd and use service_2006-09-02.log instead of
writing all into the file for Sept 1st?
2) The AdoNetAppender doesn't seem to work - period. What the hell is
up with that??
* I have a suitable table (I think) for the messages
* I configured the AdoNetAppender for *ALL* messages from the
root level down
* I specified the insert statement and the fields collection
in the log4net.config
Still, it just doesn't seem to log ANYTHING at all..... the
RollingFileAppender works just fine......
Any ideas??
Thanks!
Marc
- 6
- ASP.Net >> Dynamically created control disappears after postback.Hi,
I am creating some web user controls dynamically Using
LoadControl("ABC.ascx")
My user control contains 2 drop down list, 2nd one is loaded based on the
selection in the 1st one.
However whenever I make the selection in the 1st one, the control disappears
after the post back. I tried setting the EnableViewState=true but even that
did not help..
UCTemp ucTemp = (UCTemp)LoadControl("UCTemp.ascx");
ucTemp.EnableViewState = true;
plhInput.Controls.Add(ucTemp);
Does any one know why this is happening?
-Sami
- 7
- 8
- 9
- IIS >> mutipule website hostingDear All
I have one real ip want to host several website on IIS. Can I do this ?
We reg the several domain name on a hosting company and redirect the http
request to our webserver which host the website for each domain name.
I created a new website on iis . When I go to property , i cannot find any
setting about this.
for example:
www.abc.com -> 210.XXX.XXX.XXX /abc
www.xyz.com -> 210.XXX.XXX.XXX/xyz
www.def.com -> 210.XXX.XXX.XXX/def
- 10
- ASP.Net >> How to Comment an WebControlThis is a multi-part message in MIME format.
------=_NextPart_000_02F5_01C63686.9A0452D0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi Guys!
If i comment an html control then i amke that:
<!-- <input type=3D"text" ... > -->
But, if y try comment a WebControl, it is not posible.
Hoy to commente this line?
<asp:label id=3D"PaginaTitulo" cssclass=3D"Head" =
EnableViewState=3D"False" runat=3D"server" Text=3D"<%# Titulo %>"/>
Thanks
------=_NextPart_000_02F5_01C63686.9A0452D0
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.1528" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DVerdana size=3D2>Hi Guys!</FONT></DIV>
<DIV><FONT face=3DVerdana size=3D2></FONT> </DIV>
<DIV><FONT face=3DVerdana size=3D2>If i comment an html control then i =
amke=20
that:</FONT></DIV>
<DIV><FONT face=3DVerdana size=3D2></FONT> </DIV>
<DIV><FONT face=3DVerdana size=3D2><!-- <input type=3D"text" ... =
>=20
--></FONT></DIV>
<DIV><FONT face=3DVerdana size=3D2></FONT> </DIV>
<DIV><FONT face=3DVerdana size=3D2>But, if y try comment a =
WebControl, it is=20
not posible.</FONT></DIV>
<DIV><FONT face=3DVerdana size=3D2></FONT> </DIV>
<DIV><FONT face=3DVerdana size=3D2>Hoy to commente this =
line?</FONT></DIV>
<DIV><FONT face=3DVerdana size=3D2></FONT> </DIV>
<DIV>
<DIV><FONT face=3DVerdana size=3D2><asp:label id=3D"PaginaTitulo" =
cssclass=3D"Head"=20
EnableViewState=3D"False" runat=3D"server" Text=3D"<%# Titulo=20
%>"/></FONT></DIV>
<DIV><FONT face=3DVerdana size=3D2></FONT> </DIV>
<DIV><FONT face=3DVerdana size=3D2>Thanks</FONT></DIV></DIV>
<DIV><FONT face=3DVerdana size=3D2></FONT> </DIV>
<DIV><FONT face=3DVerdana size=3D2></FONT> </DIV></BODY></HTML>
------=_NextPart_000_02F5_01C63686.9A0452D0--
- 11
- 12
- ASP.Net >> user control problemHi,
been a while since I posted a question myself instead of trying to help
others out.
I'm refactoring an existing web app that uses dynamic loading of user
controls and a lot of response.redirects to the same page. Because I hate
the overhead by doing this I'm searching for a cleaner option.
But I'm having troubles (off course or I wouldn't be posting this).
The code itself looks ok but when I do a little testing I don't get the
results as I would expect:
test scenario:
- load the page and the first uc will appear, I can type something in the
textbox and clicking the "First button" I get my textbox entry in the label.
Still good.
- when hitting the button "Load other control" I can clearly see that
AttachUC gets called the first time and loads in the first uc and goes to
the buttonevent on the FirstUC. The session gets updated in the method
Button2_Click of FirstUC and the AttachUC is called again. _dyn.ControlName
is "SecondUC.ascx" so that is still good. But when the page renders I still
get to see FirstUC on the page.
- After clicking the "Load other control" for the second time the correct
control gets loaded but I see that the text of the TextBox and Label of
FirstUC is set to the textbox and label of SecondUC.ascx.
Well, if someone knows a good explanation for this problem you can always
reply to this post. I'll be also looking at the problem.
This is my code so far:
default.aspx:
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="default.aspx.vb"
Inherits="dynamiccontrolsloadingandunloading._default" trace="True"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>default</title>
<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema"
content="http://schemas.microsoft.com/intellisense/ie5">
</HEAD>
<body>
<form id="Form1" method="post" runat="server">
<P>
<asp:Label id="LabelErrorMessage" runat="server"></asp:Label></P>
<P>
<asp:PlaceHolder id="PlaceHolderTest"
runat="server"></asp:PlaceHolder></P>
</form>
</body>
</HTML>
----------------------------------------------------------------------------
-----------------------
default.aspx.vb:
Public Class _default
Inherits System.Web.UI.Page
#Region " Web Form Designer Generated Code "
'This call is required by the Web Form Designer.
<System.Diagnostics.DebuggerStepThrough()> Private Sub
InitializeComponent()
End Sub
Protected WithEvents PlaceHolderTest As
System.Web.UI.WebControls.PlaceHolder
Protected WithEvents LabelErrorMessage As
System.Web.UI.WebControls.Label
'NOTE: The following placeholder declaration is required by the Web Form
Designer.
'Do not delete or move it.
Private designerPlaceholderDeclaration As System.Object
Private Sub Page_Init(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Init
'CODEGEN: This method call is required by the Web Form Designer
'Do not modify it using the code editor.
InitializeComponent()
End Sub
#End Region
Private _dyn As DynaKeeper
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
Session("dynakeep") = New DynaKeeper("PlaceHolderTest",
"FirstUC.ascx", AddressOf Me.AttachUC)
End If
_dyn = DirectCast(Session("dynakeep"), DynaKeeper)
LabelErrorMessage.Text = _dyn.ControlName + " - " +
_dyn.PlaceHolderName + " - " + _dyn.CallBackMethod.ToString
AttachUC()
End Sub
Private Sub AttachUC()
Try
If Not IsNothing(Session("dynakeep")) Then
Dim holder As PlaceHolder =
DirectCast(Me.FindControl(_dyn.PlaceHolderName), PlaceHolder)
holder.Controls.Clear()
holder.Controls.Add(LoadControl(_dyn.ControlName))
End If
Catch ex As Exception
LabelErrorMessage.Text = ex.Message
End Try
End Sub
End Class
----------------------------------------------------------------------------
-----------------------
FirstUC.ascx:
<%@ Control Language="vb" AutoEventWireup="false"
Codebehind="FirstUC.ascx.vb"
Inherits="dynamiccontrolsloadingandunloading.FirstUC"
TargetSchema="http://schemas.microsoft.com/intellisense/ie5" %>
<P>
<asp:TextBox id="TextBox1" runat="server"></asp:TextBox>
<asp:Button id="Button1" runat="server" Text="First Go"></asp:Button>
<asp:Label id="Label1" runat="server"></asp:Label></P>
<P>
<asp:Button id="Button2" runat="server" Text="Load other
control"></asp:Button></P>
----------------------------------------------------------------------------
-----------------------
FirstUC.ascx.vb:
Public Class FirstUC
Inherits System.Web.UI.UserControl
#Region " Web Form Designer Generated Code "
'This call is required by the Web Form Designer.
<System.Diagnostics.DebuggerStepThrough()> Private Sub
InitializeComponent()
End Sub
Protected WithEvents TextBox1 As System.Web.UI.WebControls.TextBox
Protected WithEvents Button1 As System.Web.UI.WebControls.Button
Protected WithEvents Label1 As System.Web.UI.WebControls.Label
Protected WithEvents Button2 As System.Web.UI.WebControls.Button
'NOTE: The following placeholder declaration is required by the Web Form
Designer.
'Do not delete or move it.
Private designerPlaceholderDeclaration As System.Object
Private Sub Page_Init(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Init
'CODEGEN: This method call is required by the Web Form Designer
'Do not modify it using the code editor.
InitializeComponent()
End Sub
#End Region
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
Label1.Text = "First user control loaded"
End If
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Label1.Text = TextBox1.Text.Trim
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button2.Click
If Not IsNothing(Session("dynakeep")) Then
Dim dyn As DynaKeeper = DirectCast(Session("dynakeep"),
DynaKeeper)
dyn.ControlName = "SecondUC.ascx"
dyn.CallBackMethod.Invoke()
End If
End Sub
End Class
----------------------------------------------------------------------------
-----------------------
Second.ascx:
<%@ Control Language="vb" AutoEventWireup="false"
Codebehind="SecondUC.ascx.vb"
Inherits="dynamiccontrolsloadingandunloading.SecondUC"
TargetSchema="http://schemas.microsoft.com/intellisense/ie5" %>
<P>
<asp:TextBox id="TextBox1" runat="server"></asp:TextBox></P>
<P> </P>
<P>
<asp:Button id="Button1" runat="server" Text="Second Go"></asp:Button></P>
<P>
<asp:Label id="Label1" runat="server"></asp:Label></P>
----------------------------------------------------------------------------
-----------------------
SecondUC.ascx.vb:
Public Class SecondUC
Inherits System.Web.UI.UserControl
#Region " Web Form Designer Generated Code "
'This call is required by the Web Form Designer.
<System.Diagnostics.DebuggerStepThrough()> Private Sub
InitializeComponent()
End Sub
Protected WithEvents TextBox1 As System.Web.UI.WebControls.TextBox
Protected WithEvents Button1 As System.Web.UI.WebControls.Button
Protected WithEvents Label1 As System.Web.UI.WebControls.Label
'NOTE: The following placeholder declaration is required by the Web Form
Designer.
'Do not delete or move it.
Private designerPlaceholderDeclaration As System.Object
Private Sub Page_Init(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Init
'CODEGEN: This method call is required by the Web Form Designer
'Do not modify it using the code editor.
InitializeComponent()
End Sub
#End Region
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
Label1.Text = "Second user control loaded"
End If
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Label1.Text = TextBox1.Text.Trim
End Sub
End Class
----------------------------------------------------------------------------
-----------------------
DynaKeeper.vb:
Public Class DynaKeeper
Private _placeHolderName As String
Private _controlName As String
Private _callBack As CallBackMethodDelegate
Public Delegate Sub CallBackMethodDelegate()
Public Sub New(ByVal placeHolderName As String, ByVal controlName As
String, ByVal callBack As CallBackMethodDelegate)
_placeHolderName = placeHolderName
_controlName = controlName
_callBack = callBack
End Sub
Public Property PlaceHolderName() As String
Get
Return _placeHolderName
End Get
Set(ByVal Value As String)
_placeHolderName = Value
End Set
End Property
Public Property ControlName() As String
Get
Return _controlName
End Get
Set(ByVal Value As String)
_controlName = Value
End Set
End Property
Public Property CallBackMethod() As CallBackMethodDelegate
Get
Return _callBack
End Get
Set(ByVal Value As CallBackMethodDelegate)
_callBack = Value
End Set
End Property
End Class
begin 666 emotion-5.gif
M1TE&.#EA$P`3`,3_`/______5?_[\/_?JO_?5?_?`/^_5?^_`/^?5=3?JM2_
MJM2_5=2_`-2?5=2?`-1_5<#<P*J?5:J?`*I_5:I_`*I?`*H_5:H_`(" @'\_
M57\_`'\?`%4?`"H?`````,# P"'Y! $``!\`+ `````3`!,`0 6TX">.HK(H
MBJAAXT"\`?R^Q4)-CA&1"F,<BX.!@6A02*58("8C1 2 E(@Q(UP6A5=P2-R-
M% G3@K.8&4ZDQ,PV*<\FG$UD\5%4[[2AL.%E! D'#146#@V!5UY()0H14HI(
M$1H:;@D+&CN.=6I*"QM5$XTC"09+!$M,+Q$``*$?94H$!A04;QL=.*YXN@9Z
I*&HS%S-9/[P,#B58+PT7#P7$/@<.F=!!1A87&LQ'CR@.@842F1\A`#L`
`
end
- 13
- IIS >> IIS 6.0 and 411 Content-LengthHope someone can help.
Upgraded server from W2K to W2K3. ASP app running under IIS 6.0.
Clients use XMLHTTPPOST to send data back and forward to asp pages. All IE
clients work fine, however Firefox clients fail.
The web server is returning 411 Length Required. This must be a new check in
IIS 6.0 as it didn't do it in 5.0.
Anyone know how to turn the check off?
Cheers in advance (its doing my head in!)
Steve
- 14
- ASP.Net >> One client can't login to our siteWe just switched our web application from .NET 1.1 to 2. Once client can't
login out of several that have been successful. They enter a correct user
name and password, click the login button and they are redirected back to
login with no errors or login failure. The same login account works fine from
other machines at different locations.
This client had no problem logging in before we switched. The login
procedures are essentially the same except for the .NET version. They are
using an updated IE6 browser.
Here is what I'm doing:
Build ticket:
Dim ticket As New FormsAuthenticationTicket(1, ".TICKETNAME",
System.DateTime.Now, System.DateTime.Now.AddMinutes(30), False,
Session.SessionID)
Dim authCookie As New HttpCookie(FormsAuthentication.FormsCookieName,
FormsAuthentication.Encrypt(ticket)) Response.Cookies.Add(authCookie)
Make session variables:
Session("LoginName") = prmLoginName.Value
Session("DocGUID") = prmDoc.Value
Session("EmpID") = prmEmployeeID.Value
If prmEmployeeID.Value > 0 Then
Session("UserClass") = "Staff"
Else
Session("UserClass") = "Client"
End If
Session("GetsCEM") = prmGetsCEMRpt.Value
Session("GetsPAC") = prmGetsPACRpt.Value
Session("GetsHOL") = prmGetsHOLRpt.Value
Check for authentication and session value from the loading page:
If Request.IsAuthenticated Then
If Session("LoginName") <> "" Then
[Proceed with page setup routines if successful....]
Else
'Go back and login again
FormsAuthentication.SignOut()
Session.Abandon()
Session.RemoveAll()
Response.Redirect(Server_Protocol(Request.ServerVariables("SERVER_NAME")) &
"webaccess/login.aspx")
End If
Else
Response.Redirect(Server_Protocol(Request.ServerVariables("SERVER_NAME")) &
"webaccess/login.aspx")
End If
- 15
- ASP/Active Server Pages >> Need help using aspAll,
Current Im develop a program that using web page to connect to Oracle.
My difficulties was:
1) How to retrieve the information in tnsnames.ora and put into all
connection string into a option list to let user choose accordingly ?
2) After using had choosen the connection then a username and passowrd
page will appear to let user key in the username and password, if verify
is ok then proceed to do other stuffs else put back to login page to let
user retry.
I had tried and tried but still cannot, can someone please help me.
Thanks in advance
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
|
| Author |
Message |
BlueLeader

|
Posted: Thu May 05 07:03:12 CDT 2005 |
Top |
IIS >> Identifying what is behind W3WP.exe
Hi,
Im sure this Question had been posted several times earlier on this
forum, but could not find the right reply. Neways, here it is again:
I have a single website running on Win2003 & IIS6. Several application
folders exist under this website. There is just one applicaton pool. I
see instances of w3wp.exe eating up CPU on certain occassions. Using
iisapp.vbs i could track the w3wp.exe to the default website and its
application pool.
How do i track which application/script is spinning w3wp.exe out of
control?
TIA
Web Programming143
|
| |
|
| |
 |
John

|
Posted: Thu May 05 07:03:12 CDT 2005 |
Top |
IIS >> Identifying what is behind W3WP.exe
On 5 May 2005 03:48:06 -0700, "Calvin&Hobbes" <EMail@HideDomain.com>
wrote:
How many sites are on your server?
John Cesta
The CPU Checker - Monitors your CPU % while you sleep
LogFileManager - IIS LogFile Management Tool
WebPageChecker - Helps Maintain Server UpTime
DomainReportIt PRO - Helps Rebuild IIS
http://www.serverautomationtools.com
>Hi,
>Im sure this Question had been posted several times earlier on this
>forum, but could not find the right reply. Neways, here it is again:
>
>I have a single website running on Win2003 & IIS6. Several application
>folders exist under this website. There is just one applicaton pool. I
>see instances of w3wp.exe eating up CPU on certain occassions. Using
>iisapp.vbs i could track the w3wp.exe to the default website and its
>application pool.
>
>How do i track which application/script is spinning w3wp.exe out of
>control?
>
>TIA
|
| |
|
| |
 |
Calvin&Hobbes

|
Posted: Thu May 05 08:23:20 CDT 2005 |
Top |
IIS >> Identifying what is behind W3WP.exe
Just one website.
|
| |
|
| |
 |
Pat

|
Posted: Thu May 05 11:55:51 CDT 2005 |
Top |
IIS >> Identifying what is behind W3WP.exe
When the problem is occurring, you can run IISState and it will dump the
page name (the web server must have access to the internet).
iisstate -p <pid> <enter>
Pat
"Calvin&Hobbes" <EMail@HideDomain.com> wrote in message
news:EMail@HideDomain.com...
> Just one website.
>
|
| |
|
| |
 |
| |
 |
Index ‹ Web Programming ‹ IIS |
- Next
- 1
- ASP.Net >> more than one field bind to hyperlink datatextfieldIs there a way to set hyperlink's datatextfield bind to more than one field
for ex:
<asp:HyperLinkColumn DataNavigateUrlField="CustomerID"
DataNavigateUrlFormatString="Customer.aspx?ID={0}"
DataTextField="CustomerID,CustomerType" DataTextFormatString="Customer:
{0} - Type: {1}"
It gave me error "A field or property with the name
'CustomerID,CustomerType' was not found on the selected datasource"
- 2
- ASP.Net >> java.rmi support inside Visual J# .NETI have a ton of Business logic writter in Java, which I am trying to expose
to .NET platform using Visual J#. NET.
The java code is making extensive use of java.rmi.* package.
but, the latest version of Visual J#. NET is not supporting the same.
Is there a way to make this happen.
Does any one have any information on migrating java RMI code into .NET
platform.
Thanks in advance for any help
- 3
- ASP.Net >> Repeater ProblemHi everyone, I hope you all had a great weekend.
I have a problem, and I am really not sur eon how I should address it; I
have a repeater control, which is bound to a SqlDataSource, however
within the repeater control are a number of ImageButtons, and basically
if the Data Item is empty of NULL then I wish the image on the button to
be "cross.gif" otherwise I would like it to be "tick.gif".
As I said before I really have never came accross anything of the like
before, so I am totally stumped. Here is my current code:
<asp:Repeater ID="repItems" runat="server" DataSourceID="RepDS">
<HeaderTemplate ><table cellpadding="5" cellspacing="2" >
<tr class="TableCaptions">
<td><b>UID</b></td>
<td><b>Supplier SKU</b></td>
<td><b>Linked SKU</b></td>
<td><b>Name</b></td>
<td><b>SD</b></td>
<td><b>SKD</b></td>
</tr>
</HeaderTemplate>
<ItemTemplate>
<tr class="RowStyle">
<td align="left" valign="top"><asp:Label ID="lblName"
runat="server" /></td>
<td><asp:ImageButton ID="IBSupplierSKU"
runat="server" ImageUrl="~/imgs/cross.gif" /></td>
<td><asp:ImageButton ID="IBLinkedSKU" runat="server"
ImageUrl="~/imgs/cross.gif" /></td>
<td><asp:ImageButton ID="IBName" runat="server"
ImageUrl="~/imgs/cross.gif" /></td>
<td><asp:ImageButton ID="IBShortDescription"
runat="server" ImageUrl="~/imgs/cross.gif" /></td>
</tr>
</ItemTemplate>
<AlternatingItemTemplate>
<tr class="RowStyle">
<td align="left" valign="top"><asp:Label ID="lblName"
runat="server" /></td>
<td><asp:ImageButton ID="IBSupplierSKU" runat="server"
ImageUrl="~/imgs/cross.gif" /></td>
<td><asp:ImageButton ID="IBLinkedSKU" runat="server"
ImageUrl="~/imgs/cross.gif" /></td>
<td><asp:ImageButton ID="IBName" runat="server"
ImageUrl="~/imgs/cross.gif" /></td>
<td><asp:ImageButton ID="IBShortDescription" runat="server"
ImageUrl="~/imgs/cross.gif" /></td>
<td><asp:ImageButton ID="IBSKUDescription" runat="server"
ImageUrl="~/imgs/cross.gif" /></td>
</tr>
</AlternatingItemTemplate>
</asp:Repeater>
<asp:SqlDataSource ID="repDS" runat="server" ConnectionString="<%$
ConnectionStrings:DBConn %>"
SelectCommand="SELECT [UID], [SupplierSKUCode], [LinkedSKU],
[Name], [ShortDescription], [SKUDescription] FROM [Import_Lines]">
</asp:SqlDataSource>
If anyone can help, i'll gladly buy you virtual beer for the rest of
your life.
Kind Regards
Mick
- 4
- 5
- ASP.Net >> Index ServerI'm trying to query the index server for document properties. The
create view statement below is executed and later I call a function
that fires the execution of the view which is shown below the view.
I'm getting an error of "System.Data.OleDb.OleDbException: View
'#WKCSEARCHVIEW' has not been defined in catalog 'Web'.
SQLSTATE=42S02" on the last line.
Any help would be appreciated.
-Tim
//OleDbConnection
OleDbConnection oConn = new OleDbConnection("provider=msidxs; data
source=Web");
oConn.Open();
OleDbCommand oCmd = new OleDbCommand(strSetProperty, oConn);
oCmd.ExecuteNonQuery();
//this does fire, I use the same connection for a few events
strCreateView = "CREATE VIEW #WKCSearchView AS ";
strCreateView += "SELECT FileIndex, DocTitle, vpath, filename, size,
write, characterization, rank ";
strCreateView += "FROM SCOPE(' DEEP TRAVERSAL OF ( " + strScope + " )
')";
oCmd.CommandText = strCreateView;
oCmd.ExecuteNonQuery();
//set up the provider
string strProvider = "PROVIDER=MSIDXS; DATA SOURCE=Web";
//create the connection and open it
OleDbConnection oConn = new OleDbConnection(strProvider);
oConn.Open();
OleDbDataAdapter oCmd = new OleDbDataAdapter(strSql, oConn);
DataSet oDS = new DataSet();
oCmd.Fill(oDS, "Results");
- 6
- ASP.Net >> Problems:: ASP.NET & COM+Hi!
I am developing with ASP.NET (VB.NET), I have my web server hosting my aspx pages, in another server I have my COM+ components, I have exported my Application Proxy from that component, I have installed that Application Proxy in the web server, both of them servers are in the same domain. I have probed that my Application Proxy without problems in Windows Forms, creating my instances using "CreateObject" statement [p.e. Dim oAnything As Object = CreateObject("Some.Object") ], without make any previus reference to nothing
BUT!... but when I want to reproduce the same case using Web Forms.... appear an error when I want to instance the Object [remember: Dim oAnything As Object = CreateObject("Some.Object")], The error is: "Access is Denied".
NOTE: I hope to be clear explani you my case, if you have any question plese write it
Could someone help me with some code, steps, online article, etc?
Thanks in advance
l-touched
- 7
- ASP.Net >> Cleaning up after sessionsHi
During use of our ASP.net site users have the ability to upload files to a
temporary area.
What is the ideal way of removing these files when the user has finished (ie
the session has ended)?
Thanks
Kev
- 8
- ASP.Net >> Get a reference to Excel spreadsheet?I have an ASP.net app that uses the DataDynamics spreadbuilder. It basically
creates an Excel spreadsheet and populates it with a dataset by looping
through the set. Everything works great except that the spreadbuilder
doesn't support formulas. I add formulas through the setvalue method but it
just puts a string of the formula in the cell. I have to manually go to the
cell and click the fx button with the formula cell selected. Is there some
c# code that I can get a reference to the open workbook/worksheet and pass a
cell reference so I can make sure and set it as a formula. Any ideas? I
don't want to have to redo the project using just excel. Any help is always
appreciated.
Thanks In Advance,
Chris
- 9
- ASP.Net >> Difference in Web server Controls and HTML Server ControlsHello All,
Can any one give me a clue when to use Web Server controls/ HTML server
controls/HTML Controls. As I understand ..
HTML controls should be used if u dont need to refer it in the code behind
a(simply bcaz it is not recognized in the code behind IDE) and it does not
make a server trip.
HTML server Controls should be preferred over Web Server controls as they
are light weight than ASP.NET web Server controls.(If they have same
performance why ever use HTML server controls??)
Web Server controls should be used only when that control is not there in
HTML server control...like calender control,datagrid)
any suggestion wil be appreciated..
Cheers,
siaj
- 10
- Frontpage Client >> Unable insert video clip in FP 2002Although I've had no trouble inserting photos and clip art, I'm unable to
insert a video clip such that it will play (empty frame in preview mode), and
I've had same result with both .avi and .mov versions. What might be causing
this?
- 11
- Frontpage Client >> Access ID on Confirmation pageHi
I know it can be done as I've done it before but I can't remember how. I
have a form that submits to a database and email and I want it to put the
Access ID on the confirmation page and in the email.
Thanks
Shona
- 12
- ASP.Net >> convert asp.net to vb.netI have created a webservice client in asp.net to access data from
webservice and save it into database. This program does not have form
interactions. ASP.net when acessed from the web URL perform this data
downloading ad updating function.
Can I covert this asp.net program into vb.net program to create a exe ?
Thanks in advance.
Satish
- 13
- ASP.Net >> Pass UserID instead of Username to other pages after logged on, ASP.NET 2.0Hi,
I have my own user table with definition like
UserID int not null primary key,
Username varchar(50) not null,
Password varchar(50) not null,
Firstname varchar(50) not null,
Lastname varchar(50) not null,
Email varchar(50) not null,
.....
I create my own Membership provider to inherit SqlMembershipProvider
public class MyMembershipProvider :
System.Web.Security.SqlMembershipProvider {
public MyMembershipProvider() {
}
public override bool ValidateUser(string username, string password) {
// query my DB to verify user
MyUser mu = new MyUser();
return mu.VerifyUser(username, password);
}
}
In Asp.Net 1.1, we can use
FormsAuthentication.RedirectFromLoginPage(UserID.ToString(), false); to save
UserID (which is whatever I return from my own function, including UserID
from User table). Later on, we just call User.Identity.Name to retrieve the
UserID and it could be used as I like.
But in ASP.NET 2.0, I just need to add
<membership defaultProvider="MyMembershipProvider">
<providers>
<add name="MyMembershipProvider"
type="MyMembershipProvider"/>
</providers>
</membership>
to my web.config file, it will handle authentication autimatically. In this
case how can I pass UserID instead of username to other pages?
Thanks
Hardy
- 14
- ASP.Net >> Beginner's question about access control in ASP.Net 2.0I have extensive programming experience in windows and asp.net 1.1 but I've
just started looking at access control in 2.0 and I'm absolutely lost.
(Background note: I'm writing a 2.0 website for a company intranet, no
outside access so far as I know. I'm using Visual Studio 2005 Team Edition
and I'm only allowed to use SQL Server 2000.)
So before I do anything else I'd like to ask: Does the Web Site
Adminstration Tool even work with SQL Server 2000? (I've read the WSAT help
and I've run aspnet_regsql but I still can't get it to work. Still digging...)
- 15
- ASP.Net >> a simple hyperlinkHi all,
I would like to have a hyperlink control inside a table that just
uses the value of a string being passed from the previous page.
for example when navigating from the default page the string is
mypage.aspx?id='23', I would like the hyperlink inside a table in
the mypage.aspx to grab the id to navigate to a third page. i.e.so that the
navigateurl property could read:
navigateurl=~/mysecond.aspx?id='23'
How can I do that?
Thanks in advance,
Carlos.
|
|
|