|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
FormView - set mode in aspx based on url paramI would like my FormView to be in Edit/Insert mode depending on if there is a username=abc (not abc specifically, just that there is a username=) in the url. Or that my ObjectDataSource select finds something. If it's there, it's edit mode. Otherwise it's insert mode. At present I am doing: if (! IsPostBack) { if (Request.QueryString["username"] != null) EditUser.ChangeMode(FormViewMode.Edit); else EditUser.ChangeMode(FormViewMode.Insert); } Hi Dave,
I think your current approach is reasonable. Is there anything else you worry about this? Regards, Steven Cheng Microsoft MSDN Online Support Lead ================================================== When responding to posts, please "Reply to Group" via your newsreader so that others may learn and benefit from your issue. ================================================== This posting is provided "AS IS" with no warranties, and confers no rights. Get Secure! www.microsoft.com/security (This posting is provided "AS IS", with no warranties, and confers no rights.) No - just was wondering if it could be done in the aspx part.
Show quoteHide quote "Steven Cheng[MSFT]" wrote: > Hi Dave, > > I think your current approach is reasonable. Is there anything else you > worry about this? > > Regards, > > Steven Cheng > Microsoft MSDN Online Support Lead > > > ================================================== > > When responding to posts, please "Reply to Group" via your newsreader so > that others may learn and benefit from your issue. > > ================================================== > > > This posting is provided "AS IS" with no warranties, and confers no rights. > > > > Get Secure! www.microsoft.com/security > (This posting is provided "AS IS", with no warranties, and confers no > rights.) > >
TreeView not expanding in some browsers
why does this not work? Retrieving Asp.treeview checked checkbox information Uploading to a folder outside the www ... ? Copy & paste with a command button? FormView/Repeater/ Eval(FormView data) multiple datagrids on same page paging broken Textbox and onTextChanged Event Concatenate field values Programmatically selecting a node in a TreeView |
|||||||||||||||||||||||