
May 15th, 2002, 05:11 PM
|
|
Contributing User
|
|
Join Date: Dec 2002
Posts: 14,575
  
Time spent in forums: < 1 sec
Reputation Power: 22
|
|
|
Specificed Cast Error
<i><b>Originally posted by : Mike (mike.mitchell@sumcousa.com)</b></i><br />I'm getting a "specificed cast not valid" error on the "objSendingPage=CType(Context.handler,SMSView)" line below.<br />SMSView is the class name for another aspx page.<br />Any idea on what I'm doing wrong?<br /><br />If Not IsPostBack Then<br /> Dim objSendingPage As SMSView<br /> 'get the specid from the sending asp page (smsview)<br /> objSendingPage = CType(Context.Handler, SMSView)<br /> glSpecID = objSendingPage.GetSpecID()<br /> gsMSNumber = objSendingPage.GetMS()
|