Click here to Skip to main content
15,909,373 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: .NET2 Dispay data from SQL2005 Pin
Dayekh26-Sep-06 5:38
Dayekh26-Sep-06 5:38 
GeneralRe: .NET2 Dispay data from SQL2005 Pin
munklefish26-Sep-06 5:42
munklefish26-Sep-06 5:42 
AnswerRe: .NET2 Dispay data from SQL2005 Pin
Keith Barrow26-Sep-06 6:25
professionalKeith Barrow26-Sep-06 6:25 
GeneralRe: .NET2 Dispay data from SQL2005 Pin
munklefish26-Sep-06 6:34
munklefish26-Sep-06 6:34 
AnswerRe: .NET2 Dispay data from SQL2005 Pin
minhpc_bk26-Sep-06 16:10
minhpc_bk26-Sep-06 16:10 
GeneralRe: .NET2 Dispay data from SQL2005 Pin
munklefish27-Sep-06 5:41
munklefish27-Sep-06 5:41 
GeneralRe: .NET2 Dispay data from SQL2005 Pin
minhpc_bk27-Sep-06 15:37
minhpc_bk27-Sep-06 15:37 
GeneralRe: .NET2 Dispay data from SQL2005 Pin
munklefish27-Sep-06 22:33
munklefish27-Sep-06 22:33 
Hi,

I tried doing this in FormView and Repeater etc etc. However it still comes up with the same error. I have also tried to FindControl using the appropriate display method as the prefix eg Repeater1.FindControl("TextBox1") but it still says the object reference is invalid.

Could this be anything to do with the fact that im using the SQLDataSource wizard and binding it on 'Page_Load' ? Ie so effectively when i click the reset or submit button in my form, the page is reloaded and thus the referenced TextBox isnt actually available for this minute period of time during which the SQLDataSource reloads the Repeater / FormView data?

Is there anyway to add the equivalent of if(!Page.IsPostBack) to stop the Data rebinding on Postback / when a button is clicked?

Thanks.
AnswerTHE SOLUTION Pin
munklefish27-Sep-06 23:47
munklefish27-Sep-06 23:47 
QuestionDataGrid Display Pin
Dayekh26-Sep-06 5:03
Dayekh26-Sep-06 5:03 
AnswerRe: DataGrid Display Pin
sanju027626-Sep-06 5:20
sanju027626-Sep-06 5:20 
GeneralRe: DataGrid Display Pin
Dayekh26-Sep-06 5:51
Dayekh26-Sep-06 5:51 
AnswerRe: DataGrid Display Pin
Suresh Pirsquare27-Sep-06 0:10
Suresh Pirsquare27-Sep-06 0:10 
QuestionGetting ColumnID Value from GridView? [modified] Pin
sanju027626-Sep-06 4:05
sanju027626-Sep-06 4:05 
AnswerRe: Getting Column Id Value from GridView? Pin
dgonzale26-Sep-06 4:14
dgonzale26-Sep-06 4:14 
GeneralRe: Getting Column Id Value from GridView? Pin
sanju027626-Sep-06 4:17
sanju027626-Sep-06 4:17 
AnswerRe: Getting Column Id Value from GridView? Pin
dgonzale26-Sep-06 4:24
dgonzale26-Sep-06 4:24 
QuestionCrystal Report in ASP.Net 2.0 Pin
Mazdak26-Sep-06 3:56
Mazdak26-Sep-06 3:56 
QuestionFind the Source of PostBack Pin
Jay_se26-Sep-06 3:30
Jay_se26-Sep-06 3:30 
AnswerRe: Find the Source of PostBack Pin
_AK_26-Sep-06 6:50
_AK_26-Sep-06 6:50 
GeneralThanks It Works Fine & One More Query Pin
Jay_se26-Sep-06 20:56
Jay_se26-Sep-06 20:56 
Questiongetting html hidden control's value in code behind Pin
max_dev2006@yahoo.com26-Sep-06 2:41
max_dev2006@yahoo.com26-Sep-06 2:41 
AnswerRe: getting html hidden control's value in code behind Pin
dgonzale26-Sep-06 2:53
dgonzale26-Sep-06 2:53 
AnswerRe: getting html hidden control's value in code behind Pin
Exelioindia26-Sep-06 2:56
Exelioindia26-Sep-06 2:56 
AnswerRe: getting html hidden control's value in code behind Pin
dgonzale26-Sep-06 3:12
dgonzale26-Sep-06 3:12 

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.