The DataItem property for your controls are only available right after calling the Databind Method of the repeater, and only on the ItemCreated / ItemDataBound Event, but beware: ItemCreated is called after each postback, so try to use DataItem only in the ItemDataBound event. after that, it no longer exists.
So This event (ItemDataBound) is raised for each item being databound to the source you assigned. The item is found in the event's arguments. Just a plus in case you didn't know.
What makes an ASP.NET web service generates different wsdls when running on different servers?
Example, I have the same ASP.NET web service running on two machines. I get different wsdls when using "http://myserver1/myservice/myservice.asmx?wsdl" and "http://myserver2/myservice/myservice.asmx?wsdl". The two machines are both Windows 2000 servers and they have the same version of .NET Framework (1.1). Here are wsdl samples:
I have highlighted some differences in the above. The problem is, the second version cannot be used by MS SOAP Client 2.0. MS SOAP Client 3.0 can handle both versions but we cannot replace MS SOAP Toolkit on client machines at this moment.
Any guidance, ideas, links or suggestions will be greatly appreciated.
'In the subroutine that reads the database data Rider_Gender.Text = dataSet.Tables("Riders").Rows(0)("Gender").ToString() If Rider_Gender.Text = "Male" Then RiderTitle.Items(3).Selected = True Else RiderTitle.Items(4).Selected = True End If
And in the Form this <asp:DropDownList ID="RiderTitle" runat="server" BorderStyle="None" BorderWidth="0" BackColor="LightGreen" />
But runnin this i get the error: Cannot have multiple items selected in a DropDownList.
When you dynamically create the textbox control at runtime, there are two things you should remember:
+ You need to recreate the dynamic textbox on postback. + You need to readd it to the panel before the postback data is processed, otherwise the submitted data gets lost, and you cannot access the value.