o
k
q
u
e
s
t
i
o
n
s
.
c
o
m

confirm javascript function is not workimng for my custom control -

Hi
I develop a custom control inheriting from System.Web.UI.WebControls.WebParts.WebPart.
I have this code in a button in the control:
private Button btnSave = new Button();

btnSave.Text = " Save ";
btnSave.OnClientClick = "confirm('client');";
btnSave.Click += new EventHandler(btnSave_Click);

and so on
But when the user clicks on the button, I get the confirm pop up message. But even when I click Cancel there is still a postback
Do u have a trick for me pls?
Thanks

 

confirm javascript function is not workimng for my custom control -
Hi I develop a custom control inheriting from System.Web.UI.WebControls.WebParts.WebPart. I have this code in a button in the control: private Button btnSave = new Button(); btnSave.Text = " Save "; btnSave.OnClientClick = "confirm(


Javascript confirm function -
When using the Javascript CONFIRM() function the buttons labeled are OK and CANCEL. Is there any way to change these labels, or is there a way of creating a similar function so I can label the buttons in the way I want? Peter


confirm box return value -
I'm familiar with using confirm boxes on a button to determine a certain action based on the return value. I'm now sure how do this inside of a function. I'm scanning the database inside of a function and if a particular value is found, i want to display a confirm box with yes/no act


WebBrowser takes control of entire application! -
If I navigate to a page with a javascript alert/confirm box through a webbrowser control in my VB application then the javascript alert/confirm box will hog the focus and not let my app do anything. I can't click any buttons until I click "ok" or cancel on the browser! I don'


javascript alert incorporating with asp code-behind -
I have a function in an asp.net page that will delete a record from a database. I need to have a message pop up to confirm deletion. I have searched google and everywhere for about 2 hours now, hoping to find something. It looks like everyone is saying i need javascript or vbscrip


custom validator-.net 2.0 -
Hi, I am using a custom validator to find out if a user has selected a value in a dropdown control called ddlPA. On the webform there is a contentPlaceHolder. the ddlPA is inside this contentPlaceHolder. A custom validator is assigned to ddlPA. This validator calls a javascript c


submit javascript question w/ forms -
ok,this works <a href="somepage.htm" onClick="javascript:document.myForm.submit();">submit</a> but I need to run use a confirm box before I submit the form. so I am trying this: <script> function ConfirmDelete() { if (!


Mouseclicks on listbox: JavaScript or Asp.Net -
Hello, Firstly, apologies about posting a similar problem because there have been different answers on what language and approach to take. This time, I'll try to describe the problem clearer. In short, I have to display a rightclick menu only when the user rightclicks on a list i


MouseClicks on a listbox: Javascript or Asp.Net -
Hello, Firstly, apologies about posting a similar problem because there have been different answers on what language and approach to take. This time, I'll try to describe the problem clearer. In short, I have to display a rightclick menu only when the user rightclicks on a list i


Calling javascript in asp.net -
I have javascrip function in theweb user control and I am trying to call the function on thc Onclick event of web control button <script language="Javascript"> function BackMe(){ javascript:history.back() } </script> but I am getting error ie )expected


question on how to use javascript in asp.net 2005 -
hi well i want to use javascript in the asp.net , both in the server side and in the client side maybe i have to confirm that in the top of a page like when i use the default VBscript <%@ Page Language="vb" AutoEventWireup="false" CodeBehind


Two Custom Control Classes in 1 Class Library -
VB.Net does not seem to let me add more than 1 custom control into a dll. My first custom control inherits from TabControl and implements a couple basic function. My second custom control is defined simply as: Public Class Class1 Inherits System.Windows.Forms.TabControl En


ActiveX control/dll -
Hi, I've got a C++ dll, VB activeX that wraps the c++, and a javascript page. I need to call 4 functions from the dll. I've created a VB ActiveX control(ocx). I am able to call all the functions above through my VB control(IDE). However, upon instantiating the ActiveX contr


[2005] Adding Javascript code to a Button control -
Plz,hw connect a javascript function to an asp.net button control, i want d javascript to fire before d control initiates a postback to the server.(OnClientClick?)


javascript confirm message -
BtnAddRec.Attributes.Add("onclick", "javascript:return confirm('Message Here')") I'm using this code in the btnAddRec click event, but it's not giving me the message. Is this correct?


Datagrid LinkButton and javascript-RESOLVED -
I have a datagrid with a column of DeleteCommand links When clicking the links I want to have a javascript message to confirm that this is what they want to do but onClick for the LinkButton does not accept a "return ConfirmDelete()" call to javascript, only public calls in


Passing a procedure as a parameter in a custom function -
I know in C++ you can you pass a function pointer as a parameter in a function. Is there anyway to do this in a custom function in VB? I don't want to use the CallByName method because it requires the method name to be part of an object and because I'm creating a control I do not w


[02/03] Custom Server Control including a RequiredFieldValidator -
I'm developing a simple custom server control including a TextBox and a RequiredFieldValidator and it's driving me quite mad. It seems that a Validator wrapped in a user control will not emit any of the required Javascript code for it to work. Why is that and is there a way around


custom user control -
I am new at trying to make custom controls. Basically, say we have a list of items to "do". Each item will be displayed on a custom control. Within this. for each item, I want it to be represented by labels and a progress bar against each item. Thats fine I guess,


need to return value from jscript to vb.net (am using response.write) -
After much searching I have finally figured out a way to call a jscript "confirm" box from serverside vb.net code. The code I am using is as follows: Dim sb As New StringBuilder("") sb.Append("<script language='javascript'&


JavaScript (Not Crospost) Help... -
Call Stupid but, For some reason I thought that all JavaScript Function were built in to the VB Web Browser Control. Dumb huh? Does anyone know how to use/set them for VB web browsers. ya' know stuff like the javascript close function, and the javascript resize functions, so


Datagrid Linkbutton Alert box issues.... -
I have a linkbutton in a datagrid that is supposed to display a message in an alert box when clicked. For whatever reason, I'm getting all types of errors. Sometimes its the "html tag issues" other times the value is unknown. I have something like this in my Datagrid:


[2005] Using custom control regadless of it's signature -
Hi I have created a custom control in vb.net. I am using this control in one of my application. Now the problem is that, the application doesn't loads the custom control whenever custom control is compiled because of new changes. Big red cross is displayed on the form. This is beacu


How do I do a yes/no box -
For example in JavaScript you can write: var someVar = confirm("Some Text"); Is there an API function or something that I can use in C++? Thanks in advance.


[2005] create pages by custom control -
Hello! I'm working on a custom control, acting as a framework for configuration pages. To provide context sensitive help, there should be an ability to generate links to a help page. These links are javascript functions which open a new popup window (window.open()). The component of t


calling External function -
I am using webbrowser control in my app. In that browser page i want to call a function written in vb through javascript or vbscript. Also i want to know how to call javascript function from the vb app. Please help me if any one do it.


javascript on server controls..i -
i try to write javascript on onclick of that button..but it gives error..like' ")" expected '. what is the easiest way to do that? i have 2 textboxes & 1 button (all server controls). when user clicks the button ..two confirm window appears after one another.In the first


JavaScript DOM -
Hi, i understand a bit more about DOM now, but can any1 help me with some code. How can I run a javascript function and read a javascript variable that is inside a html file inside the webbrowser control. If no1 is sure then please say. Tnx Adz


[2005] Custom End Caps On A Curve -
I'm pretty sure the answer to this is no, but I want to confirm: Is it only possible to use a custom end cap (or any end cap) with a line? I'd like to draw a curve with a homemade arrow at the end. Thanks!


vbscript to Javascript -
Hi Everyone. Can someone help me convert my vbscript statemnt into JScript/Javascript. <Script language="vbscript"> Function X() dim control for each control in document.formmame if control.type="checkbox" then msgbox control.na


Maskedit Custom Control & SetFocus Method... quick help rqstd! -
i m trying to make a custom control based on maskedit. when i use this custom control, it give me error on -> customcontrol.setfocus saying that can some one tell me how to code setfocus event for the custom control ? thanx for ur help.


custom usercontrol which has another custom usercontrol inside -
Hi friends, I have strange problem on my custom control. I made a custom usercontrol which has another custom usercontrol inside, i am using this control on a form and it is working very well. But when i transfer this form with its custom controls to another project, it is giv


VB and JavaScript -
I use a webbrowser control in my Application. I display a html file in this control. This HTML file uses Javascript. I want to call a Javascript function when a Button on the VB Application is clicked.


Javascript in ASP.NET -
hi everyone, i m trying to use javascript functions in asp.net webform...but somehow, the click function which should check the textbox status is not recognising the javascript functions is there any difference in using javascript in ASP and javascript in ASP.NET thnx


[2008] Custom listview Items -
Hey all, So what im looking to do is to create a custom control to be used in palce of standard listview items. I want my control to have its own width/height settings as well as an imagebox and some text fields for data. The custom control has been created, which is obviously t


Using custom .ocx (Resolved) -
Hi, I have made a custom .ocx file and added the control in my program. How would I go about calling the function within the ocx? TIA NW


Confirm Delete popup. -
I am trying to use a 'confirm delete' popup box when the user clicks on the 'delete' option. I get this error: Compiler Error Message: BC30456: 'confirm_delete' is not a member of 'ASP.listitems_aspx'. Here is some of the code: <script language="javascript">


javascript prototype functionality -
i'm curious if there is a way in vb.net to accomplish what javascript offers with prototyping, where you can add custom methods to a built-in class. in particular, i wanted to add some custom methods to the string class. i thought about inheritence, but it doesn't look like you can c


Linking to button via a custom control. -
Hi, I'm new here, and I don't know if I'm posting this topic in the right section. I am building a custom control in VB2005, en I want to be able to insert the control in my form. That works fine. Now I want to be able to link a external button to this custom control so the button


call javascript function -
Hi! I am an newbie in javascript. How can I start a function, which is written in javascript, in ASP.NET ? Thanks in advanced for help, Thomas