Object of type system.string can't converted into telerik.webcontrols.buttontype
Please help me out by giving sample code of button control of telerik.
How to use telerik button control, help me out.
Thanks,
7 Answers, 1 is accepted
We are not sure that we correctly understand which control you mean? Could you please open a new support ticket and send us a simple running project illustrating the problem?
Regards,
Rosi
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
Protected Sub btn1_Click(ByVal sender As Object, ByVal e As EventArgs) Handles btn1Click
Response.Redirect(
"default.aspx?id=" & Combobox1.SelectedValue)
End Sub
when i compile this code it redirests to next page where i used telerik controls.
when i give run command , it gives me the error
OBJECT OF TYPE SYSTEM.STRING CANNOT BE CONVERTED INTO TELERIK.WEBCONTROLS.BUTTONTYPE
Server Error in TEST Application.
Object of type 'System.String' cannot be converted to type 'Telerik.WebControls.ButtonType'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.ArgumentException: Object of type 'System.String' cannot be converted to type 'Telerik.WebControls.ButtonType'.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. |
Stack Trace:
|
Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433
I am aware of such a problem and it appears when the project is using incompatible versions of RadEditor and RadSpell. For example version 3.x of RadSpell will work only with RadEditor 7.0 and above.
Please, make sure that you are using RadEditor and RadSpell from the same RadControls or RadEditor installation.
If you are unable to solve the problem, please send a sample running project that demonstrates the problem. We will examine it and try to provide a solution.
Best regards,
Rumen
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
Thank you so much for providing such a wonderful information regarding my error. Yes I am using radeditor and rad spell control. If i will not be able to aolve them I will send message again.
Thanks once again. I really appreciate your efforts.
Can you plz tell me which version of radspell I should use with radeditor 6.x version?
Thanks,
You should always use the editor and spellchecker from the same editor's installation. For example if you have version 6.6.3 of RadEditor then you need to use it with version 2.9.3 of RadSpell.
Best regards,
Rumen
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
Thank you so much.
Preeti
