Click here to Skip to main content
15,899,679 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Entity Framework is returing same entity for all foregn key values Pin
Pete O'Hanlon7-Sep-12 8:46
mvePete O'Hanlon7-Sep-12 8:46 
GeneralRe: Entity Framework is returing same entity for all foregn key values Pin
indian1437-Sep-12 10:37
indian1437-Sep-12 10:37 
AnswerRe: Entity Framework is returing same entity for all foregn key values Pin
Paul Conrad7-Sep-12 9:02
professionalPaul Conrad7-Sep-12 9:02 
GeneralRe: Entity Framework is returing same entity for all foregn key values Pin
indian1437-Sep-12 10:11
indian1437-Sep-12 10:11 
AnswerRe: Entity Framework is returing same entity for all foregn key values Pin
Paul Conrad7-Sep-12 10:53
professionalPaul Conrad7-Sep-12 10:53 
QuestionScript errors with accented french text in aspx page Pin
CNU7-Sep-12 2:12
CNU7-Sep-12 2:12 
SuggestionRe: Script errors with accented french text in aspx page Pin
Eddy Vluggen7-Sep-12 2:59
professionalEddy Vluggen7-Sep-12 2:59 
GeneralRe: Script errors with accented french text in aspx page Pin
CNU7-Sep-12 3:08
CNU7-Sep-12 3:08 
This is how it goes

in page_load()
C#
System.Web.UI.WebControls.Label lblHint = new System.Web.UI.WebControls.Label();
                    lblHint.ID = "LABEL_HINT_" + ControlID;
                    lblHint.Text = " ? ";
                    lblHint.Font.Bold = true;
                    lblHint.BackColor = Color.LightYellow;
                    lblHint.ToolTip = "Click here to see Hints about this field";
                    lblHint.Attributes.Add("onmouseover", "javascript:this.style.cursor='hand'");
                    lblHint.Attributes.Add("onclick", "javascript:alert('" + Hint + "');");
                    pnlInputControlsHolder.Controls.Add(lblHint);


C#
private string MakeFieldHint(DataRow drFieldDef)
    {        
            string Hint = string.Empty;
            if (this.GetLanguageOptionCookie().IndexOf(Constants.LANGUAGE_FRENCH) != -1)
            {
                if (drFieldDef["AllowCSL"] != DBNull.Value && Convert.ToBoolean(drFieldDef["AllowCSL"]))
                    Hint += "<br />You can enter multiple values separated by ,(comma).";
                if (drFieldDef["AllowWildCard"] != DBNull.Value && Convert.ToBoolean(drFieldDef["AllowWildCard"]))
                    Hint += "<br />You can enter full or partial values.";

                if (Hint != string.Empty)
                    Hint = "Field Name : " + Convert.ToString(drFieldDef["DisplayName"]) + "" + Hint;
            }
            else
            {
                if (drFieldDef["AllowCSL"] != DBNull.Value && Convert.ToBoolean(drFieldDef["AllowCSL"]))
                    Hint += "<br />Vous pouvez entrer plusieurs valeurs séparées par des virgules (,).";
                if (drFieldDef["AllowWildCard"] != DBNull.Value && Convert.ToBoolean(drFieldDef["AllowWildCard"]))
                    Hint += "<br />Vous pouvez entrer des valeurs totales ou partielles.";

                if (Hint != string.Empty)
                    Hint = "Nom de domaine : " + Convert.ToString(drFieldDef["DisplayName"]) + "" + Server.HtmlDecode(Hint);
            }

            return Hint;
                
    }

Cheers
CNU

GeneralRe: Script errors with accented french text in aspx page Pin
Eddy Vluggen7-Sep-12 3:17
professionalEddy Vluggen7-Sep-12 3:17 
QuestionFacing some strange issue with Sybase while using with .net application Pin
Hirdesh Shrivastava6-Sep-12 21:54
Hirdesh Shrivastava6-Sep-12 21:54 
QuestionRe: Facing some strange issue with Sybase while using with .net application Pin
Eddy Vluggen7-Sep-12 2:58
professionalEddy Vluggen7-Sep-12 2:58 
AnswerRe: Facing some strange issue with Sybase while using with .net application Pin
Hirdesh Shrivastava7-Sep-12 3:01
Hirdesh Shrivastava7-Sep-12 3:01 
SuggestionRe: Facing some strange issue with Sybase while using with .net application Pin
Eddy Vluggen8-Sep-12 4:55
professionalEddy Vluggen8-Sep-12 4:55 
QuestionEntity Framework for multiple Foreign keys on the same table Pin
indian1436-Sep-12 16:56
indian1436-Sep-12 16:56 
AnswerRe: Entity Framework for multiple Foreign keys on the same table Pin
Eddy Vluggen7-Sep-12 2:57
professionalEddy Vluggen7-Sep-12 2:57 
QuestionGroup asp:GridView Common Functionality Pin
byka6-Sep-12 4:15
byka6-Sep-12 4:15 
AnswerRe: Group asp:GridView Common Functionality Pin
Sandeep Mewara6-Sep-12 7:00
mveSandeep Mewara6-Sep-12 7:00 
AnswerRe: Group asp:GridView Common Functionality Pin
Jasbeer Singh24-Oct-12 23:10
professionalJasbeer Singh24-Oct-12 23:10 
Questionhow to vie documents in webpage Pin
hammathMuneerul huda6-Sep-12 2:09
hammathMuneerul huda6-Sep-12 2:09 
AnswerRe: how to vie documents in webpage Pin
Sandeep Mewara6-Sep-12 7:04
mveSandeep Mewara6-Sep-12 7:04 
QuestionASP.net(VB) MARQUEE Pin
Jasbeer Singh6-Sep-12 1:55
professionalJasbeer Singh6-Sep-12 1:55 
AnswerRe: ASP.net(VB) MARQUEE Pin
Sandeep Mewara6-Sep-12 7:06
mveSandeep Mewara6-Sep-12 7:06 
GeneralRe: ASP.net(VB) MARQUEE Pin
Jasbeer Singh6-Sep-12 19:26
professionalJasbeer Singh6-Sep-12 19:26 
AnswerRe: ASP.net(VB) MARQUEE Pin
Sandeep Mewara6-Sep-12 22:39
mveSandeep Mewara6-Sep-12 22:39 
GeneralRe: ASP.net(VB) MARQUEE Pin
Jasbeer Singh6-Sep-12 23:48
professionalJasbeer Singh6-Sep-12 23:48 

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.