Click here to Skip to main content
15,902,870 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionError in executing action of deleting and updating data from GridView Pin
miss nadia4-May-08 19:32
miss nadia4-May-08 19:32 
AnswerRe: Error in executing action of deleting and updating data from GridView Pin
Abhijit Jana4-May-08 19:44
professionalAbhijit Jana4-May-08 19:44 
GeneralRe: Error in executing action of deleting and updating data from GridView Pin
miss nadia5-May-08 19:26
miss nadia5-May-08 19:26 
GeneralRe: Error in executing action of deleting and updating data from GridView Pin
miss nadia6-May-08 18:52
miss nadia6-May-08 18:52 
QuestionPreventing took page using browser Pin
SreejithAchutan4-May-08 19:09
SreejithAchutan4-May-08 19:09 
AnswerRe: Preventing took page using browser Pin
Christian Graus4-May-08 19:21
protectorChristian Graus4-May-08 19:21 
QuestionSystem.Web.UI.WebControls.Login type Problem Pin
Saba024-May-08 6:30
Saba024-May-08 6:30 
AnswerRe: System.Web.UI.WebControls.Login type Problem Pin
Christian Graus4-May-08 12:03
protectorChristian Graus4-May-08 12:03 
WEll, it usually helps if you tell us what line has the error. In this case, tho, I think it's clear.

Saba02 wrote:
System.Web.UI.WebControls.Login l =((Login)Wizard1.FindControl("Login1"));


In the first case you specify the full namespace of the control, in the second, you do not. Obviously you have another class called Login somewhere, and that is in scope, so you need to full scope the login control on the right, so the two sides both point to the same object, instead of two different objects with the same name.

Consider also renaming your Login class so this doesn't happen again.

Christian Graus

Please read this if you don't understand the answer I've given you

"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

QuestionGridView - Select pages in PageLoad event Pin
Thanks for all the fish4-May-08 3:23
Thanks for all the fish4-May-08 3:23 
AnswerRe: GridView - Select pages in PageLoad event Pin
Bursh.4-May-08 11:15
Bursh.4-May-08 11:15 
QuestionGridview - selecting a single record programmatically Pin
Thanks for all the fish4-May-08 2:33
Thanks for all the fish4-May-08 2:33 
AnswerRe: Gridview - selecting a single record programmatically Pin
Bursh.4-May-08 11:14
Bursh.4-May-08 11:14 
QuestionURL redirection Pin
mpavas4-May-08 0:49
mpavas4-May-08 0:49 
AnswerRe: URL redirection Pin
Christian Graus4-May-08 12:04
protectorChristian Graus4-May-08 12:04 
GeneralRe: URL redirection Pin
mpavas4-May-08 19:36
mpavas4-May-08 19:36 
GeneralRe: URL redirection Pin
N a v a n e e t h4-May-08 23:04
N a v a n e e t h4-May-08 23:04 
GeneralRe: URL redirection Pin
mpavas5-May-08 18:27
mpavas5-May-08 18:27 
QuestionAjax Toolkit Drag Panel postback position Pin
Reanalyse3-May-08 19:01
Reanalyse3-May-08 19:01 
Questionmimic following ADO Recordset object Property/methods/events in ADO.NET Pin
Member 43574603-May-08 17:22
Member 43574603-May-08 17:22 
AnswerRe: mimic following ADO Recordset object Property/methods/events in ADO.NET Pin
Christian Graus3-May-08 17:29
protectorChristian Graus3-May-08 17:29 
GeneralRe: mimic following ADO Recordset object Property/methods/events in ADO.NET Pin
Member 43574603-May-08 18:41
Member 43574603-May-08 18:41 
GeneralRe: mimic following ADO Recordset object Property/methods/events in ADO.NET Pin
Christian Graus4-May-08 11:32
protectorChristian Graus4-May-08 11:32 
QuestionEscaping Text in a GridView for SQLServer databases Pin
Tom Harper3-May-08 10:16
Tom Harper3-May-08 10:16 
QuestionProblem with converting type Pin
Saba023-May-08 9:21
Saba023-May-08 9:21 
AnswerRe: Problem with converting type Pin
Hesham Amin3-May-08 10:14
Hesham Amin3-May-08 10:14 

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.