473,513 Members | 2,270 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

acess a control which was outside the datalist in itemcommand asp.net2.0,c#

26 New Member
hi to all


I am sridhar

My doubt is


I got a panel and a datalist and a button inside the datalist in my webform


panel placed out side the datalist and default VISIBLE FALSE
when i click the button which was inside the datalist, i want to make panel VISIBLE TRUE in item command


i.e

I want to access the outside control in itemcommand

thanks in advance
Aug 4 '07 #1
4 2168
kenobewan
4,871 Recognized Expert Specialist
You want to click a button inside panel that is not visible?
Aug 5 '07 #2
sridhar21
26 New Member
You want to click a button inside panel that is not visible?
Thanks for reply

I think that u can't understand my question

i have a panel set default visible false and a iframe is inside that panel.

inside the iframe i am calling another page contains the details of the users

My datalist displays the list of users in linkbutton

when i click the linkbutton
panel should be visible and the detail should be display in the panel which was out side the Datalist
Aug 6 '07 #3
abhi kapoor
1 New Member
i m too faacing the same problem if u have got the answer plzz tell me.
thnx
Aug 5 '12 #4
Mudassir
85 New Member
well in the OnClick event of the LinkButton, set the panels visibility to true like
Expand|Select|Wrap|Line Numbers
  1. myPanel.Visible=True;
and if you want to show some specific data like data against some specific user the bind the linkbutton with the user id and on click event initialize the session and show the data against that session like
Expand|Select|Wrap|Line Numbers
  1. LinkButton myLinkButton=(LinkButton)sender;
  2. Session["uID"]=myLinkButton.CommandArgument.ToString();
  3.  
now you have the specific User ID in session
...
Addan
Aug 8 '12 #5

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

Similar topics

1
1514
by: Phil Lamey | last post by:
Hi All, I am trying to build a user control that is used on each page of my site. The user control contains a datalist of links. The list of links (and associated information) is grabbed from...
0
1040
by: Phil Lamey | last post by:
Please take a look at this code. I am creating a list of button/links that are part of a user control added to an aspx file: ASCX code <asp:datalist id="LinksList"...
2
11989
by: Stan | last post by:
I cannot make the link buttons fire ItemCommand from repeater control. Here is the code: <asp:repeater id=rptLetters runat="server"> <itemtemplate> <asp:linkbutton id="lnkLetter"...
1
4690
by: wsyeager36 | last post by:
I have a datagrid inside a datalist. The datalist shows parent info and the datagrid shows the child info for that parent. There is a checkbox on each row of the child datagrid. Also inside the...
1
1553
by: Etienne Tremblay | last post by:
Hi, I'm currently trying to implement editing in a simple Datalist displaying news on my site. I did everything the walkthrought of microsoft said to do, but it doesn't seem to work. Just for...
3
1722
by: Chris | last post by:
Hi Folks, well I have this "small" problem with the footertemplate in a datalist. I added a button and a textbox to update the db with the given String of the Textbox. I already searched for...
3
1975
by: Derek | last post by:
I have a nested datalist with a dropdownlist. I need to capture the selectedvalue of the dropdownlist so I can update a database table. My question then is...how do I get the value from the...
1
3952
by: shantanu_kush | last post by:
Hi there, I am using a DataList in a composite control. The DataList has an Custom ItemTemplate(ITemplate) which adds a Button to the DataList Item as shown in the code below : public class...
1
3568
by: rajkumarbathula | last post by:
Hi I am struckup with a big issue. ie., On my Page i am rendering 2 dynamic datalists each has dynamic link buttons. my problem is: i am not able to handle ItemCommandEvent of both the...
0
7171
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
7545
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...
1
7111
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...
1
5095
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...
0
3240
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...
0
3228
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1605
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 ...
1
807
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
461
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...

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.