IT Community - Software Programming, Web Development and Technical Support

dropdownlist

This is a discussion on dropdownlist within the ASP and ASP.NET Programming forums, part of the Web Development category; how can i get the dropdown list value in gridview.. already i wrote the code is given below protected void ...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Web Development > ASP and ASP.NET Programming

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 07-16-2008, 10:04 PM
packirisamy packirisamy is offline
D-Web Trainee
 
Join Date: May 2008
Location: chennai
Posts: 15
packirisamy is on a distinguished road
Default dropdownlist

how can i get the dropdown list value in gridview..

already i wrote the code is given below

protected void DropDownList_SelectedIndexchanged(object sender, EventArgs e)
{
// if (!Page.IsPostBack)
{
Session["uPrice"] = ((DropDownList)sender).SelectedValue;
}
}

but i get the error is "object null reference" the session variable is empty..

how can i get the dropdownlist selected value...

anybody pls help me
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Create dropdownlist at runtime shaalini ASP and ASP.NET Programming 1 02-14-2008 07:16 PM
how to bind values of onedropdownlist to another dropdownlist in another page? poornima ASP and ASP.NET Programming 0 02-03-2008 08:07 PM
DropdownList in Editable Datagrid shaalini ASP and ASP.NET Programming 3 10-26-2007 05:07 AM
Problem in my DropDownList SelectedIndexChanged. S.Vinothkumar ASP and ASP.NET Programming 2 10-11-2007 10:47 PM
How to get the index value of the dropdown from the dropdownlist item Sathish Kumar C# Programming 0 03-12-2007 11:14 AM


All times are GMT -7. The time now is 02:23 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0