Click here to Skip to main content
15,889,992 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Return List on button click of user control. Pin
Brij31-May-10 21:34
mentorBrij31-May-10 21:34 
GeneralRe: Return List on button click of user control. Pin
zeego31-May-10 21:49
zeego31-May-10 21:49 
GeneralRe: Return List on button click of user control. Pin
michaelschmitt31-May-10 22:45
michaelschmitt31-May-10 22:45 
GeneralRe: Return List on button click of user control. Pin
zeego31-May-10 23:06
zeego31-May-10 23:06 
GeneralRe: Return List on button click of user control. Pin
michaelschmitt1-Jun-10 0:27
michaelschmitt1-Jun-10 0:27 
GeneralRe: Return List on button click of user control Pin
zeego1-Jun-10 1:19
zeego1-Jun-10 1:19 
GeneralRe: Return List on button click of user control Pin
michaelschmitt1-Jun-10 2:30
michaelschmitt1-Jun-10 2:30 
AnswerRe: Return List on button click of user control. Pin
Andreas X1-Jun-10 1:28
professionalAndreas X1-Jun-10 1:28 
i would create an interface that contains the method to update the page gridview.
public interface IMyInterface
{
    public void UpdateGridview(ftExclusionsList theList);
}


implement the interface on the page.

protected void btnUpdate_Click(object sender, EventArgs e)
    {
        ftExclusionsList myFTExclusionList = new ftExclusionsList();
        foreach (ListItem li in cblExclusions.Items)
        {
            if (li.Selected == true)
            {
                ftExclusions myftExclusion = new ftExclusions();
                myftExclusion.excluId = Convert.ToInt32(li.Value);
                myftExclusion.excludesc = li.Text.ToString();
                myFTExclusionList.Add(myftExclusion);
            }
            
        }
        selectedExclusions = myFTExclusionList;
        // how do I return this list and bind it with gridview on calling page?
        ((IMyInterface)this.Page).UpdateGridview(selectedExclusions);
    }


this is the way i do it and i works like a charm Smile | :)
Andreas Johansson

IT Professional at Office IT Partner i Norrbotten Sweden

What we don't know. We learn.
What you don't know. We teach

Questiontext in windows service appears to have old reference Pin
Member 391904931-May-10 21:16
Member 391904931-May-10 21:16 
AnswerRe: text in windows service appears to have old reference Pin
Sandeep Mewara31-May-10 23:56
mveSandeep Mewara31-May-10 23:56 
GeneralRe: text in windows service appears to have old reference Pin
Member 39190491-Jun-10 5:53
Member 39190491-Jun-10 5:53 
AnswerRe: text in windows service appears to have old reference Pin
aashish.saalvi1-Jun-10 1:53
aashish.saalvi1-Jun-10 1:53 
QuestionDataView Pin
Satish_S31-May-10 20:58
Satish_S31-May-10 20:58 
AnswerRe: DataView Pin
Sandeep Mewara31-May-10 23:58
mveSandeep Mewara31-May-10 23:58 
Questiontrying to get windows service to auto-start after install Pin
Member 391904931-May-10 19:25
Member 391904931-May-10 19:25 
AnswerRe: trying to get windows service to auto-start after install Pin
Sandeep Mewara31-May-10 19:44
mveSandeep Mewara31-May-10 19:44 
Questionasp table with javascript getelementbyid Pin
Aljaz11131-May-10 14:53
Aljaz11131-May-10 14:53 
AnswerRe: asp table with javascript getelementbyid Pin
Sandeep Mewara31-May-10 19:17
mveSandeep Mewara31-May-10 19:17 
AnswerRe: asp table with javascript getelementbyid Pin
Amit M patel31-May-10 20:59
Amit M patel31-May-10 20:59 
GeneralRe: asp table with javascript getelementbyid Pin
Aljaz1111-Jun-10 3:33
Aljaz1111-Jun-10 3:33 
QuestionRun Web Application Under Evaluation Period. Pin
VikashGohil31-May-10 7:34
VikashGohil31-May-10 7:34 
AnswerRe: Run Web Application Under Evaluation Period. Pin
Brij31-May-10 9:38
mentorBrij31-May-10 9:38 
GeneralRe: Run Web Application Under Evaluation Period. Pin
VikashGohil31-May-10 20:10
VikashGohil31-May-10 20:10 
GeneralRe: Run Web Application Under Evaluation Period. Pin
Brij31-May-10 21:05
mentorBrij31-May-10 21:05 
QuestionAsp.net - streching background images Pin
karthi1631-May-10 5:21
karthi1631-May-10 5:21 

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.