Click here to Skip to main content
15,908,173 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Request.Form in MVC Pin
Not Active6-Oct-09 16:20
mentorNot Active6-Oct-09 16:20 
GeneralRe: Request.Form in MVC Pin
Christian Graus6-Oct-09 16:42
protectorChristian Graus6-Oct-09 16:42 
GeneralRe: Request.Form in MVC Pin
N a v a n e e t h6-Oct-09 17:45
N a v a n e e t h6-Oct-09 17:45 
Questionrun javascript after postback Pin
samjesse6-Oct-09 10:28
samjesse6-Oct-09 10:28 
AnswerRe: run javascript after postback Pin
Christian Graus6-Oct-09 10:45
protectorChristian Graus6-Oct-09 10:45 
QuestionNeed help with loading rows of input controls one at a time Pin
Michael Eber6-Oct-09 7:13
Michael Eber6-Oct-09 7:13 
AnswerRe: Need help with loading rows of input controls one at a time Pin
Not Active6-Oct-09 7:55
mentorNot Active6-Oct-09 7:55 
GeneralRe: Need help with loading rows of input controls one at a time Pin
Michael Eber7-Oct-09 13:20
Michael Eber7-Oct-09 13:20 
Mark,

Thank you so much. I have everything almost working.
After a little debugging I found I had to code a bit to rebuild the collection of values for each new connection added.
Now I have just a tiny issue I cannot figure out. My logic is quite simple:
protected void NextLegEventHandler( object sender, EventArgs e )
{
    LegItem legItem = new LegItem( );
    legNames = new Dictionary<int, LegItem>( );
    foreach ( Control item in LegConstructor.Controls )
    {
        if ( !( item is RepeaterItem ) ) continue;
        if ( item.Controls.Count <= 1 ) continue;
        foreach ( Control textItem in item.Controls )
        {
            TextBox currentControl = textItem as TextBox;
            if ( currentControl == null ) continue;
            int result = 0;
            if ( Int32.TryParse( currentControl.Text, out result ) )
            {
                legItem = new LegItem( );
                legItem.LegNumber = result;
            }
            else
            {
                legItem.PortName = currentControl.Text;
                legNames.Add( legItem.LegNumber, legItem );
            }
        }

    }
    LegItem newLeg = new LegItem( );
    newLeg.LegNumber = legNames.Count + 1;
    newLeg.PortName = string.Empty;
    legNames.Add( newLeg.LegNumber, newLeg );
    this.LegConstructor.DataSource = legNames.Values.ToArray<LegItem>( );
    this.LegConstructor.DataBind( );
}


So this way I rebuild the values for each leg and rebind with the new list.

The problem: I have to hit the button twice to get the new entry to display! What am I missing to force the page to display the new data once I complete my response to the event?

Thanks again,
Michael
GeneralRe: Need help with loading rows of input controls one at a time Pin
Not Active7-Oct-09 14:14
mentorNot Active7-Oct-09 14:14 
GeneralRe: Need help with loading rows of input controls one at a time Pin
Michael Eber8-Oct-09 6:10
Michael Eber8-Oct-09 6:10 
GeneralRe: Need help with loading rows of input controls one at a time Pin
Michael Eber8-Oct-09 6:16
Michael Eber8-Oct-09 6:16 
GeneralRe: Need help with loading rows of input controls one at a time Pin
Not Active8-Oct-09 6:34
mentorNot Active8-Oct-09 6:34 
GeneralRe: Need help with loading rows of input controls one at a time Pin
Michael Eber8-Oct-09 6:50
Michael Eber8-Oct-09 6:50 
GeneralRe: Need help with loading rows of input controls one at a time Pin
Not Active8-Oct-09 8:46
mentorNot Active8-Oct-09 8:46 
GeneralRe: Need help with loading rows of input controls one at a time Pin
Michael Eber8-Oct-09 8:48
Michael Eber8-Oct-09 8:48 
QuestionFailed to stop window service through application in Windows server 2003 Pin
ramkris846-Oct-09 5:20
ramkris846-Oct-09 5:20 
AnswerRe: Failed to stop window service through application in Windows server 2003 Pin
Christian Graus6-Oct-09 10:46
protectorChristian Graus6-Oct-09 10:46 
GeneralRe: Failed to stop window service through application in Windows server 2003 Pin
ramkris846-Oct-09 20:51
ramkris846-Oct-09 20:51 
GeneralRe: Failed to stop window service through application in Windows server 2003 [modified] Pin
ramkris847-Oct-09 18:44
ramkris847-Oct-09 18:44 
Questionhow to send sms from web to mobile Pin
M.Hussain.6-Oct-09 3:56
M.Hussain.6-Oct-09 3:56 
AnswerRe: how to send sms from web to mobile Pin
Richard MacCutchan6-Oct-09 4:29
mveRichard MacCutchan6-Oct-09 4:29 
AnswerRe: how to send sms from web to mobile Pin
Christian Graus6-Oct-09 10:48
protectorChristian Graus6-Oct-09 10:48 
Question[Message Deleted] Pin
m@dhu6-Oct-09 3:39
m@dhu6-Oct-09 3:39 
AnswerRe: row in repeater control Pin
Kannan Ar6-Oct-09 6:13
professionalKannan Ar6-Oct-09 6:13 
Questionfile access??????plz me!!!! Pin
azamt6-Oct-09 3:29
azamt6-Oct-09 3:29 

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.