findcontrol("PlaceHolderPrice") why why why why why why why why why why why



  • 1. Windows Auth. Timeout after 60 minutes
    We're having a problem where our application is timing out after 60 minutes no matter what type of activity is occuring. A user can be in the middle of a server call and it will timeout after 60 minutes. This only occurs with Windows authentication and not forms based. We have the following in the web.config: <authentication mode="Windows"> <forms loginUrl="Login.aspx" name="RiskLogin" timeout="120" path="/"> </forms> </authentication> <sessionState mode="StateServer" stateConnectionString="tcpip=" sqlConnectionString="data source=;user id=sa;password=" cookieless="false" timeout="120" /> Where is this 60 minute timeout coming from? Am i missing something?
  • 2. Development for 2003
    Hi Our production IIS and Web Services are running on 2003 boxes. We develop with XP Professional, with the web sites/services running locally. In that IIS made major changes from 2000 to 2003, are there any issues that we need to be aware of? In addition to a web server and web services, we are also making use of MSMQ for messaging In short, should we consider developing with 2003 rather than XP to ensure that our environment is consistent Thanks for any and all input Tod
  • 3. HTTP 500 Error
    Did anyone meet the following situation? A) ASP.NET application, hosted on a Win2000-Server, LockDown utility for IIS installed an B -when client runs on Win2000x, the app works just fine -when client runs on WinXP-Pro, at some point it gets a "HTTP 500 Internal server error" (app hangs) an this happens always at some image or css-file HTTP-GET Any hint or suggestion is welcomed, thank you in advance Adrian.
  • 4. Problem with ASP.NET validation and custom errors on IIS
    Hello, I'm having a pretty strange problem and I'd appreciate if anyone could help me with it. I'm having a custom error page on my IIS. Specifically, I've written my own ASP (classic ASP) error page for "404 Not Found" error. It does some work in database (via. ADO), and the redirects user to another page. No big deal. And it worked just fine when all my pages on my website were pure old ASP. But a few days ago I added another page to my website - an ASP.NET page that contains a couple of validating controls. When I try to see that page in IE, I get a javascript "Syntax error". When I debug it, I see that the error is in file myweb/aspnet_client/system_web/1_1_4322/WebUIValidation.js - and it seems that the validation script contains HTML and JavaScript from my custom error page written in ASP!!! Any ideas? If you need, I can copy/paste some parts of code... Thanks, n.

findcontrol("PlaceHolderPrice") why why why why why why why why why why why

Postby Mr. SweatyFinger » Sun, 03 Dec 2006 16:56:44 GMT

why why why why why why why why why why why

Can't i get

dim PlaceHolderPrice as placeholder = 

<asp:FormView ID="FormView1" runat="server" DataKeyNames="AdNum" 
DefaultMode="Edit" DataSourceID="SqlDataSource1">




<table border="0" cellspacing="0" cellpadding="0" width="550" >

<asp:PlaceHolder ID="PlaceHolderPrice" runat="server" Visible="false">


<td style="width: 3px;" valign="top">


<td valign="top">



<td valign="top" width="10">


<td valign="top">

<asp:TextBox ID="PriceTextBox" runat="server" Text='<%# Bind("Price") 


<td width="10">







Re: findcontrol("PlaceHolderPrice") why why why why why why why why why why why

Postby Michael Nemtsev » Sun, 03 Dec 2006 21:00:51 GMT

Hello Mr. SweatyFinger,

The reason is that you can't get the control while you are not in the template 
As soon you EditItemTemplate will be active findcontrol returns you your 

M> why why why why why why why why why why why
M> Can't i get
M> dim PlaceHolderPrice as placeholder =
M> formview1.findcontrol("PlaceHolderPrice")
M> <asp:FormView ID="FormView1" runat="server" DataKeyNames="AdNum"
M> DefaultMode="Edit" DataSourceID="SqlDataSource1">
M> <EmptyDataTemplate>
M> </EmptyDataTemplate>
M> <EditItemTemplate>
M> <table border="0" cellspacing="0" cellpadding="0" width="550" >
M> <asp:PlaceHolder ID="PlaceHolderPrice" runat="server"
M> Visible="false">
M> <tr>
M> <td style="width: 3px;" valign="top">
M> </td>
M> <td valign="top">
M> Price:
M> </td>
M> <td valign="top" width="10">
M> $</td>
M> <td valign="top">
M> <asp:TextBox ID="PriceTextBox" runat="server" Text='<%# Bind("Price")
M> %>'></asp:TextBox>
M> <td width="10">
M>  </td>
M> </tr>
M> </asp:PlaceHolder>
M> </table>
M> </editItemTemplate>
M> </formview>
Michael  Nemtsev [C# MVP] :: blog:  http://www.**--****.com/ 

"At times one remains faithful to a cause only because its opponents do not 
cease to be insipid." (c) Friedrich Nietzsche

Re: findcontrol("PlaceHolderPrice") why why why why why why why why why why why

Postby Smokey Grindel » Mon, 04 Dec 2006 00:46:59 GMT

Step 1: Get an ASP.NET book, read and learn
Step 2: Learn to solve own problems with out being a baby and crying when 
you cant solve a simple problem, if you cant solve it still at that point 
then ask, don't run around calling people idiots because you didn't post 
detailed enough information that it takes people a while to figure out what 
the heck you were trying to ask...
Step 3: grow up

Similar Threads:

1.why why why why why

when i open a datasource, does the database get passed bfrom me to the 
server, and I have to sit and wait

why why why 

2.VWD why why why

Why when i save a page to the web does the whole app lock up?

Why can't I switch to another page while that page is saving?

3.why why why usercontrol

I have a usercontrol.
In the usercontrol i have a formview.
in the formview I have a dropdownlist with a sqldatasource

why why why why can't i referenct the sqldatasource from the codebehind?"

what gives??

4.why why why does function not work

I'm expecting this function to return the same value each time the page is 
hit within the same session:
In other words i want to save the guid as a session variable

Function TempImageGUID() As String

Dim _Temp As String

If Not (Session("TempGUID") Is Nothing) Then

_Temp = Session("TempGUID")


Session("TempGUID") = System.Guid.NewGuid().ToString()

_Temp = Session("TempGUID")

End If

Return _Temp

End Function

5.Why, why, why???


Can someone please tell me why my querystring isn't returning anything!

I have a called viewpage.aspx that contains a datagrid with the following 

<asp:hyperlinkcolumn DataNavigateUrlField="pageid" 
DataNavigateUrlFormatString="editor.aspx?id={0}" Text="<img border=0 
src=../images/edit.gif alt=Edit Page>">

When I run the code the id is sent to editor.aspx which is visable in the 
address bar so I know it is working. However when I try to request the 
querystring it returns rowID=0


Would appritiate any advice... thanks


 Private rowID As Integer = 1

    Private Sub Page_Load(ByVal sender As System.Object, ByVal e As 
System.EventArgs) Handles MyBase.Load

        'Get Text for Editor
        If Not Page.IsPostBack Then
            rowID = CType(Request.QueryString(ID), Integer)
            FreeTextBox1.Text = GetDocument()
        End If

    End Sub 'Page_Load 
    Public Sub Button_Click(ByVal sender As Object, ByVal e As 
    End Sub 'Button_Click 

    Private Function GetDocument() As String
        Dim ds As DataSet = GetDataSet(("SELECT content FROM tblPageContent 
WHERE pageID=" + rowID.ToString()))
        Dim table As DataTable = ds.Tables(0)
        Dim row As DataRow = table.Rows(0)
        Dim doc As String = row("content").ToString()
        Return doc
    End Function 'GetDocument

6. why why why 7MB


8. Why oh why doesn't my data view work?

Return to ASP.NET


Who is online

Users browsing this forum: No registered users and 60 guest