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

ASP.NET

 
GeneralRe: session timeout [modified] Pin
Ramesh Swaminathan12-May-09 21:19
Ramesh Swaminathan12-May-09 21:19 
AnswerRe: session timeout Pin
rashmin patel13-May-09 0:21
rashmin patel13-May-09 0:21 
QuestionFetch Parent Gridview Row index on Child gridview delete row ? Pin
zeego12-May-09 18:53
zeego12-May-09 18:53 
AnswerRe: Fetch Parent Gridview Row index on Child gridview delete row ? Pin
Ramesh Swaminathan12-May-09 22:16
Ramesh Swaminathan12-May-09 22:16 
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 
Hi,

I must have searched every forum on the internet and tried every custom function going to try gain control over textboxes in the insert template of my formview using VB code behind without any success and its starting to bug me.

Consider the following scenario:

If I have a formview with ID: "Details"
and a textbox called: "CampaignTextBox" in the <insertitemtemplate>
and wish to set the .text value of "CampaignTextBox" to "Hello World"

I believe the most obvious method is as follows:

<br />
Dim Dynamic_Text As TextBox = CType(Me.Details.FindControl("CampaignTextBox"), TextBox)<br />
Dynamic_Text.text = "Hello World"<br />


It doesn't matter how I manipulate this code I cannot get my code to find the control - I get a null reference exception - "Object reference not set to an instance of an object.."

Other details about my page that may affect this (possibly):

1-It is a page that uses a master page, does this cause issues?
2-If my formview is within a div would this make any difference?

Could anyone give me any clues or if at all possible an example using the parameters given above and save me from going bald before I get to 30?

Thanks

Andy
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 
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 

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.