----------------------------------------------------------- New Message on BDOTNET
----------------------------------------------------------- From: suj Message 1 in Discussion Hi Group, I have a .ocx file which I am using in my web application. <OBJECT id="id1" name="id1" codeBase="http://blrkec21840d/DOTNET/webapp/readingBlob/XCalECG.ocx#Version=0,0,2,0" height="500" width="700" classid="clsid:45191572-CF47-401E-9D68-5EFB51265BD6" VIEWASTEXT> Now I want to access this object in code behind. If I write runat = server I get an error saying that the class id is not valid string. I also want to know where does this object tag fall in the controls hierarchy. I am also doing some crap like FindControl in code behind but I am not getting this object tag there. Dim obj As HtmlControl Dim obj1 As Control obj = FindControl("Form1") If Not obj Is Nothing Then Response.Write("got it") obj1 = obj.FindControl("id1") If Not obj1 Is Nothing Then Response.Write("got it again") Else Response.Write("sorry") End If Else Response.Write("nothing") End If The value of obj is perfectly fine and I am getting the form object, but obj1 as nothing. I want to assign some attribute of this object tag in code behind. How do I do that? Thanks and regards, Sujay ----------------------------------------------------------- To stop getting this e-mail, or change how often it arrives, go to your E-mail Settings. http://groups.msn.com/bdotnet/_emailsettings.msnw Need help? If you've forgotten your password, please go to Passport Member Services. http://groups.msn.com/_passportredir.msnw?ppmprop=help For other questions or feedback, go to our Contact Us page. http://groups.msn.com/contact If you do not want to receive future e-mail from this MSN group, or if you received this message by mistake, please click the "Remove" link below. On the pre-addressed e-mail message that opens, simply click "Send". Your e-mail address will be deleted from this group's mailing list. mailto:[EMAIL PROTECTED]
