Click here to Skip to main content
15,910,210 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionTree View link's Pin
nannapanenikamalnath17-Oct-06 19:26
nannapanenikamalnath17-Oct-06 19:26 
Questionasp:label databinding Pin
ybasha17-Oct-06 15:26
ybasha17-Oct-06 15:26 
AnswerRe: asp:label databinding Pin
Christian Graus17-Oct-06 16:10
protectorChristian Graus17-Oct-06 16:10 
GeneralRe: asp:label databinding Pin
ybasha17-Oct-06 16:42
ybasha17-Oct-06 16:42 
GeneralRe: asp:label databinding Pin
Amit Agarrwal17-Oct-06 18:37
Amit Agarrwal17-Oct-06 18:37 
AnswerRe: asp:label databinding Pin
kirthikirthi17-Oct-06 18:39
kirthikirthi17-Oct-06 18:39 
GeneralRe: asp:label databinding Pin
ybasha17-Oct-06 19:50
ybasha17-Oct-06 19:50 
QuestionChange dynamically ConnectionString of SQLDatasource Pin
Sianspheric17-Oct-06 13:46
Sianspheric17-Oct-06 13:46 
I have an application where the user can select to which databse he want to be connected. In my masterpage i have a function that is searching all the Sqldatasource in a page and change all the connectionString to connect the user to the selected database. This function is work fine excempt if the SQLdatasource is inside a Formview TAG this is not working at all. I know for sure that my function is able to found the SQLdatasource inside the formview and change the connectionString but when the page is loaded the SqlSource inside my formview is using the default connectionString.

I've tried in the pageLoad of my page to change the connectionString of one of the SqlDatasource inside a formview and i still have the same problem. I've put a response.write in the pageLoad and i can see that the ConnectionString was changed but when i put another Reponse.write in the databound event i can see the the SqlDatasource still use the default ConnectionString and not the one in the pageload. Did i forget to do something. All i want is to dynamically changed the connectionString of the SqlDataSource inside my formview.

I just want to know how to change dynamically a SQLDatasource inside a formview.

Thanks !
AnswerRe: Change dynamically ConnectionString of SQLDatasource Pin
minhpc_bk17-Oct-06 15:57
minhpc_bk17-Oct-06 15:57 
GeneralRe: Change dynamically ConnectionString of SQLDatasource Pin
Sianspheric18-Oct-06 2:47
Sianspheric18-Oct-06 2:47 
GeneralRe: Change dynamically ConnectionString of SQLDatasource Pin
minhpc_bk18-Oct-06 20:08
minhpc_bk18-Oct-06 20:08 
GeneralRe: Change dynamically ConnectionString of SQLDatasource Pin
Sianspheric19-Oct-06 7:26
Sianspheric19-Oct-06 7:26 
QuestionWizard control does not work - help Pin
Rookie17-Oct-06 12:03
Rookie17-Oct-06 12:03 
AnswerRe: Wizard control does not work - help Pin
minhpc_bk17-Oct-06 15:57
minhpc_bk17-Oct-06 15:57 
QuestionChange Direction of SiteMapPath Pin
morteza5717-Oct-06 10:37
morteza5717-Oct-06 10:37 
AnswerRe: Change Direction of SiteMapPath Pin
minhpc_bk17-Oct-06 19:48
minhpc_bk17-Oct-06 19:48 
GeneralRe: Change Direction of SiteMapPath Pin
morteza5717-Oct-06 20:13
morteza5717-Oct-06 20:13 
QuestionLoad XML file Pin
shapper17-Oct-06 9:22
shapper17-Oct-06 9:22 
AnswerRe: Load XML file Pin
minhpc_bk17-Oct-06 19:49
minhpc_bk17-Oct-06 19:49 
Questionregarding "application/octet-stream" Pin
DGtech17-Oct-06 5:11
DGtech17-Oct-06 5:11 
QuestionASP.NET and Shell command Pin
Ritesh123417-Oct-06 4:15
Ritesh123417-Oct-06 4:15 
AnswerRe: ASP.NET and Shell command Pin
minhpc_bk17-Oct-06 19:54
minhpc_bk17-Oct-06 19:54 
GeneralRe: ASP.NET and Shell command Pin
Ritesh123418-Oct-06 4:38
Ritesh123418-Oct-06 4:38 
GeneralRe: ASP.NET and Shell command Pin
minhpc_bk18-Oct-06 20:13
minhpc_bk18-Oct-06 20:13 
GeneralRe: ASP.NET and Shell command Pin
Ritesh123418-Oct-06 21:18
Ritesh123418-Oct-06 21:18 

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.