Click here to Skip to main content
       

ASP.NET

 
GeneralJavaScript - window.print() not working in Android mobile browsers Pinmemberravitejapammi24-Jan-13 0:08 
QuestionHow can I delete a Column of XLSX file with EPPlus in web application? [modified] Pinmembercawboy_iran6-Jan-13 21:00 
AnswerRe: How can I delete a Column of XLSX file From EPPlus in web application? PinmvpSandeep Mewara6-Jan-13 22:26 
GeneralRe: How can I delete a Column of XLSX file From EPPlus in web application? Pinmembercawboy_iran7-Jan-13 3:48 
QuestionWoW Slider now showing the image PinmemberJassim Rahma5-Jan-13 9:06 
AnswerRe: WoW Slider now showing the image PinmvpSandeep Mewara5-Jan-13 21:09 
QuestionUnable to cast object of type 'System.Web.UI.LiteralControl' to type 'System.Web.UI.WebControls.TextBox Pinmemberamsedky5-Jan-13 2:00 
AnswerRe: Unable to cast object of type 'System.Web.UI.LiteralControl' to type 'System.Web.UI.WebControls.TextBox PinmvpSandeep Mewara5-Jan-13 21:24 
amsedky wrote:
Unable to cast object of type 'System.Web.UI.LiteralControl' to type 'System.Web.UI.WebControls.TextBox
//((TextBox)PayGridView.Rows[e.RowIndex].Cells[3].Controls[0]).Text;

Error in itself is quite straight forward.
 
You are directly casting controls from Grid cells into a defined type. One of the conversion is not correct. There is a Literal control instead of a textbox. A simple use of Visual Studio debugger will tell the line of code. Once you know, just handle it properly.
Sandeep Mewara
Microsoft ASP.NET MVP 2012 & 2013
 

[My Latest Article(s)]:
How to extend a WPF Textbox to Custom Picker
Server side Delimiters in ASP.NET

Questiondisplay animated image while save data to asp.net Pinmemberashraf almashhari4-Jan-13 22:46 
AnswerRe: display animated image while save data to asp.net PinmvpSandeep Mewara4-Jan-13 23:14 
QuestionAsp.net PinmemberManjunath Hegde4-Jan-13 1:41 
AnswerRe: Asp.net PinmemberRahul Rajat Singh4-Jan-13 2:04 
QuestionInsert/Update/Delete Records in Dynamic Generated Textbox/Checkbox and Loop Through All Records Pinmemberguodl3-Jan-13 11:11 
Questionlive update PinmemberSubin Mavunkal3-Jan-13 3:23 
AnswerRe: live update PinmentorKeith Barrow3-Jan-13 3:46 
AnswerRe: live update PinmemberRahul Rajat Singh3-Jan-13 23:04 
QuestionHow to populate WoW Slider from database PinmemberJassim Rahma1-Jan-13 9:32 
QuestionUmbarco or Joomla? PinmemberJassim Rahma1-Jan-13 0:58 
AnswerRe: Umbarco or Joomla? PinmemberRahul Rajat Singh3-Jan-13 22:51 
AnswerRe: Umbarco or Joomla? Pinmemberdeflinek8-Jan-13 3:55 
QuestionSlideShow Control Pinmembercdpsource31-Dec-12 2:19 
AnswerRe: SlideShow Control Pinmemberjkirkerx31-Dec-12 11:23 
GeneralRe: SlideShow Control Pinmembercdpsource1-Jan-13 0:41 
AnswerRe: SlideShow Control Pinmemberjkirkerx1-Jan-13 11:31 
GeneralRe: SlideShow Control Pinmember@AmitGajjar1-Jan-13 7:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web04 | 2.8.141223.1 | Last Updated 26 Dec 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid