Showing posts with label model. Show all posts
Showing posts with label model. Show all posts

Monday, March 26, 2012

Modal Popup not posting TextBox fields

I have a strange situation in which I am using a Model Popup Control with an embedded GridView containg TextBox controls in a column. I can DataBind the GridView in the codebehind and the TextBox controls are properly populated. However, when the pack posts back, the TextBox Controls always have an empty string for the Text property? This also occurs if I replace the GridView with a Repeater or any other list control.

Other controls, like labels, have there Text property available.

craig

You might want to look at this post:

http://forums.asp.net/thread/1328079.aspx

Look at the second page, at the last post with the JavaScript.

They have done some nice work with the modal regarding this issue I think.

There was also a workaround using the SubmitButtonBehavor = false;

Dont know if this will help you, but I thought I would give it a shot

Good luck

-Shane

Saturday, March 24, 2012

Modal PopUP within a DetailsView

Hello there.
I am hoping someone has done what I am trying to do and can explain to me how I can achieve my goal.

I am trying to use the model popup control within a DetailsView. I have added a template field within the detailsview and also a button next to the field. I am trying to set it up so when I press the button the modal pops up ,which allows me to add some info into a textbox and then postback to a db.

I have added a panel and called it pnlUpdate, in the panel I have added 2 buttons (Insert & cancel) + the txtbox. When I look at the buttons properties and try selecting the popUpControlID to be pnlUpdate from the dropdown its not there.

Has anyone run into this problem?

Thanks

Shane

Sorry to bump this back up to the top but I still can't seem to resolve this myself