Hi,
Ive been looking for a way to capture an autopostback event of a
dropdownlist in a datagrid control. the scenario is that, ive a
datagrid, and there is a dropdownlist column in each of the row with
each record (note the drop down dont only show when u edit a row, but
it shows always for every row), when i change a value from the
dropdown for any row of the grid, i want to get the row id (or the
record id that i can by someway put in the row as hidden variable)
and the new value of the drop down combo....
For ease of understanding.. . suppose an example:
We have a database table :
ID -> Integer
Name -> String
Designation -> Enum('Employee' , 'Manager', 'Peon')
now the data grid shows the listing of this table... and with each
row, a combo/dropdown appears with its corresponding value selected,
for eg. if Clark is an employee, in his record in datagrid, Employee
will be selected in the dropdown, now when i change it to manager,
the form posts back because ive set the drop down to be
autopostback=tr ue, but how will i know on the server that:
1- it is a result of such autopostback.
2- if yes, then it was clarks record.
3- wat was clark set to : means Employee, Manager, etc....
Hope to get a sol for this #W%@#$%#....
TAke care 0 1438 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Miguel Dias Moura |
last post by:
Hello,
I have a Drop Down List with 3 options. I want to redirect to a new page
when an options is selected. I don't want to use a button. The redirection
should be fired when the option is selected.
I have an ASP.net / VB page with a Drop Down List named "my select" as
follows:
<asp:DropDownList AutoPostBack="true" ID="myselect" runat="server">
|
by: Benign Vanilla |
last post by:
I am a .NET newbie, and need some help.
I have a datagrid that is bound to a table. That works. I also have a
template column in the grid for updating a status value for each row. This
is defined as:
<asp:TemplateColumn HeaderText="New Order Status">
<ItemTemplate>
<asp:DropDownList Font-Names="Arial" Font-Size="XX-Small"
id="drpOrderStatus"
|
by: Ian Oldbury |
last post by:
Hi all,
i'm trying to define the number of items that are shown at a time on a
dropdownlist. Ideally i'd like to do this within the css class if possible.
How is this done??
This the control....
<asp:dropdownlist id="ddlRange"
runat="server"
autopostback="true"
|
by: Chris Kettenbach |
last post by:
Good Morning,
Quick question, I have an EditItemTemplate inside a datagrid. It should
contain a drop down list of possible choices. I have an EditCommandColumn.
The drop dow list column should initially contain the value of the field.
This works fine with
<ItemTemplate><%# Container.DataItem("NameType")%></ItemTemplate>
The desired effect is for the drop down list to databind to a query to show
possible choices when the user clicks...
|
by: pmelanso |
last post by:
Hello,
I have a drop down list which is dynatically loaded from a database and
I have a second drop down list that is also dynatically loaded
depending on what is selected in the first drop down box. This all
works fine ... what isn't working is when I selected a different item
in the first drop down list I want it to automatically reload the items
in the second drop down list.
I have a funcation called loadNames that laod the second...
| |
by: rodchar |
last post by:
Hey all,
I was wondering againg...on my ASP.NET app I have a drop down list. I've set
the control to AutoPostBack=True. When I run this app, I select something out
of the drop down list and the screen flickers I guess it indicates that the
PostBack has occurred. Is this the accepted behavior?
thanks,
rodchar
|
by: Dave A |
last post by:
I am stuggling with databinding a drop down list, hooking into the SelectedIndexChanged and attempting to avoid using the viewstate.
The drop down list is quite large so I would prefer to avoid using the view state so I set EnableViewState on the page to false. To enable the drop down list to bind to a datasource I bind it during the OnInit.
I do a response.Write during the SelectedIndexChanged event to verify that the event fires.
...
|
by: Mike Collins |
last post by:
I'm not feeling too smart right now, but I cannot get the correct drop down
list value from a drop down I have on my web form. I get the initial value
that was loaded in the list. Can someone show me what I am doing wrong and
tell me the correct way? Thank you.
In the page load event, I am doing the following:
//Code I use to populate the dropdown list.
ddAssignedTo.DataValueField = "PersonnelID";
ddAssignedTo.DataTextField =...
|
by: weiwei |
last post by:
Hi
here is my scenario, I create a drop down list in itemtemplate.(that
drop down is created from db), after user
click edit command, my ideal plan is have another drop down list in
edititemtemplate with preselected value from
the previous drop down list, so far I can only achieved with the
regular drop down list in edititemtemplate with no preselected value
from previous one. anyone can help me.
thanks in advance. below is my current...
|
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...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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...
|
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();...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |