Click here to Skip to main content
15,905,563 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Fetch Parent Gridview Row index on Child gridview delete row ? Pin
zeego12-May-09 23:02
zeego12-May-09 23:02 
QuestionAny Function like Print_r???? Pin
Yaazi12-May-09 17:58
Yaazi12-May-09 17:58 
AnswerRe: Any Function like Print_r???? Pin
Samer Aburabie12-May-09 20:30
Samer Aburabie12-May-09 20:30 
QuestionASP 3.5 Formview + Findcontrol in VB - Please help as I'm going crazy Pin
breakoutfoo12-May-09 12:06
breakoutfoo12-May-09 12:06 
AnswerRe: ASP 3.5 Formview + Findcontrol in VB - Please help as I'm going crazy Pin
breakoutfoo12-May-09 12:27
breakoutfoo12-May-09 12:27 
AnswerRe: ASP 3.5 Formview + Findcontrol in VB - Please help as I'm going crazy Pin
dotnetmember12-May-09 16:00
dotnetmember12-May-09 16:00 
GeneralRe: ASP 3.5 Formview + Findcontrol in VB - Please help as I'm going crazy Pin
breakoutfoo17-May-09 8:07
breakoutfoo17-May-09 8:07 
AnswerRe: ASP 3.5 Formview + Findcontrol in VB - Please help as I'm going crazy Pin
breakoutfoo18-May-09 8:36
breakoutfoo18-May-09 8:36 
I have finally cracked it. No dummy databinds required or anything other than the findcontrol method.

The key is purely down to using the method at the correct time in the page life cycle.

I used the following to set a textbox to the current date and time.

where:
Formview ID = "Details"
Formview child Textbox to change ID = "Date_AddedTextBox"
(Textbox is in the insert template)

<br />
Protected Sub Details_DataBound(ByVal sender As Object, ByVal e As System.EventArgs) Handles Details.DataBound<br />
<br />
        If Details.CurrentMode = FormViewMode.Insert Then<br />
<br />
            Dim Test As TextBox = CType(Details.Row.FindControl("Date_AddedTextBox"), TextBox)<br />
            Test.Text = Now()<br />
<br />
        End If<br />
<br />
End Sub<br />


So ... if like me you have been to hell and back via the entire internet trying to do what seems like the simplest thing, trust your code as it is probably correct and try it at a time where the items have definitely been created and and data definitely bound (such as the event I used above) and you should have success.
QuestionOpen parent window from child window Pin
netJP12L12-May-09 10:10
netJP12L12-May-09 10:10 
AnswerRe: Open parent window from child window Pin
fly90412-May-09 10:20
fly90412-May-09 10:20 
GeneralRe: Open parent window from child window Pin
netJP12L13-May-09 3:41
netJP12L13-May-09 3:41 
GeneralRe: Open parent window from child window Pin
fly90415-May-09 6:20
fly90415-May-09 6:20 
AnswerRe: Open parent window from child window Pin
Yusuf12-May-09 10:21
Yusuf12-May-09 10:21 
QuestionEditing a Word document Pin
dptalt12-May-09 9:17
dptalt12-May-09 9:17 
AnswerRe: Editing a Word document Pin
Christian Graus12-May-09 9:30
protectorChristian Graus12-May-09 9:30 
GeneralRe: Editing a Word document Pin
Ramesh Swaminathan12-May-09 10:08
Ramesh Swaminathan12-May-09 10:08 
Question.net javascript masterpage conflict Pin
janetb9912-May-09 7:44
janetb9912-May-09 7:44 
AnswerRe: .net javascript masterpage conflict Pin
Christian Graus12-May-09 7:47
protectorChristian Graus12-May-09 7:47 
GeneralRe: .net javascript masterpage conflict Pin
janetb9912-May-09 7:50
janetb9912-May-09 7:50 
GeneralRe: .net javascript masterpage conflict Pin
Christian Graus12-May-09 7:53
protectorChristian Graus12-May-09 7:53 
AnswerRe: .net javascript masterpage conflict Pin
Spunky Coder12-May-09 20:56
Spunky Coder12-May-09 20:56 
GeneralRe: .net javascript masterpage conflict Pin
janetb9913-May-09 4:19
janetb9913-May-09 4:19 
QuestionWhe service which takes Filestream as parameter Pin
Member 465900112-May-09 7:03
Member 465900112-May-09 7:03 
AnswerRe: Whe service which takes Filestream as parameter Pin
Yusuf12-May-09 7:32
Yusuf12-May-09 7:32 
AnswerRe: Whe service which takes Filestream as parameter Pin
Member 475589313-May-09 1:11
Member 475589313-May-09 1:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.