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

ASP.NET

 
GeneralRe: how can i send a mail in .pdf format Pin
Manas Bhardwaj22-Sep-09 6:16
professionalManas Bhardwaj22-Sep-09 6:16 
GeneralRe: how can i send a mail in .pdf format Pin
inayat basha22-Sep-09 6:27
inayat basha22-Sep-09 6:27 
GeneralRe: how can i send a mail in .pdf format Pin
Richard MacCutchan22-Sep-09 9:26
mveRichard MacCutchan22-Sep-09 9:26 
GeneralRe: how can i send a mail in .pdf format Pin
inayat basha24-Sep-09 15:02
inayat basha24-Sep-09 15:02 
GeneralRe: how can i send a mail in .pdf format Pin
Richard MacCutchan24-Sep-09 22:29
mveRichard MacCutchan24-Sep-09 22:29 
QuestionDeleting using InnerJoin Pin
dayakar_dn22-Sep-09 5:24
dayakar_dn22-Sep-09 5:24 
AnswerRe: Deleting using InnerJoin Pin
Manas Bhardwaj22-Sep-09 5:42
professionalManas Bhardwaj22-Sep-09 5:42 
QuestionEdit Item Template, Dropdown list Pin
JohnQuar122-Sep-09 4:50
JohnQuar122-Sep-09 4:50 
Hello,
I currently have two dropdown lists in an edit item template and I have hard coded the values for the lists. The Item Template is a label that would read the value that was selected. That value would when be sent to a database.

When I hit edit, the dropdown lists appear, and I change the value. When I hit update, the Item Templates do not update with the selected values, and when I hit edit again, the values are back to the default, not what I selected. Can someone help me figure out how to fix this? The code is below, thanks for your time.

<asp:GridView ID="GridView_Service_Tower_Configuration_Options" 
                runat="server" AutoGenerateColumns="False" 
                DataSourceID="DS_Configuration_Options" CellPadding="4" 
                GridLines="None" Width="600px"
                DataKeyNames = "category" ForeColor="#333333">
                    <RowStyle BackColor="#EFF3FB" />
                    <Columns>
                        <asp:CommandField ShowEditButton="true" />
                        <asp:BoundField DataField="category" HeaderText="Service Tower" 
                    SortExpression="Category" ReadOnly="True"/>
                        <asp:CheckBoxField DataField="include" HeaderText="New Service Provider" 
                    SortExpression="include" >
                        <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                        </asp:CheckBoxField>
                        <asp:TemplateField HeaderText="Transition Year" 
                            SortExpression="Transition Year">
                            <EditItemTemplate>

                                <asp:DropDownList ID="drpTransitionYear" runat="server" Width="70px">
                                    <asp:ListItem>2010</asp:ListItem>
                                    <asp:ListItem>2011</asp:ListItem>
                                    <asp:ListItem>2012</asp:ListItem>
                                    <asp:ListItem>2013</asp:ListItem>
                                    <asp:ListItem>2014</asp:ListItem>
                                </asp:DropDownList>

                            </EditItemTemplate>
                            <ItemTemplate>
                                <asp:Label ID="Label1" runat="server" Text='<%# Bind("purchase_year") %>'></asp:Label>
                            </ItemTemplate>
                            <ControlStyle Width="60px" />
                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Transition Schedule" 
                            SortExpression="Transition Schedule">
                            <EditItemTemplate>
                                <asp:DropDownList ID="drpTransitionSchedule" runat="server">
                                    <asp:ListItem Selected="True">1</asp:ListItem>
                                    <asp:ListItem>2</asp:ListItem>
                                    <asp:ListItem>3</asp:ListItem>
                                    <asp:ListItem>4</asp:ListItem>
                                </asp:DropDownList>
                            </EditItemTemplate>
                            <ItemTemplate>
                                <asp:Label ID="Label2" runat="server" Text='<%# Bind("transition_years") %>'></asp:Label>
                            </ItemTemplate>
                            <ControlStyle Width="50px" />
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:TemplateField>
                    </Columns>
                    <FooterStyle BackColor="#507CD1" ForeColor="White" Font-Bold="True" />
                    <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                    <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                    <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                    <EditRowStyle BackColor="White" />
                    <AlternatingRowStyle BackColor="White" />
                </asp:GridView>
        <asp:SqlDataSource ID="DS_Configuration_Options" runat="server"
                ConnectionString="" 
                SelectCommand="populate_dashboard"
                SelectCommandType="StoredProcedure"
                UpdateCommand="exec update_dashboard @SessionID, @category, @include, @purchase_year, @transition_years"
                OnUpdated="UpdateTotals_Updating">
                
                <SelectParameters>
                    <asp:SessionParameter Name="SessionID" SessionField="SessionID"/>
                </SelectParameters>
            <UpdateParameters>
                <asp:SessionParameter Name="SessionID" SessionField="SessionID"/>
                <asp:FormParameter Name="category" FormField="category" />
                <asp:FormParameter Name="DropDown" FormField="include" />
                <asp:FormParameter Name="purchase_year" FormField="purchase_year" />
                <asp:FormParameter Name="transition_years" FormField="transition_years" />            
            </UpdateParameters>
            </asp:SqlDataSource>

QuestionDynamic Add multiple images in crystal reports. Pin
payaldonga22-Sep-09 4:28
payaldonga22-Sep-09 4:28 
AnswerRe: Dynamic Add multiple images in crystal reports. Pin
Manas Bhardwaj22-Sep-09 6:00
professionalManas Bhardwaj22-Sep-09 6:00 
GeneralRe: Dynamic Add multiple images in crystal reports. Pin
HariArunachalam1-Oct-09 18:17
HariArunachalam1-Oct-09 18:17 
QuestionJavaScript Shift + : Pin
dptalt22-Sep-09 2:36
dptalt22-Sep-09 2:36 
AnswerRe: JavaScript Shift + : Pin
Robert_Pan22-Sep-09 3:43
Robert_Pan22-Sep-09 3:43 
GeneralRe: JavaScript Shift + : Pin
dptalt22-Sep-09 3:54
dptalt22-Sep-09 3:54 
QuestionData from SQL & Header from XML??? Pin
KittyKit22-Sep-09 1:52
KittyKit22-Sep-09 1:52 
AnswerRe: Data from SQL & Header from XML??? Pin
Not Active22-Sep-09 3:02
mentorNot Active22-Sep-09 3:02 
QuestionGridView Pagination Problem Pin
JMAboliEnrich22-Sep-09 1:30
JMAboliEnrich22-Sep-09 1:30 
AnswerRe: GridView Pagination Problem Pin
keyur satyadev22-Sep-09 2:23
keyur satyadev22-Sep-09 2:23 
GeneralRe: GridView Pagination Problem Pin
JMAboliEnrich22-Sep-09 20:47
JMAboliEnrich22-Sep-09 20:47 
AnswerRe: GridView Pagination Problem Pin
Abhijit Jana22-Sep-09 2:27
professionalAbhijit Jana22-Sep-09 2:27 
GeneralRe: GridView Pagination Problem Pin
sashidhar22-Sep-09 2:30
sashidhar22-Sep-09 2:30 
GeneralRe: GridView Pagination Problem Pin
Abhijit Jana22-Sep-09 2:35
professionalAbhijit Jana22-Sep-09 2:35 
GeneralRe: GridView Pagination Problem Pin
JMAboliEnrich22-Sep-09 20:22
JMAboliEnrich22-Sep-09 20:22 
QuestionIs it possible to maintain the treeview state Pin
Swetha Srinivasan22-Sep-09 1:19
Swetha Srinivasan22-Sep-09 1:19 
AnswerRe: Is it possible to maintain the treeview state Pin
Manas Bhardwaj22-Sep-09 1:25
professionalManas Bhardwaj22-Sep-09 1:25 

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.