473,804 Members | 3,607 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Passing values from client 2 server

Hi,

Simple question:

Is there a way to a value from client-side to server-side upon a click?

function _getReport(Repo rtName) { alert(ReportNam e); }

<asp:datalist id="dlReports" runat="server">
<itemtemplate >
<img height="7" src="../ReportsImages/navlink.gif" width="5">
<a class="Normal" id="<%#
DataBinder.Eval (Container.Data Item,"Descripti on") %>"
href="ReportMai nPage.aspx" onclick="return _getReport('<%#
EncryptString(D ataBinder.Eval( Container.DataI tem,"Descriptio n"))%>');">
<%# DataBinder.Eval (Container.Data Item,"Descripti on") %></a>
</itemtemplate>
</asp:datalist>

What I would like to accomplish is to pass the report name to server-side
from client-side upon clicking on a link above.

Yama
Nov 18 '05 #1
2 1470
Something like, create a hyperlink column in a DataSet and capture the value
sent when the person clicks? There are a variety of other controls,
LinkButton, et al, you can use, as well. Repeater is often better, as you
have more flexibility, but it really depends on what you need.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*************** *************** *************** *************** **********
Think Outside the Box!
*************** *************** *************** *************** **********
"Yama" <yk*****@grandp acificresorts.c om> wrote in message
news:eP******** ********@TK2MSF TNGP12.phx.gbl. ..
Hi,

Simple question:

Is there a way to a value from client-side to server-side upon a click?

function _getReport(Repo rtName) { alert(ReportNam e); }

<asp:datalist id="dlReports" runat="server">
<itemtemplate >
<img height="7" src="../ReportsImages/navlink.gif" width="5">
<a class="Normal" id="<%#
DataBinder.Eval (Container.Data Item,"Descripti on") %>"
href="ReportMai nPage.aspx" onclick="return _getReport('<%#
EncryptString(D ataBinder.Eval( Container.DataI tem,"Descriptio n"))%>');">
<%# DataBinder.Eval (Container.Data Item,"Descripti on") %></a>
</itemtemplate>
</asp:datalist>

What I would like to accomplish is to pass the report name to server-side
from client-side upon clicking on a link above.

Yama

Nov 18 '05 #2
Hi Greg,

Thank you for your reponse. I would like, once the list is generated, to
capture the (<%# DataBinder.Eval (Container.Data Item,"Descripti on") %>)
report name every time the user clicks on a link.

How can I do that using LinkButton?

Yama

"Cowboy (Gregory A. Beamer)" <No************ @comcast.netNoS pamM> wrote in
message news:Ou******** *******@TK2MSFT NGP09.phx.gbl.. .
Something like, create a hyperlink column in a DataSet and capture the value sent when the person clicks? There are a variety of other controls,
LinkButton, et al, you can use, as well. Repeater is often better, as you
have more flexibility, but it really depends on what you need.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*************** *************** *************** *************** **********
Think Outside the Box!
*************** *************** *************** *************** **********
"Yama" <yk*****@grandp acificresorts.c om> wrote in message
news:eP******** ********@TK2MSF TNGP12.phx.gbl. ..
Hi,

Simple question:

Is there a way to a value from client-side to server-side upon a click?

function _getReport(Repo rtName) { alert(ReportNam e); }

<asp:datalist id="dlReports" runat="server">
<itemtemplate >
<img height="7" src="../ReportsImages/navlink.gif" width="5">
<a class="Normal" id="<%#
DataBinder.Eval (Container.Data Item,"Descripti on") %>"
href="ReportMai nPage.aspx" onclick="return _getReport('<%#
EncryptString(D ataBinder.Eval( Container.DataI tem,"Descriptio n"))%>');">
<%# DataBinder.Eval (Container.Data Item,"Descripti on") %></a>
</itemtemplate>
</asp:datalist>

What I would like to accomplish is to pass the report name to server-side from client-side upon clicking on a link above.

Yama


Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
3532
by: Xerxes | last post by:
Hi, how can I pass the returned value from Javascript to PHP? I have: ------------------------------------------------------------------------ ------ if ( x>y) {
10
2472
by: vbMark | last post by:
Hello, I am doing this: window.location="page2.php?subj="+subj+"&body="+body; to send information to another page. However, I don't want that second page to show up or display in any way. There is only behind-the-scenes work going on in that page.
1
4385
by: No Spam | last post by:
Dear Access 2003 Users, Is there any way to launch Terminal Server from Access and pass along the user name that is in a text box? I believe mstsc.exe can be passed an IP address (/v), but can you also pass along a username or password that sits on a form? Thank you. Kevin
6
2805
by: Catherine Jones | last post by:
Hi all, we need urgent help in a matter. We are trying to pass a COM object from the client to server and are facing some problems in the same. We've our client in C# as well as the Server in C# and we're using remoting for client to server communication.
7
4758
by: Ken Allen | last post by:
I have a .net client/server application using remoting, and I cannot get the custom exception class to pass from the server to the client. The custom exception is derived from ApplicationException and is defined in an assembly common to the client and server components. The custom class merely defines three (3) constructors -- the null constructor; one with a string parameter; and one with a string and innner exception parameter -- that...
5
10014
by: cgia | last post by:
I am porting an old client/server application to asp.net. I used to retrieve data into local tables (Paradox table-files on the client's disk) and work on them before saving them back to the server. What is the approach for this in asp.net? The comments in MSDN on using the session object are scary, imagining that several users at the same time will use plenty of space on the server's memory! Or is it realistic to memorize the data in a...
8
3687
by: Mike Fellows | last post by:
Ok, im not sure if this is at all possible and if it is how i go about it is beyond me i have a piece of client side code that requires a piece of data from the server side (an ID number in this case) how can i pass the data from one side to the other, or retrieve it from the webform on the client side? i hope ive explained this properly
6
1482
by: Jerry Camel | last post by:
Basic Web Form... A few text boxes and a checkbox - and a card reader... The effect I want to accomplish is this: The basic credit card fields are there and can be filled out. But if the user swipes the card, I want to fill out the fields automatically and make them read only. (So far I can do this.) But I also want a checkbox to appear that indicates the card was swiped. The user can clear the checkbox, re-enabling the fields so...
3
4070
by: Aaron | last post by:
I am having a little difficulty with a relatively simple task. I have a parent webform. I have a javascript attribute added to a button to open a new window when clicked. The user fills in a textbox then clicks the button and on page load the child window should grab that val run a query an present the results. Given that I am bouncing between server side controls and client script. I am just having a little trouble passing my textbox...
7
10149
by: =?iso-8859-1?Q?S=F8ren_M._Olesen?= | last post by:
Hi How do I pass a complex type to a webservice?? What I have is a Class 'MyComplexClass' which lives in it's own dll/namespace. I'd like to pass this class to my webmethod: <WebMethod()_ Public Sub MyMethod(ByVal arg As MyComplexClass) End Sub
0
9706
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10075
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9143
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7615
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6851
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5520
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5651
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4295
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2990
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.