Here's a SetFocus method that uses JavaScript that I use to set the focus to any control. It puts the control at the top of the window also.
//This method will set the focus to the desired control with the
//control at the top of the window.
public void SetFocus(Control ctrl)
{...
I resolved the problem by creating a DataBound event for the formview as follows:
protected void PEFormView0_DataBound(object sender, EventArgs e)
{
if (PEFormView0.CurrentMode == FormViewMode.Insert)
{...
This particular page is a complex multi-tab page which consists of a multiview inside of a formview with multiple views. It would be too much at this point to rewrite it and I would also have to rewrite the stuff that is common between this page and my other pages.
There has got to be a way to...
I really can't do that at this point. I have too much code and too many tabbed pages that contain multiviews inside of formviews and almost everything is working. I don't have time to redo it all, but maybe for a future release.
Yes, some things have been a PITA because I'm using DataSource controls, but I have multiple pages now and everything is working in my application and I'm just putting in the final small details, so at this point, it would be much more work to redo that.
If I'm seeing a SelectedValue in the...
Didn't work for me, but it didn't even fire the ModeChanged event.
I modified my aspx with the following:
<asp:FormView ID="PEFormView0" runat="server" DataSourceID="PEDataSource" DefaultMode="Edit" DataKeyNames="PEID" OnItemInserting="PEFormView0_ItemInserting" Width="1025px"...
I'm using Visual Studio 2005 and asp.net 2.0.
I have a page that contains a formview with an EditItemTemplate and an InsertItemTemplate. I want to set the default value when the form is called in insert mode. I'm doing it in the Page_Load method as follows:
protected void Page_Load(object...
I'm using Crystal Reports XI. My database contains text in html format and I'm trying to display data in my Crystal Report using html Text, but it's not working. I've tried putting in bold, italics, underlines, and bullets, but the only thing that shows up is the underline.
Can someone tell me...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.