Click here to Skip to main content
15,892,161 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Movie not loaded message when pointing embed src to "d:\abc\story.swf" Pin
SURESH_KATARI7-Jul-14 21:19
SURESH_KATARI7-Jul-14 21:19 
AnswerRe: Movie not loaded message when pointing embed src to "d:\abc\story.swf" Pin
thatraja7-Jul-14 22:26
professionalthatraja7-Jul-14 22:26 
GeneralRe: Movie not loaded message when pointing embed src to "d:\abc\story.swf" Pin
SURESH_KATARI8-Jul-14 0:07
SURESH_KATARI8-Jul-14 0:07 
QuestionWeb API versions Pin
Mycroft Holmes7-Jul-14 16:31
professionalMycroft Holmes7-Jul-14 16:31 
AnswerRe: Web API versions Pin
Kornfeld Eliyahu Peter7-Jul-14 20:29
professionalKornfeld Eliyahu Peter7-Jul-14 20:29 
GeneralRe: Web API versions Pin
Mycroft Holmes7-Jul-14 22:05
professionalMycroft Holmes7-Jul-14 22:05 
AnswerRe: Web API versions Pin
Kornfeld Eliyahu Peter7-Jul-14 22:15
professionalKornfeld Eliyahu Peter7-Jul-14 22:15 
Questioncontrols in Gridview footer generating different ids in Windows 2003 server vs Windows 2008 server Pin
Huskies777-Jul-14 7:29
Huskies777-Jul-14 7:29 
XML
Hi all,

We recently upgraded our web application from Windows server 2003 to Windows server 2008.  Everything works good except that the Gridview footer controls' id are generating different.  This is causing some external javascript failure.  The Gridview code is:

<asp:UpdatePanel ID="UPSposors" runat="server" UpdateMode="Conditional">
    <ContentTemplate>
        <asp:GridView ID="grvSponsors" Visible="true" AutoGenerateColumns="false" HeaderStyle-Font-Names="Verdana"
            HeaderStyle-Font-Size="9pt" PageSize="5" ShowFooter="true" TabIndex="9" runat="server"
            OnRowCancelingEdit="grvSponsors_RowCancelingEdit" OnRowEditing="grvSponsors_RowEditing"
            OnRowUpdating="grvSponsors_RowUpdating">
            <Columns>
                <asp:TemplateField HeaderStyle-Width="100px" SortExpression="SponsorType" HeaderText="Contact Type">
                    <EditItemTemplate>
                        <asp:DropDownList ID="ddlEditSponsorType" runat="server" Width="99px" Font-Names="Verdana"
                            Font-Size="8pt">
                        </asp:DropDownList>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="lblSponsor" runat="server" Text='<%# Bind("SponsorType") %>' Font-Names="Verdana"
                            Font-Size="8pt" /></a>
                    </ItemTemplate>
                    <FooterTemplate>
                        <asp:DropDownList ID="ddlAddSponsorType" runat="server" Width="99px" Font-Names="Verdana"
                            Font-Size="8pt" TabIndex="13">
                        </asp:DropDownList>
                        <asp:RequiredFieldValidator ID="rfvAddSponsor" runat="server" Display="Dynamic" ErrorMessage="Business Contact-Contact Type is required."
                            InitialValue="" Enabled="false" ControlToValidate="ddlAddSponsorType"><strong>!</strong></asp:RequiredFieldValidator>
                    </FooterTemplate>
                </asp:TemplateField>
                <asp:CommandField FooterText="<U><a style='cursor:hand;font-family:Verdana;font-size:8pt;padding:2px;' TabIndex ='14' id='aAdd' onclick='TriggerAddSponsor();' >Save</a></U>"
                    ShowDeleteButton="true" ShowEditButton="true" HeaderStyle-Width="125px" CausesValidation="false"
                    ControlStyle-Font-Names="Verdana" ControlStyle-Font-Size="8pt" />
            </Columns>
         </asp:GridView>
        </ContentTemplate>
</asp:UpdatePanel>


The generated HTML control in Windows Server 2003 is:
<td>
   &lt;select name="tcGeneral$tpGeneral$grvSponsors$ctl03$ddlAddSponsorType" id="tcGeneral_tpGeneral_grvSponsors_ctl03_ddlAddSponsorType" tabindex="13" style="font-family:Verdana;font-size:8pt;width:99px;">
            &lt;option value="">Select&lt;/option>
            &lt;option value="BUS">Business&lt;/option>
            &lt;option value="IT">IT&lt;/option>
            &lt;option value="SP">Sponsor&lt;/option>
    &lt;/select>
  <span id="tcGeneral_tpGeneral_grvSponsors_ctl03_rfvAddSponsor" style="color:Red;display:none;"><strong>!</strong></span>
</td>

The generated HTML control in Windows Server 2008 is:

<td>
  &lt;select name="tcGeneral$tpGeneral$grvSponsors$ctl03$ddlAddSponsorType" id="tcGeneral_tpGeneral_grvSponsors_ddlAddSponsorType" tabindex="13" style="font-family:Verdana;font-size:8pt;width:99px;">
        &lt;option value="">Select&lt;/option>
        &lt;option value="BUS">Business&lt;/option>
        &lt;option value="IT">IT&lt;/option>
        &lt;option value="SP">Sponsor&lt;/option>
    &lt;/select>
  <span id="tcGeneral_tpGeneral_grvSponsors_rfvAddSponsor" style="display:none;"><strong>!</strong></span>
</td>


As you can see the id generated for W2K3 server has "ctl03" in it but the W2K8 does not.  This is causing our javascripts to fail.  On my laptop running IIS7.5 the id has "ctl03" its just on the windows server 2008 that is missing it.  Am I missing some kind of setting or deployment?

Thank you for any help in advance,
AJ

AnswerRe: controls in Gridview footer generating different ids in Windows 2003 server vs Windows 2008 server Pin
Richard Deeming7-Jul-14 7:47
mveRichard Deeming7-Jul-14 7:47 
GeneralRe: controls in Gridview footer generating different ids in Windows 2003 server vs Windows 2008 server Pin
Huskies777-Jul-14 9:17
Huskies777-Jul-14 9:17 
GeneralRe: controls in Gridview footer generating different ids in Windows 2003 server vs Windows 2008 server Pin
Richard Deeming7-Jul-14 9:22
mveRichard Deeming7-Jul-14 9:22 
GeneralRe: controls in Gridview footer generating different ids in Windows 2003 server vs Windows 2008 server Pin
Huskies779-Jul-14 8:34
Huskies779-Jul-14 8:34 
GeneralRe: controls in Gridview footer generating different ids in Windows 2003 server vs Windows 2008 server Pin
Richard Deeming9-Jul-14 8:43
mveRichard Deeming9-Jul-14 8:43 
GeneralRe: controls in Gridview footer generating different ids in Windows 2003 server vs Windows 2008 server Pin
Huskies7710-Jul-14 5:53
Huskies7710-Jul-14 5:53 
QuestionCS0246: The type or namespace name 'UserInfoaa' could not be found (are you missing a using directive or an assembly reference?) Pin
Member 109016446-Jul-14 0:16
Member 109016446-Jul-14 0:16 
AnswerRe: CS0246: The type or namespace name 'UserInfoaa' could not be found (are you missing a using directive or an assembly reference?) Pin
Kornfeld Eliyahu Peter6-Jul-14 0:32
professionalKornfeld Eliyahu Peter6-Jul-14 0:32 
GeneralRe: CS0246: The type or namespace name 'UserInfoaa' could not be found (are you missing a using directive or an assembly reference?) Pin
Member 109016446-Jul-14 3:52
Member 109016446-Jul-14 3:52 
GeneralRe: CS0246: The type or namespace name 'UserInfoaa' could not be found (are you missing a using directive or an assembly reference?) Pin
CHill606-Jul-14 14:29
mveCHill606-Jul-14 14:29 
GeneralRe: CS0246: The type or namespace name 'UserInfoaa' could not be found (are you missing a using directive or an assembly reference?) Pin
Member 109016446-Jul-14 18:32
Member 109016446-Jul-14 18:32 
QuestionError in my Entity Framework connection string Pin
Stephen Holdorf5-Jul-14 3:32
Stephen Holdorf5-Jul-14 3:32 
QuestionRe: Error in my Entity Framework connection string Pin
Stephen Holdorf5-Jul-14 10:44
Stephen Holdorf5-Jul-14 10:44 
QuestionRe: Error in my Entity Framework connection string Pin
Stephen Holdorf5-Jul-14 10:57
Stephen Holdorf5-Jul-14 10:57 
AnswerRe: Error in my Entity Framework connection string Pin
sankarsan parida6-Jul-14 7:49
professionalsankarsan parida6-Jul-14 7:49 
QuestionRe: Error in my Entity Framework connection string Pin
Stephen Holdorf6-Jul-14 13:54
Stephen Holdorf6-Jul-14 13:54 
AnswerRe: Error in my Entity Framework connection string Pin
sankarsan parida6-Jul-14 18:55
professionalsankarsan parida6-Jul-14 18:55 

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.