473,405 Members | 2,262 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

how to pass javascript object through url parameter?

nirmalsingh
218 100+
hi all,
how to pass javascript object as url parameter and get that object by c#(request.querystring..)something like that?
thanx in advance
Jun 5 '07 #1
6 28539
dmjpro
2,476 2GB
hi all,
how to pass javascript object as url parameter and get that object by c#(request.querystring..)something like that?
thanx in advance

What do u mean by javascript object?

Kind regards,
Dmjpro.
Jun 5 '07 #2
nirmalsingh
218 100+
i feel sending raw strings through url parameter is not safe at all time. so i like to try some object for that string through url parameter. if it is not correct way, plz suggest me any other way to send url parameter hidden or encrypted something like that..
thanx in advance.
Jun 5 '07 #3
dmjpro
2,476 2GB
i feel sending raw strings through url parameter is not safe at all time. so i like to try some object for that string through url parameter. if it is not correct way, plz suggest me any other way to send url parameter hidden or encrypted something like that..
thanx in advance.
Try to submit the form using POST method instead of GET method.
Right?
Have a good day.

Kind regards,
Dmjpro.
Jun 5 '07 #4
Hi,
You can do this using Ajax.

Check this:
http://ajaxme.blogspot.com/2007/09/p...to-server.html

Eran Hefer.
Aug 13 '08 #5
vikas251074
198 100+
Yes you can do this using AJAX technique where parameter is passed as a querystring

Regards,
Vikas
Aug 13 '08 #6
rnd me
427 Expert 256MB
i prefer passing JSON on the queryString. i can easily pass data to other pages and instantly parse it. i dont have to worry about url encding issues when, for example, passing a full url with queryString as a querystring parameter on an even longer url.

get params are all strings, json can be any datatype and shape.

goto json.org and get the json library json2, or .toJSONString, and encodeURIComponent the result to pass on the queryString . you can eval the decodeURIComponent version of window.location.search on another page to get your object back, or use a server json parser to grab the data.
Aug 13 '08 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Nath | last post by:
Please help!? I am new to writing html, javascript, pretty new to MySQL but quite proficient at writing Perl and i'm a quick learner. I am building a database driven website and i am a little...
11
by: Vanessa | last post by:
Hi, I would like to know whether there's any way for me to pass an object by reference to another form? Regards Vanessa
1
by: mtz | last post by:
On IE there is a way to open a window from one page and pass an object to it, when you use showModalDialog. Is there a way to do the same on NS/Mozilla/FireFox? On IE:...
0
by: Bala | last post by:
I have an ActiveX EXE. One of the methods in this component has "Recordset Object" as input parameter which has to be passed by reference. I have to call this method from C# code. From C#,...
2
by: MrDotNet | last post by:
Hi I want pass NameValueCollection as parameter in webmethod. I try it but that give me error. Here is Error. You must implement the Add(System.String) method on...
8
by: =?Utf-8?B?UmF2aQ==?= | last post by:
Hi, I'm trying to pass values of different data-types to a web-service. I thought it would be easier to box these values and pass them as a System.object parameter, like public void...
6
by: =?Utf-8?B?emlubw==?= | last post by:
I'm trying to pass a delegate as parameter but the code below does not compile. It display an error: 'AddressOf operand must the name of a method(without parantheses)' How can I make it work. ...
7
by: PhilTheGap | last post by:
Hi, I've tried this: <asp:Button ID="Save" runat="server" Text="OK" OnClick="ServerSave" OnClientClick="SaveParam (<% Util.MaxTags %>)" /> but if fails... Util is a C# class, MaxTags a...
3
Frinavale
by: Frinavale | last post by:
I've created a few ASP.NET Ajax Enable Server controls. There are 2 components to these controls: a server side Object that deals with the server side stuffs, and a client side Object that deals...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.