473,395 Members | 1,696 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Assign SelectedValue to DropDownList from code-behind file using SqlDataSource

Hello

I have a DropDownList that I am populating using the following
SqlDataSource:

<asp:DropDownList ID="parentIDDropDownList" runat="server"
DataSourceID="SqlDataSource3" DataTextField="name"
DataValueField="ID"></asp:DropDownList><asp:SqlDataSource
ID="SqlDataSource3" runat="server" ConnectionString="<%$
ConnectionStrings:ConnectionString %>"
SelectCommand="SELECT [ID], [name] FROM [client]
ORDER BY [name]"></asp:SqlDataSource>

Before I assign SelectedValue for this DropDownList, I need to add
another Item to it. This I do in the FormView's DataBound EventHandler.

protected void FormView1_DataBound(object sender, EventArgs e)
{
if(FormView1.CurrentMode == FormViewMode.Edit)
{
DropDownList myDdl =
(DropDownList)(FormView1.FindControl("parentIDDrop DownList"));

if (myDdl != null)
{
myDdl.Items.Insert((myDdl.Items.Count), new
ListItem("Select a parent", "0"));
// Wish to assign myDdl.SelectedValue here
// myDdl.SelectedValue=SqlDataSource3.????
}
}
}

After inserting the "Select a Parent" Item, I wish to assign the
SelectedValue of the DropDownList to the corresponding value returned
by SqlDataSource3. How can I do this?

Thanks!

Nov 19 '05 #1
15 26881
Swetha,

Just convert the value returned by the datasource to a string and assign it.
SelectedValue gets or sets the selected value as a string.

myDdl.SelectedValue=dataSourceValue;

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"Swetha" <sw***********@gmail.com> wrote in message
news:11**********************@g43g2000cwa.googlegr oups.com...
Hello

I have a DropDownList that I am populating using the following
SqlDataSource:

<asp:DropDownList ID="parentIDDropDownList" runat="server"
DataSourceID="SqlDataSource3" DataTextField="name"
DataValueField="ID"></asp:DropDownList><asp:SqlDataSource
ID="SqlDataSource3" runat="server" ConnectionString="<%$
ConnectionStrings:ConnectionString %>"
SelectCommand="SELECT [ID], [name] FROM [client]
ORDER BY [name]"></asp:SqlDataSource>

Before I assign SelectedValue for this DropDownList, I need to add
another Item to it. This I do in the FormView's DataBound EventHandler.

protected void FormView1_DataBound(object sender, EventArgs e)
{
if(FormView1.CurrentMode == FormViewMode.Edit)
{
DropDownList myDdl =
(DropDownList)(FormView1.FindControl("parentIDDrop DownList"));

if (myDdl != null)
{
myDdl.Items.Insert((myDdl.Items.Count), new
ListItem("Select a parent", "0"));
// Wish to assign myDdl.SelectedValue here
// myDdl.SelectedValue=SqlDataSource3.????
}
}
}

After inserting the "Select a Parent" Item, I wish to assign the
SelectedValue of the DropDownList to the corresponding value returned
by SqlDataSource3. How can I do this?

Thanks!

Nov 19 '05 #2
Hi Justin,

I think I wasnt clear enough in my previous mail:

The DropDownList gets populated with SqlDataSource3. But the
SelectedValue comes from another SqlDataSource - SqlDataSource1.

<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$ ConnectionStrings:Plus32ConnectionString %>"
SelectCommand="Client_getDetails"
SelectCommandType="StoredProcedure" >
<SelectParameters>
<asp:QueryStringParameter Name="ID"
QueryStringField="clientID" Type="Int32" />
</SelectParameters>
</asp:SqlDataSource>

This stored procedure returns a host of values of which I want one
particular int field "parentID"

Hence in my code behind file, how do I access the specific parameter
value for "parentID"?

myDdl.SelectedValue=SqlDataSource1.??

Thanks
Swetha

Nov 19 '05 #3
Swetha,

Ok, I understand now.

If there is only one row in the datasource (I'm assuming the datasource is a
dataset here.) then you'll need to specify which item in the populated
datasource to get: If you are retrieving the data from the datasource and it
only has one table and one row it would be retrieved like this:

SqlDatasource1.Tables(0).Rows(0).Item("parentId"). ToString

Tables, rows, and columns may be accessed by their zero based index or by a
string name. In the case above I'm accessing the first table - first row -
and parentId column by name.

Does your datasource have more than one table and/or more than one row? If
that's the case let me know a bit more about it's structure and I can give
you more detail on accessing the data you need if this wasn't enough
information.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"Swetha" <sw***********@gmail.com> wrote in message
news:11*********************@g49g2000cwa.googlegro ups.com...
Hi Justin,

I think I wasnt clear enough in my previous mail:

The DropDownList gets populated with SqlDataSource3. But the
SelectedValue comes from another SqlDataSource - SqlDataSource1.

<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$ ConnectionStrings:Plus32ConnectionString %>"
SelectCommand="Client_getDetails"
SelectCommandType="StoredProcedure" >
<SelectParameters>
<asp:QueryStringParameter Name="ID"
QueryStringField="clientID" Type="Int32" />
</SelectParameters>
</asp:SqlDataSource>

This stored procedure returns a host of values of which I want one
particular int field "parentID"

Hence in my code behind file, how do I access the specific parameter
value for "parentID"?

myDdl.SelectedValue=SqlDataSource1.??

Thanks
Swetha

Nov 19 '05 #4
The Stored Procedure is something like:

SELECT name contact, parentID FROM sometable WHERE value = @ID

and the datasource that uses this is:

<asp:SqlDataSource
ID="SqlDataSource1"
runat="server"
ConnectionString="<%$ ConnectionStrings:Plus32ConnectionString %>"
SelectCommand="Client_getDetails"
SelectCommandType="StoredProcedure" >
<SelectParameters>
<asp:QueryStringParameter Name="ID"
QueryStringField="clientID" Type="Int32" />
</SelectParameters>
</asp:SqlDataSource>

This is the DataSource that I am using to bind the SelectedValue of the
DropDownList mentioned earlier.

When I'm populating my FormView:

<asp:FormView ID="FormView1" runat="server"
DataSourceID="SqlDataSource1"
OnModeChanged="FormView1_ModeChanged" >
<EditItemTemplate>
Name:
<asp:TextBox ID="nameTextBox" runat="server" Text='<%#
Bind("name") %>'></asp:TextBox><br />
Contact Person:
<asp:TextBox ID="contactpersonTextBox" runat="server"
Text='<%# Bind("contactperson") %>'></asp:TextBox><br />

Parent:
<asp:DropDownList ID="parentIDDropDownList"
runat="server" DataSourceID="SqlDataSource3" DataTextField="name"
DataValueField="ID">
<asp:ListItem Text="Select a Parent" Value="0" />
</asp:DropDownList>

<asp:SqlDataSource ID="SqlDataSource3" runat="server"
ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
SelectCommand="SELECT [ID], [name] FROM [client]
ORDER BY [name]"></asp:SqlDataSource>
<br />
<asp:LinkButton ID="UpdateButton" runat="server"
CausesValidation="True" CommandName="Update"

Text="Update"></asp:LinkButton>&nbsp;<asp:LinkButton
ID="UpdateCancelButton" runat="server"
CausesValidation="False" CommandName="Cancel"
Text="Cancel"></asp:LinkButton>
</EditItemTemplate>
<ItemTemplate>
Name:
<asp:Label ID="nameLabel" runat="server" Text='<%#
Bind("clientname") %>'></asp:Label><br />
Contact Person:
<asp:Label ID="contactpersonLabel" runat="server"
Text='<%# Bind("contactperson") %>'></asp:Label><br />
Parent:
<asp:Label ID="parentIDLabel" runat="server"
</asp:Label><br />

<asp:LinkButton ID="EditButton" runat="server"
CausesValidation="False" CommandName="Edit" Visible="false"
Text="Edit"></asp:LinkButton>
</ItemTemplate>
</asp:FormView>

As you can see in the EditItemTemplate, for the parentIDDropDownList, I
need to add a new ListItem with value "0", before binding the
SelectedValue to the value returned from SqlDataSource3. But once I add
the ListItem "Select a Parent", there is no way I can assign the
SelectedValue other than in the FormView1_ModeChanged() EventHandler in
the code-behind file.(Or is there???)

protected void FormView1_ModeChanged(object sender, EventArgs e)
{
if (FormView1.CurrentMode == FormViewMode.Edit)
{
DropDownList myDdl =
(DropDownList)(FormView1.FindControl("parentIDDrop DownList"));

if (myDdl != null)
{
myDdl.Items.Insert((myDdl.Items.Count), new
ListItem("Select a parent", "0"));
// myDdl.SelectedValue=SqlDataSource1.????
}
}
}

Nov 19 '05 #5
Swetha,

I had misunderstood a little of exactly what you were trying to do. The
easiest way I can think of to do this would be to databind a hidden input
server control to the id you need to retrieve.

Then using the page's PreRender event which will fire after databinding has
occurred you could retrieve that value from the hidden input and use it to
set the selected value of your drop down.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"Swetha" <sw***********@gmail.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
The Stored Procedure is something like:

SELECT name contact, parentID FROM sometable WHERE value = @ID

and the datasource that uses this is:

<asp:SqlDataSource
ID="SqlDataSource1"
runat="server"
ConnectionString="<%$ ConnectionStrings:Plus32ConnectionString %>"
SelectCommand="Client_getDetails"
SelectCommandType="StoredProcedure" >
<SelectParameters>
<asp:QueryStringParameter Name="ID"
QueryStringField="clientID" Type="Int32" />
</SelectParameters>
</asp:SqlDataSource>

This is the DataSource that I am using to bind the SelectedValue of the
DropDownList mentioned earlier.

When I'm populating my FormView:

<asp:FormView ID="FormView1" runat="server"
DataSourceID="SqlDataSource1"
OnModeChanged="FormView1_ModeChanged" >
<EditItemTemplate>
Name:
<asp:TextBox ID="nameTextBox" runat="server" Text='<%#
Bind("name") %>'></asp:TextBox><br />
Contact Person:
<asp:TextBox ID="contactpersonTextBox" runat="server"
Text='<%# Bind("contactperson") %>'></asp:TextBox><br />

Parent:
<asp:DropDownList ID="parentIDDropDownList"
runat="server" DataSourceID="SqlDataSource3" DataTextField="name"
DataValueField="ID">
<asp:ListItem Text="Select a Parent" Value="0" />
</asp:DropDownList>

<asp:SqlDataSource ID="SqlDataSource3" runat="server"
ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
SelectCommand="SELECT [ID], [name] FROM [client]
ORDER BY [name]"></asp:SqlDataSource>
<br />
<asp:LinkButton ID="UpdateButton" runat="server"
CausesValidation="True" CommandName="Update"

Text="Update"></asp:LinkButton>&nbsp;<asp:LinkButton
ID="UpdateCancelButton" runat="server"
CausesValidation="False" CommandName="Cancel"
Text="Cancel"></asp:LinkButton>
</EditItemTemplate>
<ItemTemplate>
Name:
<asp:Label ID="nameLabel" runat="server" Text='<%#
Bind("clientname") %>'></asp:Label><br />
Contact Person:
<asp:Label ID="contactpersonLabel" runat="server"
Text='<%# Bind("contactperson") %>'></asp:Label><br />
Parent:
<asp:Label ID="parentIDLabel" runat="server"
</asp:Label><br />

<asp:LinkButton ID="EditButton" runat="server"
CausesValidation="False" CommandName="Edit" Visible="false"
Text="Edit"></asp:LinkButton>
</ItemTemplate>
</asp:FormView>

As you can see in the EditItemTemplate, for the parentIDDropDownList, I
need to add a new ListItem with value "0", before binding the
SelectedValue to the value returned from SqlDataSource3. But once I add
the ListItem "Select a Parent", there is no way I can assign the
SelectedValue other than in the FormView1_ModeChanged() EventHandler in
the code-behind file.(Or is there???)

protected void FormView1_ModeChanged(object sender, EventArgs e)
{
if (FormView1.CurrentMode == FormViewMode.Edit)
{
DropDownList myDdl =
(DropDownList)(FormView1.FindControl("parentIDDrop DownList"));

if (myDdl != null)
{
myDdl.Items.Insert((myDdl.Items.Count), new
ListItem("Select a parent", "0"));
// myDdl.SelectedValue=SqlDataSource1.????
}
}
}

Nov 19 '05 #6
Justin

I'm trying to do what you suggested above, but for some reason the
Hidden input control is not being assigned the databound value.

Outside the <asp:FormView>, I've added the following:
.....</asp:FormView>
<asp:HiddenField ID="HiddenParentID" value='<%# Bind("parentID") %>'
runat="server" />
<asp:SqlDataSource ID="ds1"....

But when I print the value of this hidden input in the PreRender, all I
get is a blank value.

protected void FormView1_PreRender(object sender, EventArgs e)
{
Debug.WriteLine("Hidden input value is " +
HiddenParentID.Value);
}

However, the same parameter when databound to a control within the
FormView shows up with the appropriate value:

<asp:FormView DataSourceID="ds1">
<ItemTemplate>
<asp:Label ID="parentLabel" runat="server" Text='<%#
Bind("parentID") %>'>' ></asp:Label><br />
</ItemTemplate>
</asp:FormView>
<asp:SqlDataSource ID="ds1" runat="server" ConnectionString="<%$
ConnectionStrings:Plus32ConnectionString %>"
SelectCommand="Plus32_client_getDetails"
SelectCommandType="StoredProcedure"
<SelectParameters>
<asp:QueryStringParameter Name="ID"
QueryStringField="clientID" Type="Int32" />
</SelectParameters>

I'm not able to figure out what I'm doing wrong here. I'm sure its
something silly. Could you help?

Swetha

Nov 19 '05 #7
Swetha,

I've only just begun exploring the depths of .NET 2.0 myself. I could
certainly be wrong about the data already being bound when the pre-render
fires...

You'll need to find an event that fires either at the time the data is being
bound or that fires after the data is bound to do this. I thought pre-render
would be it. But the architecture is the same. I'll take a look around and
see if I can find a mapping of the events in MSDN to find the correct one.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"Swetha" <sw***********@gmail.com> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
Justin

I'm trying to do what you suggested above, but for some reason the
Hidden input control is not being assigned the databound value.

Outside the <asp:FormView>, I've added the following:
....</asp:FormView>
<asp:HiddenField ID="HiddenParentID" value='<%# Bind("parentID") %>'
runat="server" />
<asp:SqlDataSource ID="ds1"....

But when I print the value of this hidden input in the PreRender, all I
get is a blank value.

protected void FormView1_PreRender(object sender, EventArgs e)
{
Debug.WriteLine("Hidden input value is " +
HiddenParentID.Value);
}

However, the same parameter when databound to a control within the
FormView shows up with the appropriate value:

<asp:FormView DataSourceID="ds1">
<ItemTemplate>
<asp:Label ID="parentLabel" runat="server" Text='<%#
Bind("parentID") %>'>' ></asp:Label><br />
</ItemTemplate>
</asp:FormView>
<asp:SqlDataSource ID="ds1" runat="server" ConnectionString="<%$
ConnectionStrings:Plus32ConnectionString %>"
SelectCommand="Plus32_client_getDetails"
SelectCommandType="StoredProcedure"
<SelectParameters>
<asp:QueryStringParameter Name="ID"
QueryStringField="clientID" Type="Int32" />
</SelectParameters>

I'm not able to figure out what I'm doing wrong here. I'm sure its
something silly. Could you help?

Swetha

Nov 19 '05 #8
The data is bound when the pre-render event is fired. I'm able to print
out the databound values of other controls in my FormView in
pre-render. But like I said for some reason, the Hidden Input Control
does not get assigned the value that it is bound to. I think there's
something wrong with the way I'm binding the value, though I dunno
what!!

Nov 19 '05 #9
Ok,

May I see how you're binding that data? Maybe I'll spot the problem...

This is getting interesting! : )

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"Swetha" <sw***********@gmail.com> wrote in message
news:11*********************@g43g2000cwa.googlegro ups.com...
The data is bound when the pre-render event is fired. I'm able to print
out the databound values of other controls in my FormView in
pre-render. But like I said for some reason, the Hidden Input Control
does not get assigned the value that it is bound to. I think there's
something wrong with the way I'm binding the value, though I dunno
what!!

Nov 19 '05 #10
Following is my .aspx file:

<%@ Page Language="C#" AutoEventWireup="true"
CodeFile="ClientDetails.aspx.cs" Inherits="ClientDetails" %>

<html >
<head runat="server">
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:FormView ID="FormView1" runat="server"
DataSourceID="SqlDataSource1" OnPreRender="FormView1_PreRender"
OnDataBound="FormView1_DataBound" >
<ItemTemplate>
Name:
<asp:Label ID="nameLabel" runat="server" Text='<%#
Bind("clientname") %>'></asp:Label><br />
Parent:
<asp:Label ID="parentLabel" runat="server" Text='<%#
Bind("parentID") %>'>' ></asp:Label><br />
<asp:LinkButton ID="EditButton" runat="server"
CausesValidation="False" CommandName="Edit" Visible="false"
Text="Edit"></asp:LinkButton>
</ItemTemplate>
</asp:FormView>
<asp:HiddenField ID="HiddenParentID" value='<%#
Bind("parentID") %>' runat="server" />
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$ ConnectionStrings:Plus32ConnectionString %>"
SelectCommand="client_getDetails"
SelectCommandType="StoredProcedure" >
<SelectParameters>
<asp:QueryStringParameter Name="ID"
QueryStringField="clientID" Type="Int32" />
</SelectParameters>
</asp:SqlDataSource>
<br />
</form>
</body>
</html>
The stored procedure client_getDetails is as follows:

Select name, parentID from sometable where ID=@somevalue
And here's the code-behind file:

public partial class ClientDetails : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
// some stuff on initialization
}
}

protected void FormView1_PreRender(object sender, EventArgs e)
{
if(FormView1.CurrentMode == FormViewMode.ReadOnly)
{
//The following line shows that the hidden field has no
value
Debug.WriteLine("Hidden field value is " +
HiddenParentID.Value);

Label myLbl =
(Label)(FormView1.FindControl("parentLabel"));

//This label however which is bound to the same parameter
contains the value
Debug.WriteLine("Label text " + myLbl.Text);
}
}

protected void FormView1_DataBound(object sender, EventArgs e)
{
// This also prints no value for HiddenParentID.Value
Debug.WriteLine("FormView1_DataBound - Hidden field is " +
HiddenParentID.Value);
}
}

The databinding not happening for the hidden field is understandable,
as it is not part of the FormView. And hence, it shows up with no value
in the FormView's DataBound and PreRender events. But how else can I
force the hidden field to databind?

Thanks
Swetha

S. Justin Gengo wrote:
Ok,

May I see how you're binding that data? Maybe I'll spot the problem...

This is getting interesting! : )

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"Swetha" <sw***********@gmail.com> wrote in message
news:11*********************@g43g2000cwa.googlegro ups.com...
The data is bound when the pre-render event is fired. I'm able to print
out the databound values of other controls in my FormView in
pre-render. But like I said for some reason, the Hidden Input Control
does not get assigned the value that it is bound to. I think there's
something wrong with the way I'm binding the value, though I dunno
what!!


Nov 19 '05 #11
I just tried something more...

I added the following to the HiddenField:

<asp:HiddenField ID="HiddenParentID"
OnDataBinding="HiddenField_DataBinding"
OnPreRender="HiddenField_PreRender" value='<%# Bind("parentID") %>'
runat="server" />

protected void HiddenField_PreRender(object sender, EventArgs e)
{
Debug.WriteLine("My value is " + HiddenParentID.Value);
}

protected void HiddenField_DataBinding(object sender, EventArgs e)
{
Debug.WriteLine("I am databinding.....");
}

AND.... The HiddenField_DataBinding is never fired!!

Nov 19 '05 #12
Swetha,

Try putting the hidden field inside the form view.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"Swetha" <sw***********@gmail.com> wrote in message
news:11*********************@g44g2000cwa.googlegro ups.com...
I just tried something more...

I added the following to the HiddenField:

<asp:HiddenField ID="HiddenParentID"
OnDataBinding="HiddenField_DataBinding"
OnPreRender="HiddenField_PreRender" value='<%# Bind("parentID") %>'
runat="server" />

protected void HiddenField_PreRender(object sender, EventArgs e)
{
Debug.WriteLine("My value is " + HiddenParentID.Value);
}

protected void HiddenField_DataBinding(object sender, EventArgs e)
{
Debug.WriteLine("I am databinding.....");
}

AND.... The HiddenField_DataBinding is never fired!!

Nov 19 '05 #13
Putting it inside the FormView works!! Thanks. But why doesnt it
databind when outside the FormView?

Nov 19 '05 #14
Swetha,

It's because the form view itself is what contains the data. Note your
parameters: <asp:FormView ID="FormView1" runat="server"
DataSourceID="SqlDataSource1" - the datasource is part of the form view and
the form view object iterates through the controls contained within itself
hooking them up to the datasource. If a control is outside the form view it
would get hooked up to the page's datasource (if there was one).

Is that clear? If not please let me know.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"Swetha" <sw***********@gmail.com> wrote in message
news:11**********************@g44g2000cwa.googlegr oups.com...
Putting it inside the FormView works!! Thanks. But why doesnt it
databind when outside the FormView?

Nov 19 '05 #15
Got that!! Thanks for the help and the detailed explanation.

Swetha

Nov 19 '05 #16

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

Similar topics

1
by: Keith R | last post by:
I have VB6, and eventually plan to upgrade to dotnet. I will soon start writing an application that will be mostly local (client?) but will interface with a server a few times, to authenticate...
2
by: bill yeager | last post by:
I need to get the SelectedValue of each item selected in a multi-selection listbox. I have the following code, but it just returns me the SelectedValue of ONLY the first item selected in the list:...
3
by: mg | last post by:
I have a DataGrid (WebForm - C#) that has a template column that contains a dropdownlist named "DdlTest" In DataGrid1_UpdateCommand, the lin DropDownList ddlTest = (DropDownList)...
1
by: Urmal Patel via .NET 247 | last post by:
I have problem with asp:Dropdownlist. I have a dropdownlist control in Page1.aspx and I want to assign value and Text to dropdown list form Page2.aspx from java script function. I am able to assign...
2
by: jason | last post by:
Pardon my ignorance on this. The below code works, except, when I edit a record and update the two drop downs take the first entry in the dropdownlist if not selected. I'd also like the dropdown to...
1
by: Patrik Zdarsa | last post by:
Hi, I'm try VS 2005 and need UPDATE database record in viewform, all working when every filed is type TextBox (html INPUT) but I need change one TextBox to Listbox or dropdownlist and read data...
18
by: __PPS__ | last post by:
Hello, I'm a university student and I'm preparing for my final today. I'm reading course notes, I found completely strange piece of code. It makes me laugh, I think the teacher needs to prepare...
2
by: munther | last post by:
hi there : i was created datagrid and it have three template colume, in the template colume dropdownlist the dropdownlist get data from data base . * the question i want return selected value...
6
by: Saul Fells | last post by:
I have a form with multiple dropdownlist and each list has onselectedindexchanged defined. <asp:DropDownList ID="SPR" runat="server" OnSelectedIndexChanged="Reload_OnSelectedIndexChanged"...
3
by: iamstuart | last post by:
I have a dropdownlist in a formview that looks like this: <asp:DropDownList ID="DropDownList5" runat="server" AppendDataBoundItems="True" DataSourceID="SqlDataSource6" DataTextField="StaffName" ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
Oralloy
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,...
0
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...
0
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...

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.