Search

You searched for the word(s): userid:636889

Matching Posts

  • Getting source control id in javascript function

    Hi, I have taken three textboxes over aspx page. A javascript function is associated with these textboxes as- TextBox1.Attributes.Add("onkeypress","MyFunction()"); TextBox2.Attributes.Add("onkeypress","MyFunction()"); TextBox3.Attributes.Add("onkeypress","MyFunction()"); The MyFunction() is defined within a javascript file. What I want is to get the control id of the textbox on which the function is associated within the javascript function
    Posted to Client Side Web Development (Forum) by irfanraza on 11/11/2009
    Filed under: javascipt, asp .net 2. 0
  • Re: Getting source control id in javascript function

    Is there any way to get the associated control id within javascript function itself, i dont want to pass the control ids from aspx code. I just need to write TextBox1.Attributes.Add("onkeypress","MyFunction()"); In my opinion as i am attaching the script using Attributes, i should get the associated control id within the function itself.
    Posted to Client Side Web Development (Forum) by irfanraza on 11/11/2009
  • Re: Getting source control id in javascript function

    Thanks all of my friends!!! Finally i got the solution - The javascript function is like this function MyFunction(e) { var evt=window. event || e; var srcEle = evt.srcElement?e.srcElement:e.target; alert(srcEle.id); } It works on both IE and FireFox with little change in - TextBox1.Attributes.Add("onkeypress","MyFunction(event)"); TextBox2.Attributes.Add("onkeypress","MyFunction(event)"); TextBox3.Attributes.Add("onkeypress","MyFunction(event
    Posted to Client Side Web Development (Forum) by irfanraza on 11/11/2009
  • Tab changes even after firing OnClientActiveTabChange event

    I had a master page with two sections. First top section contains a web user control having ajax tab container. The second section contains the ContentPlaceHolder to show different pages. I am using OnClientActiveTabChange event to navigate to different pages just using java script. The problem is that if i am clicking on third tab then the respective page is loaded but the tab changes to the first one. Could anyone help me? Here is the layout of my master page. +===============================+
    Posted to ASP.NET AJAX UI (Forum) by irfanraza on 7/2/2009
    Filed under: Ajax tabs
  • Re: Strange problem with TabContainer

    Thank you James, Thanks for your quick reply. Actually I have not used the update panel. The issue has been sorted out. Thanks and regards Mohammad Irfan (irfanrizwi@gmail.com)
    Posted to ASP.NET AJAX UI (Forum) by irfanraza on 6/13/2008
  • Re: Strange problem with TabContainer

    Thanks vgiambattista , But I think you have not read my problem completely. I have already used ActiveTab.ID and ActiveTabIndex. Anyway I have sorted out that issue. Now I have another issue, I have taken a linkbutton (and even command button also) to change the active tab through code. The code is as follows protected void lnkNext_Click( object sender, EventArgs e) { this .TabContainer1.ActiveTabIndex = 1; } But still it wont works. whats gone wrong? Regards Mohammad Irfan ( irfanrizwi@gmail.com
    Posted to ASP.NET AJAX UI (Forum) by irfanraza on 6/12/2008
  • Strange problem with TabContainer

    Hi all, I faced a strange problem using tab container. I have placed a tab container with four tabs (Page1 to Page4). I have also given TabPanel IDs (from tbPage1 to tbPage4). I have taken a button outside tabcontainer to hide page2 and page3. The button click event code is as follows: protected void btnHide_Click( object sender, EventArgs e) { TabContainer1.Tabs[1].Visible = false ; TabContainer1.Tabs[2].Visible = false ; } I have written the ActiveTabChanged event as follows: protected void TabContainer1_ActiveTabChanged
    Posted to ASP.NET AJAX UI (Forum) by irfanraza on 6/10/2008
    Filed under: TabContainer
  • Problem with ConfirmButtonExtender

    Hi, I have pasted code from ConfirmButton.aspx and ConfirmButton.aspx.cs to display confirm message as it is displayed in sample web site provided with AjaxControlToolkit, but it is not working. I have also changed the name of control within the statement var label = $get( 'ctl00_SampleContent_Label1' ); but still it wont. The panel is being displayed but non-modal. Whats wrong with it? Regards Mohammad Irfan
    Posted to ASP.NET AJAX Control Toolkit (Forum) by irfanraza on 6/6/2008
    Filed under: CommandButtonExtender
  • Re: Binding CommandName Property

    Thanks Samu, You have provided a very useful information. It had cleared all my doubts regarding event bubbling. But still I havent got actual solution. In the example you have given, you too compared the CommandName property (ce.CommandName == "Update" ). I am pasting here the code from Albums.aspx (please refer my previous posts in the same thread). ///////////// Albums.aspx///////////////////////////// <% @ Page Language ="C#" MasterPageFile ="~/Default.master"
    Posted to Data Presentation Controls (Forum) by irfanraza on 6/6/2008
  • Re: Binding CommandName Property

    Hello Jassim, Thanks for your very quick reply. I am trying to understand the concept but still having some confusions. Lets say Select, Insert, Update and Delete commands are associated with the control using the CommandName property, but what about Cancel button. I found the GridView uses Save and Cancel buttons within EditItemTemplate. Save button is having Update CommandName but the Cancel button has Cancel CommandName, then how it works?. It will be nice if you could send a step by step tutorial
    Posted to Data Presentation Controls (Forum) by irfanraza on 6/4/2008
Page 1 of 2 (12 items) 1 2 Next >