473,698 Members | 2,196 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

accesing of controls in modal popup via code behind

5 New Member
<Script language ="javascrit" >
Ensurenumeric()
{


}

</Script>


<asp:Panel ID="Panel1" runat="server" Height="300px" style = "display : none" CssClass="modal Popup"

Width="400px" Visible="True" >

<table style="width: 100%;">

<tr>

<td class="style1">

&nbsp;</td>

<td class="style2">

<asp:Label ID="lblE1" runat="server" Text="abc"></asp:Label><br>

</td>

<td>

<asp:TextBox ID="txtE1" runat="server" width="100px" Text="0.00"

OnKeyPress="Ens ureNumeric()" AutoPostBack="T rue"></asp:TextBox>

</td>

<td class="style1">

&nbsp;</td>

</tr>






<tr>



<asp:Button ID="OKEvent" runat="server" Text="ok" onclick="OKEven t_Click" />

<asp:Button ID = "cancel" runat="server" Text="cancel" />

</td>

<td class="style1">

&nbsp;</td>

</tr>

</table>

</asp:Panel>





<cc1:ModalPopup Extender ID="Button1_Mod alPopupExtender " runat="server"

TargetControlID ="lblEventTotal 1" PopupControlID= "Panel1"

CancelControlID ="cancel" OkControlID="OK Button" BackgroundCssCl ass="modalBackg round" >

</cc1:ModalPopupE xtender>



the problem i m facing is that when in try to access the textBox(txtE1), and want to use the value of txtE1 outside the modal popup so i put the code tin the onclick event of the OKButton.

but when i click the OKbotton,the method corresponding to it is not fired and the method i hve written in code behind(C#) code.

can anybody help me how to do this?

i hv tried so many ways?

plz suggest me some way to do it
Nov 2 '08 #1
1 1692
joedeene
583 Contributor
Expand|Select|Wrap|Line Numbers
  1. <Script language ="javascrit">
  2. Ensurenumeric()
  3. {
  4.  
  5.  
  6. }
  7.  
  8. </Script> ....
I'm not a JavaScript expert, or have much experience with it, but don't you have to say Function Ensurenumberic( ) ? Also, you have misspelled the Script Language, which should be like "text\javascrip t", right?

I don't quite understand your question but try changing the above and see if all works better :D

P.S. Welcome to The Community :)

joedeene
Nov 2 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

5
10047
by: ChrisR | last post by:
Hi all Ive have a Main Form with Command Buttons down the Left hand side, that open various forms. Clicking on a button opens a Sub Form which is moved to take up 3/4s of the right of the main form, so they look as one form. 1st Problem: If I set Modal = True in all Forms, and a Sub Form is open, then I cant access the Command Buttons on the Main Form, which are still
1
1771
by: .Net Newbie | last post by:
I am relatively new to .Net and have been coding an intranet site for my employer for a couple of months. I am currently stuck coding in a text-editor called EditPlus without access to the VS.Net IDE, and coding pages with the script directly in each page (not using the codebehind method) as most of my learning material has demonstrated. I started with the IBuySpy Portal (SDK version not VS Version) as my base portal and have coded...
3
1268
by: Diana M | last post by:
Hello, I have started my first asp.net application (beginner). I have 2 text boxes on the form that should contain 2 different dates (beginning and end). It would be nice to have 2 small buttons besides each text box that allow to open little form with calendar. I came from VB world where we had arrays of controls, but here I can't make it. Should I have 2 controls with different names and write code twice in the button click event or...
15
10090
by: H00ner | last post by:
Hello All Hope you can help Been pulling my hair out about a popup problem in ASP.NET. One of the forms i wrote requires the user to select a product from a list in a popup web form. the popup has a DataGrid on it and the page.load function DataBinds as you'd expect. I have Code-Behind in C# to emit a call to a JavaScript function which
1
2943
by: Samuel Rhodes | last post by:
hi i am using a ajax modal popup to allow the user to search an item and select the required item from the list. whenever i try to search the item, which causes a post back....the modal popup disappears/becomes invisible... in general, any postback fired from within the modal popup makes the modal popup disappear.
0
1672
by: =?Utf-8?B?QWxCcnVBbg==?= | last post by:
I have a situation in which I need to check for data in either of two fields and display an alert if neither field contains data or if both fields contain data when the user clicks on a View button; these two fields are for Member Number and for Social Security Number. I have written a Javascript function to handle that situation. A new condition was thrown at me yesterday in which I need to display a modal popup only if a Social Security...
16
4164
by: Mike | last post by:
Hi, I have a form with some controls, and a different class that needs to modify some control properties at run time. Hoy can I reference the from so I have access to its controls and therefore being able to modify its properties?
4
2320
by: fran_j_diaz | last post by:
Hi, I have a page with an Ajax modal popup. I would like to know when my Modal popup is opened, my page still able to modify. Is it possible ? (I use Visual Studio 2005, c# )
5
10873
by: =?Utf-8?B?SmFtZXMgUGFnZQ==?= | last post by:
Hi all Have a couple of issues with the modal popup extender (asp.net 3.5, vb.net, visual studio 2008): I have created a user control (e-mail enquiry form) which is designed to accept text input then send an e-mail. The user control has 2 views – view 1 –e-mail input form, view 2 confirmation that e-mail has been sent.
0
8674
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8603
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9027
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8861
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6518
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5860
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4369
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4619
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2329
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.