Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
ASP.NET Forums
›
Search
Search
You searched for the word(s): userid:41640
More Search Options
RSS Available
Matching Posts
Re: Create maintenable client-side code
Thanks, Sergey
Posted to
Architecture
(Forum)
by
AnatolyR
on 3/31/2008
Create maintenable client-side code
Hi. I am beginning a new job. My responsibility is client-side development of big project ~160 js files The project heavily uses xml/xslt and web services calls from client-side with no framework (all code written by team) Any tip/suggestion of how to handle such task will be welcomed
Posted to
Architecture
(Forum)
by
AnatolyR
on 3/30/2008
ClientCallback bug not been fixed
There is a known bug in ClientCallback js file inside WebForm_InitCallback function. Not all selected values from multiselect listbox been passed to server. The problem is in bold line: else if (tagName == "select") { var selectCount = element.options.length; for (var j = 0; j < selectCount; j++) { var selectChild = element.options[j]; if (selectChild.selected == true) { WebForm_InitCallbackAddField(element.name, element.value); } } } since element.value always returns only first selected
Posted to
Visual Studio 2008
(Forum)
by
AnatolyR
on 8/8/2007
Re: Safe way to bring strings from server-side to client-side
Thank you so much and SALAM
Posted to
Client Side Web Development
(Forum)
by
AnatolyR
on 1/15/2007
Re: Safe way to bring strings from server-side to client-side
Thanks, Haissam After research I'v found that there are few methods like: Uri.EscapeDataString or Regex.Escape but apparently they doesn't do what do I need I'm just little disappointed that no such built-in routine exists in .NET.
Posted to
Client Side Web Development
(Forum)
by
AnatolyR
on 1/15/2007
Re: Safe way to bring strings from server-side to client-side
Nice. But if string constructed in run-time or comes from db I don't know if it contains escape characters. Should I check one by one?
Posted to
Client Side Web Development
(Forum)
by
AnatolyR
on 1/14/2007
Re: Safe way to bring strings from server-side to client-side
Thanks Haissam. There is one more case: string with eol in it string myAlert = @"this string also cause an error" ; ClientScript.RegisterStartupScript(GetType(), "myAlert" , "alert('" + myAlert + "');" , true ); This code will also fail on client-side cause it will be: <client-side start> <script type="text/javascript"> <!-- alert('this string also cause an error');// --> </script> <client-side end> Of cause I can clear eol with in with <br/>. In short: is there
Posted to
Client Side Web Development
(Forum)
by
AnatolyR
on 1/14/2007
Re: Safe way to bring strings from server-side to client-side
protected void Page_Load( object sender, EventArgs e) { string myAlert = "this string w'l cause an error" ; ClientScript.RegisterStartupScript(GetType(), "myAlert" , "alert('" + myAlert + "');" , true ); } The error on client-side will say: Line 21 Error: expected ')' And I know why: cause ' sign in alert cause the string break in two peaces.
Posted to
Client Side Web Development
(Forum)
by
AnatolyR
on 1/14/2007
Re: Safe way to bring strings from server-side to client-side
Hi. There is no exception on server-side. But browser will throw client-side error.
Posted to
Client Side Web Development
(Forum)
by
AnatolyR
on 1/14/2007
Safe way to bring strings from server-side to client-side
Hi. The problem: Sometimes I need to bring string from server to client. That might cause several problems: string might contain ' or " signs, string might contains few lines, etc. For example I need to alert some string: so I write Register...(GetType(), "myAlert", "alert('" + mystring + "');", true); If mystring includes ' sign or few lines of string there will be an exception on client. Same problem might be if I call some client-side function with string parameter. Is there is any built-in function
Posted to
Client Side Web Development
(Forum)
by
AnatolyR
on 1/14/2007
Page 1 of 45 (443 items) 1
2
3
4
5
Next >
...
Last »
TechNet Edge:
AlignIT IT Manager Podcast #30 - Straight Talk about Windows 7
WindowsClient:
You know your post rate has gone down...
Silverlight:
Geek Profiles – Scott Guthrie
Channel 9:
C9 Lectures: Dr. Erik Meijer - Functional Programming Fundamentals Chapter 9 of 13
TechNet Edge:
Managing Your Virtual World - Tech Focus November 2009 Part 2
ASP.NET:
Silverlight and RIA Services: Implementing Search
Channel 9:
C9 Lectures: Brian Beckman - Covariance and Contravariance in Physics 1 of 1
Channel 9:
Set Your Data Free
Channel 9:
Implementing a Silverlight SharePoint WebPart with Visual Studio 2010
WindowsClient:
New WPF Showcase Addition: Enterprise
Channel 9:
Reactive Extensions API in depth: Contract
WindowsClient:
Concluding "New WPF Features" Series
WindowsClient:
Introduction to TestApi – Part 5: Managed Code Fault Injection APIs
ASP.NET:
T4MVC now has a real home and a dedicated forum!
TechNet Edge:
Windows Server 2008 R2 : New Power Management Features
ASP.NET:
Web Deployment Painkillers: VS 2010 & MS Deploy
WindowsClient:
Application Accessibility Testing
WindowsClient:
Prism & WCF RIA Services
Channel 9:
Sharepoint 2010 and Claims-Based Identity
WindowsClient:
IRhetoric Ported To BlogEngine.NET
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online