.net - MessagBox On JavaScript?
May 15, 2011
Protected Sub ListView1_ItemCommand(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.ListViewCommandEventArgs) Handles ListView1.ItemCommand
'...vwmr for view more; atcr for add to cart
[code].....
View 3 Replies
ADVERTISEMENT
Mar 8, 2011
One, is that I need to figure out how to exit from a long loop using the "Exit" button from my form, and two I need to figure out a way for my MessageBox to always pop up on top of any and all applications running. It seems to do this the first time it runs through the loop but after that it is always in the background.
View 11 Replies
Oct 8, 2010
I have written a web usercontrol (ascx). Inside, there is a Panel that I want to show/hide on click of a hyperlink inside the usercontrol. Normally, this is easy just by doing something like this (the onclick attribute is added to the hyperlink on prerender):
[Code]...
View 2 Replies
Aug 17, 2009
I have a datalist and in itemdatabound iam calling javascript and passing one argument.But iam not getting that argument in js.
<asp:Button ID="btnUpload" runat="server" cssClass="button1" Text="Upload" >
<asp:DataList ID="dlView" runat="server" >
<ItemTemplate>
<tr>
Problem is in itemdatabound iam getting value in String.Format("javascript:UploadImages('{0}')", s)but when clicking on btnUpload ,control is moving to UploadImages in js,but no value in str.Following is html result
<div id="shadow" class="opaqueLayer"> </div>
<div id="question" class="questionLayer">
<table width="100%" cellpadding="0" cellspacing="0" bgcolor="#F1ECDE">
<tr style="height:17">
[code].....
View 2 Replies
Sep 14, 2011
I have to store, in 2 cookie dictionary/keyed cookie, a user's preference for hiding certain sections of each form on the app. It would appear that IE7 has reached some limit for the number or size of the cookie in javascript. I mean that the cookies are only inaccessible on the client-side js, but can be read just fine in our asp.net/vb code-behind.
The functions that need to read the value of these cookies must be on client side because I can't run a postback everytime the function needs to update the cookie. How should I go about getting and setting the cookie without triggering postback? I thought about storing the value of the cookie onload in a textbox, but I don't know when I would read it back and update the cookie.
View 2 Replies
Feb 6, 2012
i have a javascript function in aspx file now i use vb as back in asp.net now i use postback from javascript like this
[Code]...
now i dont get that "1" in my vb code i want to get it because i want check when i get page_load event by post back by this javascript
View 2 Replies
Oct 7, 2011
I created a web form in .net. The form need to use WYSIWYG editor. So, I have decided to use CK editor. Now, I have gotten a problem that the CK editor lets to use javascript in the textarea. I don't want to let this. How could I do that?
View 1 Replies
Apr 25, 2011
I have a javascript function that should open a pop up window like so
function callBackWindow(url) {
indow.open(url, 'OpenWindow', 'width=1000,height1000,left=-10,top=-10,scrollbars=no');
return false;
[code].....
View 5 Replies
Sep 13, 2011
in converting the folowing javascript syntax into visual basic one.
if (!event.willCommit) {
var f = this.getField("dept");
f.clearItems();
[Code]...
View 8 Replies
Mar 13, 2009
how to get document objects of a javascript ".js" file in an html page that uses <script src="....js">? Or any other way? I want to click on a link.
View 4 Replies
Jun 27, 2012
I have a grid column, of which, row X is hidden. I want to pick the values of each column's row x, perform some calculations at client side and display it in row y(through client side code). I am not able to pick values from hidden field in client side. Is there a way I can put those values in a client side array using javascript code, and use it for my calculations. Also when page posts back, the array should get updated with latest values.
View 2 Replies
Nov 14, 2011
i have a vb.net GUIform that will display an AxWebBrowser to show a html table which have some interactive controls that required javascript to work.I already prepared the javascript with the valid functions.Example:Inside AxWebBrowser have a button, when i pressed the button, it will display the current time inside the AxWebBrowswer. Is that possible to do this? and how? Just place the .js file in the same place and set the src equals to the .js file path? but it seems not work.And after several tried, i found maybe JScriptCodeProvider can do this. but i no idea how to point the src to the jscript running in memory.
View 1 Replies
Feb 20, 2012
I want to do a questionnaire application which should run on all the clients which are connected to the server. The project is for college event and it should run in college lab how can I go about doing this project, should I use .Net stand alone or asp.Net or can I do it with HTML,Javascript and XML?
View 1 Replies
May 5, 2009
Will a Webcontrol item display a Web site that uses Javascript? I wrote a small webcam application and added the URL of the webcam to the properties of the Webcontrol item. However, when I rung the app the page attempts to load but halts loading at "Please Wait..." BTW - this is a phone "SmartDevice" application...
View 3 Replies
Jul 2, 2009
I'm probably missing out on something fundamental here but it seems rather tricky and confusing to me so here goes.to demonstrate the issue I have the following example .aspx page
<%@ Page Language="VB" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">
[Code]...
View 3 Replies
May 1, 2012
In a VB.net app, I have several checkboxes created with regular ASP controls, i.e.asp:CheckBox ID="cb3" runat="server" Checked="true" />I'm trying to implement a "Select all/none" functionality but I'm having a few problems. The Javascript is not changing the state of the checkboxes in Internet Explorer (v9). I tried debugging with IE's dev tools and the checkboxes are definitely getting their checked property set to true. (Also tried setting to "checked".) Here is the JS:
function setCheckboxes( state )
{
var inputs = document.getElementsByTagName("input");
[code]......
View 3 Replies
Mar 16, 2011
How can I replicate this in javascript?Now.Ticks.ToString
View 5 Replies
Jul 12, 2011
I'm trying to call a modal popup extender from javascript. Here's the call:
function MyFunction()
{alert("test");
$find('mdlPassword').show;}
I get the alert when it's called, but the modal popup extender won't show. Here's the aspx stuff:
<!-- Popup Extenders Should Go Here -->
<asp:button id="Button1" runat="server" text="Button" style="display: none;" />
<asp:ModalPopupExtender ID="mdlPassword" runat="server"
[code]....
View 1 Replies
Dec 8, 2009
Am trying to read in data from an xml file but using javascript which is embedded into my asp.net|vb code. I am new to asp.net but coming from a programming background
View 1 Replies
Jun 13, 2011
I'm experiencing a problem when clicking on the page number within my ASP .NET gridview. When I click another page number, I am redirected to another unrelated page within my project.This wasn't a problem until I added jQuery to my masterpage, so I'm guessing there is some sort of conflict in the javascript code. When the aforementioned redirect happens, the page PageIndexChanging event isn't fired and there isn't a postback as far as I can tell. [code]
View 1 Replies
Jul 29, 2010
In aspx page:
if (<%= Not Me.ThisVisa.PassportExpirationDate.IsNull %>){
Returns error:Microsoft JScript runtime error: 'True' is undefined
I tried this:
if ("<%= Me.ThisVisa.PassportExpirationDate.IsNull.ToString %>" != "True"){
..but I get a compile time error:
Error 5 Option Strict On disallows implicit conversions from 'String' to 'Long'
View 4 Replies
Oct 6, 2011
How can I call a javascript function from code behind?The most popular response is "ScriptManager.RegisterStartupScript" however, that does not work in my situation. I have a vb class that is doing a database check to see if a record exists. If exists, then call a javascript function to display an alert("Record exists") So I am doing something like
Dim strMessage as string = "javascript:RecordExists('Param');"
How do I call this function from my vb.net class?
View 2 Replies
Jun 27, 2011
Problem is, I need to call a VB.NET function from javascript, no two ways around it. This is a bit harder to find.BTW -- Web/Page methods won't work. I have to be able to reference a listbox and it's selected items when the VB code-behind fires.
View 3 Replies
Jul 13, 2010
I have a javascript src that i need to add to some of the pages in a site.
for example <script type="text/javascript" src="http:abcxyz.com/zzz"></script>
I want to add this conditionally on a .ascx page - if the Request.ServerVariables["SCRIPT_NAME"] ends with certain criteria.
The ascx language is vb, and there is no code behind.
View 2 Replies
Feb 21, 2011
I've inherited some code (not mine- I swear!) which uses a session variable in the header of the HTML to determine which javascript file to link to.
i.e.
CODE:
It does work, except that it won't let me change to design view. It gives the message
"Could not open in design view. Quote Values differently inside a '<%... "value" ...%>' block."
View 2 Replies
Feb 6, 2011
I am new to programming especially jQuery. I am trying to sort (order) images using jQuery UI Sortable List. The problem that I am having is that I don't know how to loop through the <li> list to get the id. Below is the code for the .aspx page:
[Code]...
View 3 Replies
May 31, 2011
I'm trying to eliminate a VB.NET button on my aspx page. Trying to use javascript and ajax to execute the same code my vb had.I put in a script manager, set EnablePageMethods to true, added a static subroutine, and referred to it in my javascript function (BTW -- this seems a lot of work just to execute an existing subroutine). The javascript calls my code-behind and it almost works.Problem is, now I'm getting a NullReferenceException when SimulatePrintBatchClick tries to do anything with the controls.
Error is 'Object reference not set to an instance of an object', line is 'pnlVars.Controls.Clear'
Here's the code from UW.aspx:
<WebMethod()> _
Public Shared Sub PrintBatchFromJSWM()
Dim UWI As New UW
[code]....
when I run the above code in PrintBatch_Click it all executes just fine. I really don't understand why it bombs out as a subroutine.
Perhaps this is not the way to do this, but I'm at a loss for finding a different way. Originally this code was handled by an ASP/VB button, but the specs have called for it to be deleted.
View 1 Replies
May 27, 2011
I have a menu on my aspx page which looks beautiful. It's exactly what I need (found it here).
Problem that I have is this: I need (somehow) to kick off a button control from the javascript. I realize that in the example, the menu items are simply href links, but I'm wondering how I could possibly do a postback and kick off my Button1_OnClick event.
View 4 Replies
Jan 31, 2012
i have a java script function which help to calculate the total cost by taking the price * by the quality
<script type="text/javascript">
$("[id*=txtQuality]").live("change", function () {
if (isNaN(parseInt($(this).val()))) {
[code]....
View 2 Replies
May 9, 2009
I am using textbox(txtFileType) with event OnFocus=("this.blur();"), so I can't use textchanged event for this textbox, I have written a vb code to calculate my FileNumber using Storeprocedures based on the value of textbox(txtFileType). Can I call this vb code from javascript which can be used in clientside.. please help with an example..
View 2 Replies