Click here to Skip to main content
14,973,417 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Folder access right Pin
Kaushal Arora23-Jan-09 1:37
MemberKaushal Arora23-Jan-09 1:37 
QuestionHow to delete a row from the grid view ? Pin
prabhuram n20-Jan-09 20:56
Memberprabhuram n20-Jan-09 20:56 
AnswerRe: How to delete a row from the grid view ? Pin
Aman Bhullar20-Jan-09 21:06
MemberAman Bhullar20-Jan-09 21:06 
GeneralRe: How to delete a row from the grid view ? Pin
prabhuram n20-Jan-09 21:24
Memberprabhuram n20-Jan-09 21:24 
GeneralRe: How to delete a row from the grid view ? Pin
N a v a n e e t h20-Jan-09 21:32
MemberN a v a n e e t h20-Jan-09 21:32 
QuestionUnable to read some data from csv file Pin
Satish - Developer20-Jan-09 20:46
Member Satish - Developer20-Jan-09 20:46 
AnswerRe: Unable to read some data from csv file Pin
Abhishek Sur20-Jan-09 21:30
professionalAbhishek Sur20-Jan-09 21:30 
QuestionClearing Dropdownlist keeping the first index Pin
meeram39520-Jan-09 20:31
Membermeeram39520-Jan-09 20:31 
I'm filling a dropdownlist using an update panel. Following is the code:
<asp:UpdatePanel ID="UpdatePanel2" runat="server">
            <ContentTemplate>
        <asp:DropDownList ID="CompanyList"  runat="server"
            Height="22px" Width="155px" AutoPostBack="True" AppendDataBoundItems="true"
                    onselectedindexchanged="CompanyList_SelectedIndexChanged" >
                    <asp:ListItem Selected ="True" Text="--Please Select--"></asp:ListItem>
        </asp:DropDownList>
                <br />
         <asp:DropDownList ID="ProjectList" runat="server" AppendDataBoundItems="true"
            Height="23px" Width="155px" >
            <asp:ListItem Selected ="True" Text="--Please Select--"></asp:ListItem>
        </asp:DropDownList>
         </ContentTemplate>
        </asp:UpdatePanel>
         <asp:UpdateProgress ID="UpdateProgress2" AssociatedUpdatePanelID="UpdatePanel2" runat="server" >
        <ProgressTemplate>
        <span class="ProgressBar">
        Data Loading. Please Wait....</span></ProgressTemplate>
        </asp:UpdateProgress>


Everything is working fine and data is populating in both the dropdownlists without postbacks. After saving the data, I need to clear the dropdownlist by keeping the item "--Please Select--". When I say, ProjectList.Items.Clear();, all the items are getting cleared. I am not sure how to achieve this. Anybody please provide any help on this.

Thanks,
AnswerRe: Clearing Dropdownlist keeping the first index Pin
Aman Bhullar20-Jan-09 21:03
MemberAman Bhullar20-Jan-09 21:03 
GeneralRe: Clearing Dropdownlist keeping the first index Pin
meeram39520-Jan-09 22:59
Membermeeram39520-Jan-09 22:59 
GeneralRe: Clearing Dropdownlist keeping the first index Pin
meeram39520-Jan-09 23:00
Membermeeram39520-Jan-09 23:00 
QuestionHow to get the selected value from the Repeater control? Pin
Karthick_gc20-Jan-09 20:14
MemberKarthick_gc20-Jan-09 20:14 
AnswerRe: How to get the selected value from the Repeater control? Pin
N a v a n e e t h20-Jan-09 21:38
MemberN a v a n e e t h20-Jan-09 21:38 
AnswerRe: How to get the selected value from the Repeater control? Pin
Abhishek Sur20-Jan-09 21:47
professionalAbhishek Sur20-Jan-09 21:47 
Questiondatagrid updation! Pin
RajpootRohan20-Jan-09 19:54
professionalRajpootRohan20-Jan-09 19:54 
AnswerRe: datagrid updation! Pin
RajpootRohan20-Jan-09 21:08
professionalRajpootRohan20-Jan-09 21:08 
Questionhow to create a Menu with 3 level using Menu Control in ASP.net. Pin
Ravi Munde20-Jan-09 19:05
MemberRavi Munde20-Jan-09 19:05 
AnswerRe: how to create a Menu with 3 level using Menu Control in ASP.net. Pin
Karthick_gc20-Jan-09 19:48
MemberKarthick_gc20-Jan-09 19:48 
QuestionUrl rewriting using c# Pin
Member 422892520-Jan-09 18:23
MemberMember 422892520-Jan-09 18:23 
AnswerRe: Url rewriting using c# Pin
N a v a n e e t h20-Jan-09 18:40
MemberN a v a n e e t h20-Jan-09 18:40 
QuestionGoogle Map API Integration in ASP .NET web page Pin
codingrocks20-Jan-09 18:20
Membercodingrocks20-Jan-09 18:20 
AnswerRe: Google Map API Integration in ASP .NET web page Pin
N a v a n e e t h20-Jan-09 18:41
MemberN a v a n e e t h20-Jan-09 18:41 
AnswerRe: Google Map API Integration in ASP .NET web page Pin
MacSpudster21-Jan-09 9:17
professionalMacSpudster21-Jan-09 9:17 
QuestionCall External Javascript File in aspx file Pin
anandhakrishnan20-Jan-09 17:21
Memberanandhakrishnan20-Jan-09 17:21 
AnswerRe: Call External Javascript File in aspx file Pin
N a v a n e e t h20-Jan-09 17:30
MemberN a v a n e e t h20-Jan-09 17:30 

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.