Click here to Skip to main content
15,908,111 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: dynamic menu... Pin
RajpootRohan24-Aug-09 21:32
professionalRajpootRohan24-Aug-09 21:32 
QuestionCannot implicitly convert type 'string' to 'System.Web.UI.WebControls.TextBox' Pin
haleemasher24-Aug-09 18:21
haleemasher24-Aug-09 18:21 
AnswerRe: Cannot implicitly convert type 'string' to 'System.Web.UI.WebControls.TextBox' Pin
Abhijit Jana24-Aug-09 18:34
professionalAbhijit Jana24-Aug-09 18:34 
GeneralRe: Cannot implicitly convert type 'string' to 'System.Web.UI.WebControls.TextBox' Pin
haleemasher24-Aug-09 18:46
haleemasher24-Aug-09 18:46 
GeneralRe: Cannot implicitly convert type 'string' to 'System.Web.UI.WebControls.TextBox' Pin
Sendilkumar.M24-Aug-09 19:28
Sendilkumar.M24-Aug-09 19:28 
AnswerRe: Cannot implicitly convert type 'string' to 'System.Web.UI.WebControls.TextBox' Pin
ali_reza_zareian24-Aug-09 18:46
ali_reza_zareian24-Aug-09 18:46 
GeneralRe: Cannot implicitly convert type 'string' to 'System.Web.UI.WebControls.TextBox' Pin
haleemasher24-Aug-09 18:54
haleemasher24-Aug-09 18:54 
AnswerRe: Cannot implicitly convert type 'string' to 'System.Web.UI.WebControls.TextBox' Pin
Christian Graus24-Aug-09 19:01
protectorChristian Graus24-Aug-09 19:01 
haleemasher wrote:
as i m new to C# programming


OK, well, given that the error message is in plain english, I'm not sure what to suggest. If you knew how to program, I'd suggest you break this up into as many lines as you can and step through in the debugger to work out what is going wrong.

As you don't know C#, I assume you're either in a class, or teaching yourself. If you're in a class, you should talk to your teacher. If you're teaching yourself, buy a basic book on C#, BEFORE you try to learn ASP.NET.

And if this is paid work, you are an utter disgrace, and should tell your client right now that you are stealing from them. If you work for a company, I'd expect them to go broke soon, hiring people like you. Your best way forward would be to buy a C# book and work through it, in the hope that when they fail and you look for another programming job, you find yourself actually capable of doing some programming and/or understanding basic error messages.

I assume you didn't write this code. Whoever did, isn't very good. It's horrible.

CouponName =((DropDownList)row.Cells[3].FindControl("ddlCoupon")).SelectedValue.ToString();

There are at least four ways that this code could blow up, it should be on at least 4 lines, with extra code to check the assumptions being made.

Christian Graus

Driven to the arms of OSX by Vista.

Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

AnswerRe: Cannot implicitly convert type 'string' to 'System.Web.UI.WebControls.TextBox' Pin
padmanabhan N24-Aug-09 19:04
padmanabhan N24-Aug-09 19:04 
GeneralRe: Cannot implicitly convert type 'string' to 'System.Web.UI.WebControls.TextBox' Pin
Christian Graus24-Aug-09 19:10
protectorChristian Graus24-Aug-09 19:10 
AnswerRe: Cannot implicitly convert type 'string' to 'System.Web.UI.WebControls.TextBox' Pin
harshangrana24-Aug-09 19:54
harshangrana24-Aug-09 19:54 
QuestionA page can have only one server-side Form tag. Pin
haleemasher24-Aug-09 18:15
haleemasher24-Aug-09 18:15 
AnswerRe: A page can have only one server-side Form tag. Pin
Abhijit Jana24-Aug-09 18:31
professionalAbhijit Jana24-Aug-09 18:31 
AnswerRe: A page can have only one server-side Form tag. Pin
Christian Graus24-Aug-09 19:14
protectorChristian Graus24-Aug-09 19:14 
AnswerRe: A page can have only one server-side Form tag. Pin
Sendilkumar.M24-Aug-09 19:31
Sendilkumar.M24-Aug-09 19:31 
QuestionHow to create exe file of C# web project? Pin
nudma24-Aug-09 18:15
nudma24-Aug-09 18:15 
AnswerRe: How to create exe file of C# web project? Pin
Abhijit Jana24-Aug-09 18:28
professionalAbhijit Jana24-Aug-09 18:28 
AnswerRe: How to create exe file of C# web project? Pin
ali_reza_zareian24-Aug-09 18:41
ali_reza_zareian24-Aug-09 18:41 
GeneralRe: How to create exe file of C# web project? Pin
nudma25-Aug-09 4:38
nudma25-Aug-09 4:38 
AnswerRe: How to create exe file of C# web project? Pin
Christian Graus24-Aug-09 19:03
protectorChristian Graus24-Aug-09 19:03 
GeneralRe: How to create exe file of C# web project? Pin
nudma25-Aug-09 4:34
nudma25-Aug-09 4:34 
QuestionHttpHandler to display image [modified] Pin
Chazzysb24-Aug-09 9:16
Chazzysb24-Aug-09 9:16 
AnswerRe: HttpHandler to display image Pin
Chazzysb24-Aug-09 9:54
Chazzysb24-Aug-09 9:54 
GeneralRe: HttpHandler to display image Pin
Christian Graus24-Aug-09 10:13
protectorChristian Graus24-Aug-09 10:13 
QuestionEnumerate Monitors On Client Machine Using JavaScript And ASP.NET Pin
Polymorpher24-Aug-09 3:13
Polymorpher24-Aug-09 3:13 

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.