Click here to Skip to main content
15,887,485 members
Home / Discussions / JavaScript
   

JavaScript

 
AnswerRe: css Pin
Sandeep Mewara4-Jan-13 3:14
mveSandeep Mewara4-Jan-13 3:14 
AnswerFB Connect Javascript Pin
sasikumar.prs26-Dec-12 23:29
sasikumar.prs26-Dec-12 23:29 
GeneralRe: FB Connect Javascript Pin
GDdixit31-Dec-12 5:40
GDdixit31-Dec-12 5:40 
GeneralRe: FB Connect Javascript Pin
jkirkerx31-Dec-12 10:36
professionaljkirkerx31-Dec-12 10:36 
AnswerRe: FB Connect Javascript Pin
Sandeep Mewara4-Jan-13 3:17
mveSandeep Mewara4-Jan-13 3:17 
QuestionGridview Problem Pin
jojoba201122-Dec-12 5:05
jojoba201122-Dec-12 5:05 
AnswerRe: Gridview Problem Pin
Sandeep Mewara4-Jan-13 3:25
mveSandeep 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
xnaLearner21-Dec-12 3:34 
XML
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

C#
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
kapil sharma 4920-Dec-12 23:52 
AnswerRe: i m using google map its giving little bit problem. Pin
Sandeep Mewara4-Jan-13 3:31
mveSandeep Mewara4-Jan-13 3:31 
Question"&nbsp" problem in Javascript Pin
BennyCriziko20-Dec-12 12:08
BennyCriziko20-Dec-12 12:08 
QuestionRe: "&nbsp" problem in Javascript Pin
Richard MacCutchan20-Dec-12 23:00
mveRichard MacCutchan20-Dec-12 23:00 
AnswerRe: "&nbsp" problem in Javascript Pin
BennyCriziko21-Dec-12 1:42
BennyCriziko21-Dec-12 1:42 
GeneralRe: "&nbsp" problem in Javascript Pin
Richard MacCutchan21-Dec-12 2:06
mveRichard MacCutchan21-Dec-12 2:06 
AnswerRe: "&nbsp" problem in Javascript Pin
jkirkerx31-Dec-12 10:39
professionaljkirkerx31-Dec-12 10:39 
Questionjquery tabslideout plugin and want to detect when div slide in and out Pin
Tridip Bhattacharjee20-Dec-12 3:54
professionalTridip 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
vbmike21-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
professionalTridip 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
vbmike23-Dec-12 11:31 
QuestionConvert HTML to PDF (Client Side) Pin
Phanindra26116-Dec-12 20:07
Phanindra26116-Dec-12 20:07 
QuestionRe: Convert HTML to PDF (Client Side) Pin
ZurdoDev18-Dec-12 5:05
professionalZurdoDev18-Dec-12 5:05 
AnswerRe: Convert HTML to PDF (Client Side) Pin
Phanindra26118-Dec-12 17:50
Phanindra26118-Dec-12 17:50 
GeneralRe: Convert HTML to PDF (Client Side) Pin
J4amieC18-Dec-12 21:29
J4amieC18-Dec-12 21:29 
QuestionCan't figure out why the currentSlide goes 0-3-2 Pin
jkirkerx16-Dec-12 12:08
professionaljkirkerx16-Dec-12 12:08 
AnswerRe: Can't figure out why the currentSlide goes 0-3-2 Pin
jkirkerx17-Dec-12 8:40
professionaljkirkerx17-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.