Click here to Skip to main content
15,909,466 members
Home / Discussions / C#
   

C#

 
GeneralRe: please help me in OleDbPermission Pin
tifa10-Oct-04 12:37
tifa10-Oct-04 12:37 
QuestionHow to register? Pin
momer9-Oct-04 23:04
momer9-Oct-04 23:04 
AnswerRe: How to register? Pin
Colin Angus Mackay10-Oct-04 4:01
Colin Angus Mackay10-Oct-04 4:01 
GeneralRe: How to register? Pin
momer10-Oct-04 15:17
momer10-Oct-04 15:17 
AnswerRe: How to register? Pin
Christian Graus10-Oct-04 11:49
protectorChristian Graus10-Oct-04 11:49 
GeneralRe: How to register? Pin
momer10-Oct-04 15:25
momer10-Oct-04 15:25 
AnswerRe: How to register? Pin
Dave Kreskowiak11-Oct-04 6:14
mveDave Kreskowiak11-Oct-04 6:14 
GeneralHelp in editmode on Datalist. Pin
macsgirl9-Oct-04 11:07
macsgirl9-Oct-04 11:07 
How do I setup a dropdownlist for (***Type***) in editmode. Any starters. Any sites.
I would appreciate any help.


<itemtemplate>

This dropdownlist works in browse
***Type:****<asp:dropdownlist autopostback="True" id="ddlCOMMANDTYPE" datasource="<%# BindTBCOMMANDTYPE() %>"
mode.="" selectedindex="<%# GetSelectedIndexCOMMANDTYPE(DataBinder.Eval(Container.DataItem, "CT_REF").ToString())%>" runat="server"
="" datatextfield="CT_DESCRIPTION" datavaluefield="CT_REF">
Content: <%# Convert.ToString(DataBinder.Eval(Container.DataItem, "CM_CONTENT"))%>

<asp:linkbutton id="EditButton" text="Edit" commandname="Edit" runat="server">

<edititemtemplate>

***Type:****
Content: <asp:textbox id="CM_CONTENTTextBox" text="<%# DataBinder.Eval(Container.DataItem, "CM_CONTENT") %>" runat="server">

<asp:linkbutton id="UpdateButton" text="Update" commandname="Update" runat="server">
<asp:linkbutton id="DeleteButton" text="Delete" commandname="Delete" runat="server">
<asp:linkbutton id="CancelButton" text="Cancel" commandname="Cancel" runat="server">




<asp:linkbutton id="Prev" text="<< Previous" onclick="Page_DataList" runat="server">
 
<asp:linkbutton id="Next" text="Next >>" onclick="Page_DataList" runat="server">

////////////////////////////////////////////////////////////////
public int GetSelectedIndexCOMMANDTYPE (string CT_REF)
{
int iLoop;
DataTable dt = ddlDataSet1.Tables["ddlCOMMANDTYPE"];
for (iLoop=0; iLoop < dt.Rows.Count; iLoop++)
{
string srow = dt.Rows[iLoop]["CT_REF"].ToString();

if(srow == CT_REF)
{
return iLoop;
}
};
return 0;

}
//////////////////////////////////////////////////////////////////
public DataSet BindTBCOMMANDTYPE()
{
OdbcConnection myConnection = new OdbcConnection("DSN=POS;UID=system;PWD=system");

// Populate the ddlDataSet1
myConnection.Open();
const string strSQLDDL = @"SELECT CT_REF, CT_DESCRIPTION FROM TBCOMMANDTYPE ORDER BY CT_REF";
OdbcDataAdapter myDataAdapter = new OdbcDataAdapter(strSQLDDL, myConnection);
ddlDataSet1.Clear();
myDataAdapter.Fill(ddlDataSet1, "ddlCOMMANDTYPE");
myDataAdapter.Dispose();
myDataAdapter = null;
myConnection.Close();
return ddlDataSet1;
}
//***********************************************************************
GeneralRe: Help in editmode on Datalist. Pin
Heath Stewart10-Oct-04 11:07
protectorHeath Stewart10-Oct-04 11:07 
GeneralWindow Position Pin
dbetting9-Oct-04 10:59
dbetting9-Oct-04 10:59 
GeneralRe: Window Position Pin
Stefan Troschuetz9-Oct-04 22:50
Stefan Troschuetz9-Oct-04 22:50 
GeneralRe: Window Position Pin
dbetting10-Oct-04 3:11
dbetting10-Oct-04 3:11 
GeneralRe: Window Position Pin
Stefan Troschuetz10-Oct-04 7:07
Stefan Troschuetz10-Oct-04 7:07 
GeneralWriting hex values to a file Pin
cgcrute9-Oct-04 6:50
cgcrute9-Oct-04 6:50 
GeneralRe: Writing hex values to a file Pin
Heath Stewart9-Oct-04 8:01
protectorHeath Stewart9-Oct-04 8:01 
GeneralRe: Writing hex values to a file Pin
cgcrute10-Oct-04 7:46
cgcrute10-Oct-04 7:46 
GeneralRe: Writing hex values to a file Pin
Heath Stewart10-Oct-04 11:05
protectorHeath Stewart10-Oct-04 11:05 
GeneralAdd dropdownlist to datalist Pin
macsgirl9-Oct-04 6:14
macsgirl9-Oct-04 6:14 
GeneralRe: Add dropdownlist to datalist Pin
Heath Stewart9-Oct-04 7:50
protectorHeath Stewart9-Oct-04 7:50 
GeneralRe: Add dropdownlist to datalist Pin
macsgirl9-Oct-04 8:04
macsgirl9-Oct-04 8:04 
GeneralRe: Add dropdownlist to datalist Pin
Heath Stewart9-Oct-04 11:43
protectorHeath Stewart9-Oct-04 11:43 
GeneralNDoc 1.2 Problems Pin
Kevin McFarlane9-Oct-04 5:12
Kevin McFarlane9-Oct-04 5:12 
GeneralRe: NDoc 1.2 Problems Pin
Colin Angus Mackay9-Oct-04 5:49
Colin Angus Mackay9-Oct-04 5:49 
GeneralRe: NDoc 1.2 Problems Pin
Kevin McFarlane9-Oct-04 6:43
Kevin McFarlane9-Oct-04 6:43 
GeneralRe: NDoc 1.2 Problems Pin
Heath Stewart9-Oct-04 7:41
protectorHeath Stewart9-Oct-04 7:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.