I have one WebUserControl, in that in have placed one UpdatePanel after that i have placed one Button. Finally I have placed that UserControl on my new WebForm. structure - WebUserControl -> Updatepanel ->Button and New WebForm->WebUserContol Now I want to show JavaScript alert window when i m pressing Button from code behind. fot that i have written- ScriptManager.RegisterStartupScript(this,typeof(this.getType()) ,"ScriptKey","alert('HI')", true); But it is not working.Plz help me . Thank's in advance.
jitendrafaye
Posts
-
WebUserControl, UpadtePanel And JavaScript Problem -
DataList HeaderTemplate Problemi have one datalist and i have taken textbox in headerTemplate of DataList. i want to get value of that TextBox in Button_click() which is outside of Datalist, i have used foreach loop for getting textbox value but i m not able to get so plz help me
-
custom AjaxEditorControli m working on custom ajaxEditor Control i have override FillTopToolbar() method of editor class and added some buttons. now i want to add InsertImageButton to toolbar fro that i have written TopToolbar.Buttons.Add(new AjaxControlToolkit.HTMLEditor.ToolbarButton.ImageButton()); but i m getting following error- Cannot create an instance of the abstract class or interface 'AjaxControlToolkit.HTMLEditor.ToolbarButton.ImageButton' so plz tell me how can i add this button to toolbar.. thanking u
-
DataList HeaderTemplate ProblemI m working on DataList. I have added one DropDownList in HeaderTemplate od DataList
-
DataList Updating Problemi m working on DataList Updating. for that i have taken one label and ImageButton in ItemTemplate of DataList. I have bound data to DataList in Page_Load Event, When i trying to perform editing in DataList then i m getting following error- Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: Invalid postback or callback argument. Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation. AND if i m using Response.write() in postback then i m getting following error- Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. But if i m writting binding code in !IsPostBack then it is working . AND if i m using LinkButton instead of ImageButton then it is working . So plz tell me wht is the oproblen and how can i solve this problem thank's
-
customizing ajax editor controli m working on ajax editor control here i have override the class of ajax editor control for hiding some button . and i have add this line to source file for registering custom ajaxeditor <%@ Register Namespace="myControls" TagPrefix="custom" %> but it dispaly following error in design time error creating control-update_DataScrap unknown server tag 'custom:customEditor' here update_DataScrap is UpdatePanel custom is tag prefiz for customizes ajaxeditor control customEditor is class which is inherited from Editor class so plz help me thanks
-
Ajax Editor controlit is in ajax toolkit. i want to just make like orkut scrap replay editor so i can add image in add control. i hv done all except that image display. hv u any idea abt this if yes then plz suggest me. thank's
-
Ajax Editor controlcan we display image in ajax editor control?
-
Problem with datalist control (imagebutton)In a datalist control i have a imagebutton with command name="Cancel" but when i click that in the datalist i am getting the following error Invalid postback or callback argument. Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.