Click here to Skip to main content
12,250,546 members (49,075 online)

JavaScript

 
AnswerRe: css Pin
Sandeep Mewara4-Jan-13 3:14
mvpSandeep Mewara4-Jan-13 3:14 
AnswerFB Connect Javascript Pin
sasikumar.prs26-Dec-12 23:29
membersasikumar.prs26-Dec-12 23:29 
GeneralRe: FB Connect Javascript Pin
khiladi78631-Dec-12 5:40
memberkhiladi78631-Dec-12 5:40 
GeneralRe: FB Connect Javascript Pin
jkirkerx31-Dec-12 10:36
memberjkirkerx31-Dec-12 10:36 
AnswerRe: FB Connect Javascript Pin
Sandeep Mewara4-Jan-13 3:17
mvpSandeep Mewara4-Jan-13 3:17 
QuestionGridview Problem Pin
jojoba201122-Dec-12 5:05
memberjojoba201122-Dec-12 5:05 
AnswerRe: Gridview Problem Pin
Sandeep Mewara4-Jan-13 3:25
mvpSandeep Mewara4-Jan-13 3:25 
Questionxna4life Member 13 Points 71 Posts hard code drop down instead of using toolbar and r/s Pin
xnaLearner21-Dec-12 3:34
memberxnaLearner21-Dec-12 3: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 4920-Dec-12 23:52
memberkapil sharma 4920-Dec-12 23:52 
AnswerRe: i m using google map its giving little bit problem. Pin
Sandeep Mewara4-Jan-13 3:31
mvpSandeep Mewara4-Jan-13 3:31 
Question"&nbsp" problem in Javascript Pin
BrianCampbellMCAD20-Dec-12 12:08
memberBrianCampbellMCAD20-Dec-12 12:08 
QuestionRe: "&nbsp" problem in Javascript Pin
Richard MacCutchan20-Dec-12 23:00
mvpRichard MacCutchan20-Dec-12 23:00 
AnswerRe: "&nbsp" problem in Javascript Pin
BrianCampbellMCAD21-Dec-12 1:42
memberBrianCampbellMCAD21-Dec-12 1:42 
GeneralRe: "&nbsp" problem in Javascript Pin
Richard MacCutchan21-Dec-12 2:06
mvpRichard MacCutchan21-Dec-12 2:06 
AnswerRe: "&nbsp" problem in Javascript Pin
jkirkerx31-Dec-12 10:39
memberjkirkerx31-Dec-12 10:39 
Questionjquery tabslideout plugin and want to detect when div slide in and out Pin
Tridip Bhattacharjee20-Dec-12 3:54
memberTridip Bhattacharjee20-Dec-12 3:54 
AnswerRe: jquery tabslideout plugin and want to detect when div slide in and out Pin
vbmike21-Dec-12 6:25
membervbmike21-Dec-12 6:25 
GeneralRe: jquery tabslideout plugin and want to detect when div slide in and out Pin
Tridip Bhattacharjee23-Dec-12 6:35
memberTridip Bhattacharjee23-Dec-12 6:35 
GeneralRe: jquery tabslideout plugin and want to detect when div slide in and out Pin
vbmike23-Dec-12 11:31
membervbmike23-Dec-12 11:31 
QuestionConvert HTML to PDF (Client Side) Pin
Phanindra26116-Dec-12 20:07
memberPhanindra26116-Dec-12 20:07 
QuestionRe: Convert HTML to PDF (Client Side) Pin
ryanb3118-Dec-12 5:05
memberryanb3118-Dec-12 5:05 
AnswerRe: Convert HTML to PDF (Client Side) Pin
Phanindra26118-Dec-12 17:50
memberPhanindra26118-Dec-12 17:50 
GeneralRe: Convert HTML to PDF (Client Side) Pin
J4amieC18-Dec-12 21:29
memberJ4amieC18-Dec-12 21:29 
QuestionCan't figure out why the currentSlide goes 0-3-2 Pin
jkirkerx16-Dec-12 12:08
memberjkirkerx16-Dec-12 12:08 
AnswerRe: Can't figure out why the currentSlide goes 0-3-2 Pin
jkirkerx17-Dec-12 8:40
memberjkirkerx17-Dec-12 8: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.160426.1 | Last Updated 27 Apr 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid