Click here to Skip to main content
12,757,627 members (41,389 online)

JavaScript

 
AnswerRe: css Pin
Sandeep Mewara4-Jan-13 4:14
mvpSandeep Mewara4-Jan-13 4:14 
AnswerFB Connect Javascript Pin
sasikumar.prs27-Dec-12 0:29
membersasikumar.prs27-Dec-12 0:29 
GeneralRe: FB Connect Javascript Pin
khiladi78631-Dec-12 6:40
memberkhiladi78631-Dec-12 6:40 
GeneralRe: FB Connect Javascript Pin
jkirkerx31-Dec-12 11:36
memberjkirkerx31-Dec-12 11:36 
AnswerRe: FB Connect Javascript Pin
Sandeep Mewara4-Jan-13 4:17
mvpSandeep Mewara4-Jan-13 4:17 
QuestionGridview Problem Pin
jojoba201122-Dec-12 6:05
memberjojoba201122-Dec-12 6:05 
AnswerRe: Gridview Problem Pin
Sandeep Mewara4-Jan-13 4:25
mvpSandeep Mewara4-Jan-13 4:25 
Questionxna4life Member 13 Points 71 Posts hard code drop down instead of using toolbar and r/s Pin
xnaLearner21-Dec-12 4:34
memberxnaLearner21-Dec-12 4:34 
So im trying to creae a dynamic data project using asp.net.

my project has 2 tables, FruitTable and SellerTable.

I had it set so the primary key in 'fruit table': name. was the foreign key in 'seller table'

I added a new class which contains the code to link to the new fieldTemplate I added(DropDown)

 <pre lang="c#">[MetadataType(typeof(UsingDropDownMetadata))]
    public partial class UsingDropDown
    {
    }

    public class UsingDropDownMetadata
    {
        //DropDown is name of field templates
        [UIHint("DropDown")]
        //use in field date in tracing table
        public object DropDownFromTextBox { get; set; }
    }

then in the dropDown_Edit.ascx I used the toolbox to get a drop down list and link it to the fruit table.

Now when a user creates a new item, they can select the names of fruit to add.

However I would like to hard code this so I have removed the r/s btn fruit and seller table

In dropdownEdit.ascx iv added it manuall

<asp:DropDownList id="DropDownList1" runat="server"
DataSource="<% databindingexpression %>"
DataTextField="DataSourceField"
DataValueField="DataSourceField"
AutoPostBack="True|False"
OnSelectedIndexChanged="OnSelectedIndexChangedMethod">

<asp:ListItem value="value" selected="True|False">
Text
</asp:ListItem>

</asp:DropDownList>
then in the dropdownedit.ascx.cs

I want to hard code to pull across the values but am not sure if I am doing this right. please advise

protected void OnSelectedIndexChangedMethod(object sender, EventArgs e)
{

//text here

}


Questioni m using google map its giving little bit problem. Pin
kapil sharma 4921-Dec-12 0:52
memberkapil sharma 4921-Dec-12 0:52 
AnswerRe: i m using google map its giving little bit problem. Pin
Sandeep Mewara4-Jan-13 4:31
mvpSandeep Mewara4-Jan-13 4:31 
Question"&nbsp" problem in Javascript Pin
BrianCampbellMCAD20-Dec-12 13:08
memberBrianCampbellMCAD20-Dec-12 13:08 
QuestionRe: "&nbsp" problem in Javascript Pin
Richard MacCutchan21-Dec-12 0:00
mvpRichard MacCutchan21-Dec-12 0:00 
AnswerRe: "&nbsp" problem in Javascript Pin
BrianCampbellMCAD21-Dec-12 2:42
memberBrianCampbellMCAD21-Dec-12 2:42 
GeneralRe: "&nbsp" problem in Javascript Pin
Richard MacCutchan21-Dec-12 3:06
mvpRichard MacCutchan21-Dec-12 3:06 
AnswerRe: "&nbsp" problem in Javascript Pin
jkirkerx31-Dec-12 11:39
memberjkirkerx31-Dec-12 11:39 
Questionjquery tabslideout plugin and want to detect when div slide in and out Pin
Tridip Bhattacharjee20-Dec-12 4:54
memberTridip Bhattacharjee20-Dec-12 4:54 
AnswerRe: jquery tabslideout plugin and want to detect when div slide in and out Pin
vbmike21-Dec-12 7:25
membervbmike21-Dec-12 7:25 
GeneralRe: jquery tabslideout plugin and want to detect when div slide in and out Pin
Tridip Bhattacharjee23-Dec-12 7:35
memberTridip Bhattacharjee23-Dec-12 7:35 
GeneralRe: jquery tabslideout plugin and want to detect when div slide in and out Pin
vbmike23-Dec-12 12:31
membervbmike23-Dec-12 12:31 
QuestionConvert HTML to PDF (Client Side) Pin
Phanindra26116-Dec-12 21:07
memberPhanindra26116-Dec-12 21:07 
QuestionRe: Convert HTML to PDF (Client Side) Pin
ryanb3118-Dec-12 6:05
memberryanb3118-Dec-12 6:05 
AnswerRe: Convert HTML to PDF (Client Side) Pin
Phanindra26118-Dec-12 18:50
memberPhanindra26118-Dec-12 18:50 
GeneralRe: Convert HTML to PDF (Client Side) Pin
J4amieC18-Dec-12 22:29
memberJ4amieC18-Dec-12 22:29 
QuestionCan't figure out why the currentSlide goes 0-3-2 Pin
jkirkerx16-Dec-12 13:08
memberjkirkerx16-Dec-12 13:08 
AnswerRe: Can't figure out why the currentSlide goes 0-3-2 Pin
jkirkerx17-Dec-12 9:40
memberjkirkerx17-Dec-12 9:40 

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.


Advertise | Privacy | Mobile
Web02 | 2.8.170217.1 | Last Updated 23 Feb 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid