Tagged Questions
1
vote
1answer
20 views
Uncheck the first checked CheckBox when count exceeds the Maxlimit
I have a CheckBoxList and my requirement is to allow user to select maximum three options(through Javascript) and as soon as he clicks on the fourth one the first selected CheckBox gets unchecked, ...
1
vote
2answers
38 views
How do I convert this javascript line to c#?
I understand the first part of the line, but I'm not sure what the part after the || does. Can anyone tell me how to convert this line to c#?
var g = grid[iy * gw + ix] || [];
Original source is ...
0
votes
0answers
18 views
XML and Safari reading
I am currently attempting to display my XML data via a Safari browser. However, all the values are undefined. Any help would be appreciated.
Code:
queryOneInStoreCutData = function (data) {
var ...
1
vote
1answer
32 views
Raising Javascript confirm box from code behind
I am trying to raise a Javascript confirm box from code behind.
I am using the following syntax
ScriptManager.RegisterStartupScript(this, GetType(), "key", "javascript:return confirm('Are you sure ...
-1
votes
2answers
102 views
Comma between c# , javascript, and jquery
I have a little problem with a comma in jquery ,
vmaxy2 = double.Parse(maxy2.Text , CultureInfo.InvariantCulture);
// C# part : value : 0,3
Javascript part :
var maxim2 = <%= vmaxy2 %> ...
0
votes
3answers
58 views
is any of the two or three radiobuttons is checked
I have different groups of radiobuttons and all of the radiobuttons witch is paired have the same id so that they sould work togheter and they do in certain ways. But when i want to validate i use ...
0
votes
1answer
30 views
how to bind menuitem to another project in same solution
There are two projects in one solution,How to bind a web page(.aspx) for Navigate URL property in menu item in different project.I need to access menu item in one project to another project aspx ...
1
vote
0answers
32 views
updated value of asp.net label not reflected on java script variable
I have an asp.net label , label2 which is in an ajax update panel.
<div id="Div1" class="InsertBar">
<asp:Label ID="Label2"
runat="server" Visible="true" Font-Bold="true">
...
0
votes
3answers
68 views
TextBox with numbers only in the format ####.##
I figured out how to type in only numbers in a text box, using this function
function isNumberKey(evt) {
var charCode = (evt.which) ? evt.which : event.keyCode;
if (charCode != 46 ...
0
votes
1answer
31 views
Filter GridView with Javascript
I have a function in Javascript that makes filters in my GridView.
But, this function makes a filter by column, ie I needed an "input" per column in my GridView to filter all GridView.
How I can adapt ...
0
votes
1answer
20 views
How to disable a specific javascript file in Web Browser control in C#
I'm using web browser control in my C# project and I want to disable only a specific javascript file. Is there any way to do that? This script is loading from an external website and I want to disable ...
0
votes
3answers
67 views
What is the easiest way to trigger a C# class from an asp.net page?
In my asp.net page I have three labels:
A default name to filter by
Filled with a list of names which I want to click on to be the new filter
Filled with a list of items to be filtered
2 and 3 are ...
0
votes
3answers
35 views
Getting data from .aspx to jquery ajax
I'm novice in jquery and I have one problem:
I have two .aspx files: one of them contain script
<script type ="text/javascript">
$(document).ready(function () {
var schemaName = ...
0
votes
0answers
12 views
Running HttpUtility.JavaScriptStringEncode on all references to Resources translations?
Long Version
In the web app that I work on, we put all our translations into .resx files that we then refer to by calling Resources.FileName.KeyName (as specified in the "To retrieve global resources ...
0
votes
1answer
30 views
Interaction between JavaScript and Windows Forms
i have a Windows Forms application, which uses a Webbrowsercontrol to display a dynamically generated Htmlpage. Is there a possibility to interact with the jscode of the page? For example if i have ...
0
votes
1answer
36 views
jQuery UI class dissapears on button even though .button() is set in codebehind?
Im starting to pull my hair over this.
Im trying to append jQuery UI's button appearance on my regular button, however it doesn't get appended. Doesnt even get a class..
<asp:UpdatePanel ...
0
votes
0answers
12 views
getting Data from Database using offline html page using the HTML5 postmessage function
I have offline html page includes iframe linked to aspx page .The aspx page will receive the message from input in the offline page . HTML5 postmessage function will be used in offline page to send ...
1
vote
1answer
36 views
How to return backbone collection in .NET MVC
I'm fetching a backbone collection using .NET MVC and am having trouble populating the collection properly. The data I need is returned but is inserted incorrectly in the collection.
What follows is ...
1
vote
1answer
22 views
Bit shifting/type casting in javascript with unsigned 32 bit integers?
I'm trying to convert some complex C# bitshifting code into javascript (node), but I'm having issues with this kind of conversion as an example:
var d = false;
var k = 61;
var dd = 103;
uint r = ...
-3
votes
1answer
19 views
How to get facebook friends details in asp.net webpage? [on hold]
How to get Facebook friends details in asp.net web page by using c# and java script.
0
votes
0answers
28 views
Model Validation or Javascript Validation? Best practice
I have an MVC application which contains an enrollment page. On the model class:
public class Register
{
[Required(ErrorMessageResourceName="Name Required"), ErrorMessageResourceType = ...
0
votes
0answers
33 views
How to fix Sys.ArgumentTypeException: Object of type 'Object' cannot be converted to type 'Function'
I'm getting below error with my JavaScript function.
Uncaught Sys.ArgumentTypeException: Sys.ArgumentTypeException: Object of type 'Object' cannot be converted to type 'Function'.
Parameter name: ...
0
votes
1answer
55 views
Document.ready not working on my login page
So, I have this login page (see code below) and Document.ready not working. Is the problem in the script? Could there be something in my code that would make the document.ready not work correctly?
I ...
4
votes
8answers
132 views
Better way for the special concatenation of two strings
I want to concatenate two strings in such a way, that after the first character of the first string, the first character of second string comes, and then the second character of first string comes and ...
0
votes
0answers
20 views
Make an event before a Javascript Event on Aspnet
Well the title isnt clear enough sorry about that.
what happens is that i have a Table (X) with 9 divs, when i click on one of those i hide that table (X) and make another table (Y) visible (this is a ...
2
votes
1answer
109 views
Nancy model binding not working in Chrome, IE
I have been having this issue in one of my applications and have stripped it down and set up a small test environment in which the problem still occurs.
I am posting the following object (JSON)
{
...
0
votes
1answer
38 views
JQuery trying to print columns of a table where a checkbox is ticked, then printing a response from a web server
I am trying to create a URL using JQuery and am having a small issue. I am printing a table to my page like so :
<table id="employeeTable">
<thead>
<tr>
...
0
votes
2answers
59 views
Create a program which control webpage? [on hold]
Sorry for the title, I don't have a better one.
So what I thought of and want to do is to create a simple program (in C# or Java, it doesn't matter), that opens IE, Chrome or Firefox (it will support ...
1
vote
1answer
29 views
Client and server side password strength validation library
I'm trying to find a library for .Net which will allow me to validate a user-entered password, and check its strength.
I've found lots of links and recommendations for client-side implementations ...
0
votes
1answer
31 views
Load Grid view data on scroll down
Hii I am using a grid with more than 1000 rows (from database). I was using Paging. a new requirement is to remove paging and show only 50 records at first load and then when user scrolls the page ...