Geeks Talk

Prepare for your Next Interview




GirdView in .ascx page(User Control)

This is a discussion on GirdView in .ascx page(User Control) within the ASP.NET forums, part of the Web Development category; I have the dropdown list in the web page.When a value is selected from the drop down ,that value shud be sent to .ascx page and it shud populate ...


Go Back   Geeks Talk > Web Development > ASP.NET

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 05-20-2008
Junior Member
 
Join Date: Apr 2007
Location: Hyderabad
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
Namedm is on a distinguished road
GirdView in .ascx page(User Control)

I have the dropdown list in the web page.When a value is selected from the drop down ,that value shud be sent to .ascx page and it shud populate the gridview and load that user control on web page.anybody plz help me.
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 05-21-2008
Contributing Member
 
Join Date: Jun 2007
Location: Delhi, India
Posts: 49
Thanks: 0
Thanked 20 Times in 17 Posts
vikasvaidya is on a distinguished road
Re: GirdView in .ascx page(User Control)

Hi,

You can do that following steps below:
  1. Create a method in .ascx.cs file with input param as string
  2. In this method populate grid by using input passed
  3. From the main file on SelectedIndexChange event of drop down call function created in .ascx.cs file as UserControlClassName.MethodNameand pass the selected item as input param

I assume u r using C#.

Try this if u still have some problem then post ur problems.

---V V---
Vikas Vaidya

Please mark this post as Thank if u found the answer useful
Reply With Quote
The Following User Says Thank You to vikasvaidya For This Useful Post:
  #3 (permalink)  
Old 05-21-2008
Junior Member
 
Join Date: Dec 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
mrk_achary is on a distinguished road
Re: GirdView in .ascx page(User Control)

The solution above sounds good... Can we implement it using Event handler?
Reply With Quote
  #4 (permalink)  
Old 05-22-2008
Junior Member
 
Join Date: Apr 2007
Location: Hyderabad
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
Namedm is on a distinguished road
Re: GirdView in .ascx page(User Control)

Quote:
Originally Posted by vikasvaidya View Post
Hi,

You can do that following steps below:
  1. Create a method in .ascx.cs file with input param as string
  2. In this method populate grid by using input passed
  3. From the main file on SelectedIndexChange event of drop down call function created in .ascx.cs file as UserControlClassName.MethodNameand pass the selected item as input param

I assume u r using C#.

Try this if u still have some problem then post ur problems.

---V V---
Vikas Vaidya

Please mark this post as Thank if u found the answer useful
Yes i'm using c#.
Thanks lot its working for me.
Reply With Quote
  #5 (permalink)  
Old 05-26-2008
Contributing Member
 
Join Date: Jun 2007
Location: Delhi, India
Posts: 49
Thanks: 0
Thanked 20 Times in 17 Posts
vikasvaidya is on a distinguished road
Re: GirdView in .ascx page(User Control)

Quote:
Originally Posted by mrk_achary View Post
The solution above sounds good... Can we implement it using Event handler?
Yes of course, whatever is acted in response to an event that is basically a subroutine if u check it sharply. Whatever is acted upon an event can be called explicitly.

So, u can do that definitely.

---V V---
Vikas Vaidya
Reply With Quote
Reply

  Geeks Talk > Web Development > ASP.NET


Thread Tools
Display Modes


Similar Threads

Thread Thread Starter Forum Replies Last Post
Display values from TextBoxes inside GirdView ushalakshmi ASP.NET 1 05-16-2008 12:49 AM
Active X control ramyamca1984 QTP 1 03-18-2008 08:49 AM
Treeview Control suji C# 1 01-29-2008 08:47 PM
Winrunner is taking the entire web page as a single page Sridevi.P WinRunner 0 06-05-2007 10:26 PM
what is the control engine. schittoor Test Cases 1 02-12-2007 02:15 PM


All times are GMT -4. The time now is 04:28 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Copyright © 2008 GeekInterview.com. All Rights Reserved