What you want to see on DotNetFunda.com ?
DotNetFunda.Com Logo
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 5022 |  Welcome, Guest!   Register  Login
 Home > Forums > ASP.NET > Cannot apply indexing with [] to an expression of type 'object' ...
Oswaldlily

Cannot apply indexing with [] to an expression of type 'object'

Replies: 0 | Posted by: Oswaldlily on 5/15/2012 | Category: ASP.NET Forums | Views: 702 | Status: [Member] | Points: 10  


var issNoIP = SplitIssueNoF(txtIssueNo.Text);


issueNoIp stores issueNoIP[0]="value1" and issueNoIP[1]="value2"

now i want to store this value alone issueNoIP[0] into string
like,
string split = Convert.ToString(issNoIP[0]);

if i do so,this is my following error
Error 6 Cannot apply indexing with [] to an expression of type 'object'


Reply | Reply with attachment | Alert Moderator

 Responses below this adGet hundreds of .NET Tips and Tricks videos

  No reply found.


Reply - Please login to reply


Click here to login & reply

Found interesting? Add this to:


 Latest Posts

Write New Post | More ...

About Us | Contact Us | The Team | Advertise | Software Development | Write for us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you find plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 5/22/2013 10:03:00 PM