Tagged Questions
4
votes
1answer
67 views
Horrible nested if statement for changing CSS based on RadioButton selection
I'm writing away for this website, and I've come into a problem. I need to display only one td based on the corresponding radio button pressed. However, there are ...
1
vote
2answers
448 views
Is this use of Newtonsoft.Json.JsonConvert.SerializeObject secure?
Like many ASP.NET developers, I use the Newtonsoft library to convert C# objects into JSON. Is this use of Newtonsoft.Json.JsonConvert.SerializeObject secure?
Here ...
1
vote
2answers
101 views
Please compare these methods of accessing web forms controls using unobtrusive javascript
It's a common scenario. You have an ASP.NET web form with all of its controls (and generated IDs), and you have a separate Javascript file that needs to use those controls. What's the best practice?
...
1
vote
0answers
142 views
Wrapping postback functions to call custom code at execution
Here is my solution for this stackoverflow question.
It is designed to return an onbeforeunload message when the user leaves the page (excluding postbacks). It ...
1
vote
1answer
140 views
How to optimize jQuery to run on asp.net web form updatepanel?
I wrote this Jqeury to make it work with asp.net update panel. I know i do little bit of hacking to make it work just. I want to get some help in how to optimize and remove the hacks from my script.
...
9
votes
2answers
1k views
Display progress bar to show async. request status using JQuery
Instead of using ProgressBar plugin, I've below script to display the progress bar for async. requests on the page. Could anyone provide any feedback on this esp. if there will be any issues like ...
1
vote
0answers
845 views
AJAX MaskedEditValidator isValidEmpty property manipulation [closed]
thanks for visiting ,
this is my initial question that lead me to modify the behavior of
AJAX MaskedEditValidator - ...
3
votes
2answers
313 views
How to improve a try on a dual Mode JavaScript textBox WaterMark?
I was just trying to make an alternate Ajax watermark from "insert date" (first mode) to "mm/dd/yyyy" (second mode).
After some trial and error, I succefully implemented a solution using JavaScript.
...
3
votes
1answer
473 views
Cross-browser double form submit prevention
We developed a potential solution for the double form submit prevention and we need some review on it. To be able to execute this code on asp.net we needed to add our function call directly into the ...
0
votes
1answer
2k views
How to re register dynamic scripts registered with ClientScriptManager in asp dot net using session was bad idea
Following the normal pattern of adding inline scripts to gridview row/s is a bad practice it used to work like below
...
9
votes
3answers
599 views
Is there a better way to output a javascript array from ASP.net?
I often run into the problem of producing a javascript array on an ASP.net page from an IEnumerable and I was wondering if there was an easier or clearer way to do it than
...