Search Result

Collapse
12 results in 0.0029 seconds.
Keywords
Members
Tags
user control
  •  

  • Set EnableEventValidation to false in user control

    Hi,

    Is there any way we can change the page EnableEventVali dation value to false from a user control? I tried setting this to false inside the page_load method of my user control but it gave me an error “The 'EnableEventVal idation' property can only be set in the page directive or in the <pages> configuration section”. The problem here is I am just creating a module for an existing website and there is no way I can change...
    See more | Go to post

  • fire event in asp.net user control inside another asp.net user control

    Hi,

    I have an existing asp.net user control A and I need to use it inside another asp.net user control B. The problem here is that I cannot edit the codes inside the user control A.

    My user control A contains a button click event function.

    I have a button inside my user control B. I want to fire the button click event from user control A when I click on the button from user control B.

    ...
    See more | Go to post

  • Button in User Control does not click in main form

    Hi,

    I'm fairly new to C#. I have a user control as part of another project and I'm loading it in a form in my current project. There is a Data Grid with some values in it. There is also a button on the user control which has an on_click event associated with it.

    I am able to load the values into the data grid in the user control on the form using an on_load event of the user control. I have to use these values and do...
    See more | Go to post

  • Dynamically loaded User Control, reading data on postback

    Hi:

    I am loading a user control on postback of a link click event. Now, when I try to retrieve the selected values in this control on button click event (next postback), I am not able to. Can you please help me out?

    I am using page_init with a IsPostBack condition. but it reloads the user control and I am not able to get the selected values.

    Thanks in advance.

    I can provide the code if ...
    See more | Go to post

  • Tim Rowe
    started a topic Keypress navigation of an array of controls

    Keypress navigation of an array of controls

    I have a 2-d array of my own controls (derived from UserControl) on a panel in a Windows form. I would like the arrow keys to navigate in 2-dimensions, but the arrow keys get intercepted before I get to see them so I just get the default navigation (which goes through all of my controls as if they were in a single line. Can anyone tell me how to intercept the keystrokes and do my own handling? At the moment I'm overriding OnKeyPress on my own controls...
    See more | Go to post

  • Why doesn't Google Map in User control work for multtiple instances?

    Hi,
    I have created user control which contains google map .
    code in user control is as follows
    Code:
    <script type="text/javascript" language="javascript">
    var map;
    fucntion intialize(){
      map = new google.maps.Map(document.getElementById("map_canvas"), mapOptions);
            
            //set the default center
           map.setCenter(myLatlng);
            //set
    ...
    See more | Go to post
    Last edited by Frinavale; Feb 9 '11, 03:26 PM. Reason: Please post code in [code] .... [/code] tags.

  • how to Usercontrol multiple instances on page with common javascript functionality

    I am having user control multiple instances on same page. user control is embeded with javascript functionality.

    for eg.

    <script type="text/javascript" language="javas cript">

    var Global_variable 1,Global_Variab le2;



    function CommonFunction( ){
    }

    </script>

    i am calling this function from .ascx.cs like...
    See more | Go to post

  • romepatel
    started a topic User Control Events

    User Control Events

    Hi,

    I am working on Windows Form.

    I have a user control, which has an Image(PictureBo x) and a label.


    Now When i am using it on the form and i have attached an click event on the user control.

    When i click on the control the click event works fine, but when i click on the image or label inside the user control, it calls the events of the image and label respectively. But i don't want to call...
    See more | Go to post

  • how to call JavaScript function in user control ?

    simply i take one user control and register it in one page

    now in this page i write a JavaScript function like this
    Code:
    function sethere()
         {         document.getElementById('<%=(test1.FindControl("TextBox1")).ClientID %>') = document.getElementById('<%=(test3.FindControl("TextBox1")).ClientID %>').value;
        }
    and

    now how to call it in user control,user...
    See more | Go to post
    Last edited by Frinavale; Jun 25 '10, 03:07 PM. Reason: Please post code in [code] ... [/code] tags. Added code tags.

  • aspnetsnake
    started a topic Tab Index in a Page with User Control.

    Tab Index in a Page with User Control.

    Hi everyone

    I have a form with a custom control and in that control has an input field and the control lies in the middle of the form, when I tabbed across the form the tab index was behaving strange, can anyone help me on this so that I could set tab index of controls acording to my requirement?

    Thanks
    See more | Go to post

  • AmiMitra
    started a topic user control

    user control

    hi all, i'm new to C#. want to create a user control which includes a table with 6 columns and one row. on the aspx page in which it wil b seen, i want a button , clicking on which the table in user control wil be visible. i am using vs 2005. i hv created a file called tableEntry.ascx and created a table there with 6 columns, by using <tablerow> and <tablecell>. in the aspx page in which it wil be seen, i hv places a placeholder and a...
    See more | Go to post

  • Use inheritance to produce a really useful combo object

    When you populate a combo you load it with data that normally comes in the form of a code and a description - but the combo is only interested in the description. By creating a class derived from a combo, with additional properties, you can use it to keep the codes as well. When the user selects a description, you can get the code from the control. Here's how I do it:
    [code=vbnet]
    Public Class ComboControl : Inherits System.Windows. Forms.ComboBox...
    See more | Go to post
Working...