Hi, 1) I want to place the button in wizard control which shoul repeat for every step(regardless of Start, Step, Finish). Where to put the button code in Wizard? 2) How to hide the Wizard steps based on the user roles? Thanks in advance
kjosh
Posts
-
Button in wizard -
Conditions in aspx pageI* have so many controls for each application type. Setting visiblity for all the controls depending on application type will result in many lines of code. Insted of this approach, can we write the condition in aspx page like <% applicationtype > controls related to this type? Thanks
-
Conditions in aspx pageHi, I have one Applications.aspx page. There are 5 types of applications. I am using the Applications.aspx to process the 5 types of applications. So For the Application type 1, I need to show some fields which are not applicable to other application types. some of the input fileds for the applicationtype 2 are not applicable to remaining application types. How to put the conditions in aspx page to show the necessary fields nased on the application type in one aspx page? What is the best solution for this type of requirements? Thanks in advance
-
PrintHi, In my Gridview, I am displaying columns like the below: Col1 | Col2 | Col3 x | x | this is test. Abcfr mn some text some text, some text... In the third column col3: I have large text some more than 1000 characters of data. While displaying this large text, I am displayinh the first 25 characters. Here my requirement is while printing, I have to print complete data in that column. How to do this print? Thanks in advance
-
[Message Deleted][Message Deleted]
-
custom control visibility- I have one custom control Datepicker. In my aspx page I am using that custom control liek the below: <asp:RadioButtonList ID="rbl" runat="server" RepeatDirection="Horizontal"> <asp:ListItem Value="1" onclick="ChangeA(this)">a</asp:ListItem> <asp:ListItem Value="2" onclick="ChangeB(this)">b</asp:ListItem> </asp:RadioButtonList> <vv:DatePicker ID="Dp1" Text="StartDate" .../> <vv:DatePicker ID="Dp2" Text="EndDate"> When the option"a" is selected I have to show the dp1, dp2. When "b" is selected, hide the Dp1, Dp2. So I have the Javascript like the below: function ChangeA(theradio) { document.getElementById('<%=Dp1.ClientID%>').style.visibility = 'visible'; document.getElementById('<%=Dp2.ClientID%>').style.visibility = 'visible'; } function ChangeB(theradio) { document.getElementById('<%=Dp1.ClientID%>').style.visibility = 'hidden'; document.getElementById('<%=Dp2.ClientID%>').style.visibility = 'hidden'; } I am getting the error "Object required" . for the Dp1, Dp2. If I put the Text boxes insted of Dp1, Dp2 the Javascript code is working fine. How to set visibility for custom control. 2) I have Textbox for which visibility is set to False by design. How to set visibility True using Javascript. My page is having the Master page not HTML body. For this also I am getting Object required error. Thanks in advance
-
Enable/disableHi, In most of my forms, I have to show the data based upon the selection. Like Based upon the Drop down list selected value, I have to show the corresponding fields, Based upon radio button selection show remaining fileds... I am thinking of Javascript to show/hide remaining fields based upon selections. What are the best options for these type of conditions? Is the Javascript is good? I have so many conditions like this. Thanks in advance
-
DataList in GridviewHi, I have the complex business object like: Ownership. Ownership object is collection of buisness objects, collection of person objects. class Ownership { Collection<BusinessData> Businesses; Collection<PersonData> Persons; } In the ASPX.cs Page_Load I am adding the business objects to Ownership object: OwnerShip owners = new OwnerShip(); owners.Businesses.Add(new BusinessData("XX LLC", true, 0, 20, "pres", "", true)); XX LLC is business name. owners.Businesses.Add(new BusinessData("YY LLP", false, 0, 20, "vice president", "", true)); In ASPx page it is like this: <asp:GridView ID="gvOwners" runat="server" AutoGenerateColumns="False" Width="787px" OnRowDataBound="gvOwners_RowDataBound"> <Columns> asp:TemplateField <ItemTemplate> <asp:DataList ID="BusinessPersonDataList" runat="server"> <ItemTemplate> <%# ((BusinessDescriptionData)Container.DataItem).BusinessName %> </ItemTemplate> </asp:DataList> </ItemTemplate> </asp:TemplateField> </Columns> </asp:GridView> Now in the RowDatabound event of GridView, I want to bind one DataList with Business colection.(in another DataList I want to bind the Persons collection, I did not put the code for this part yet. First I am trying with the Busienss objects). The RowDataBound event is like trhe below: protected void gvOwners_RowDataBound(object sender, GridViewRowEventArgs e) { OwnerShip os = null; GridViewRow r = e.Row; if (r.DataItem != null) // Make sure we're not in the Header or Footer row { os = r.DataItem as OwnerShip; } DataList BPDataList = e.Row.FindControl("BusinessPersonDataList") as DataList; if (BPDataList != null && os != null) { BPDataList.DataSource = os.Businesses; BPDataList.DataBind(); } } When I run the page, I am not getting any results. The Gridview is not displaying anything. If I remove the RowDatabound event and in the page_load gvOwners.DataSource = owners.Businesses; I have not used the datalist in this example, just binded to one Label in Gridview. Then it is displaying the results. I think the RowDatabound event is not firing. What is the problem in the above? Thanks in advance.
-
ContinueHi, In my web site I have to put one button with the name "Continue to work". The website is having multiple pages. Users will work in that website, close the web page. Next when they login into the web site they click on " Continue To Work" button. So this button will take them to the page where they stopped prevously. How to implement this behaviour? Thanks in advance.
-
Wizard sidebarHi, In the wizard control, how to display the Sidebar horizantally at the top of the wizard. The sidebar displaying the steps in hyperlinks. Can we change those hyperlinks into buttons? And also how to distinguish between active step and other steps in the side bar? Thanks in advance
-
Best desginHi, In my aspx page, I have 3 tabs. tab1, Ownership, Location. first tab: tab1 entity shows the fields some x, y, z. Second tab: Ownership: this owner of the above business may be some xxx company, and person. Ownership tab display details like the below: Owner Type: dropdownlist: Person or business if person is selected take them to the Person.aspx page, there he can add the person details like name,ssn, firstname, lastname, middlename,... If Business is selected, take them to another page, there he can enter, details regarding the business. The Ownership may contain up to x number of businesses(each buisness have details), y number of persons(each person have the above details). Third tab: Location: stores the physical address, mailing address. Now, I have to define the classes in business layer for the above scenario: a) tab1 class b) Defined one class i.e business contain the details of the busienss. Person class having the fields for name, ssn, lastname, middle name. c) defined class Address: having the fields, properties for street address, city, state, country, zipcode. They can have multiple businesses, persons, adresses. Now defined another class like the below: Class Application //this class is to store the above details of 3 tabs. { #region fields //Tab1 entity tab1 t; //Business class entities Collection<Business> bus; //Person class entities Collection<Person> Persons; //Address tab Collection<Address> PhysicalAddress; Collection<Address> MailingAddress; } I am using the collection to store the multiple values of the class objects. So In presentation layer I can bind the collection to GridView. Could anyone specify above approach is good enough? Any other areas I have to take care of? Thanks in advance.
-
Dropdownlist in GridViewHi, I have Gridview which contains id, status, name, Edit button. The edit mode of the GridView will display the DropdownList for the Status column. So user selects the Edit button, and update the status by selecting from the DropdownList. My GridView has 100 rows. To update the Status, go to each row and select value from Dropdownlist and click on Update button. Instated of editing each row to change the value of Status, I want to to display the Checkboxes in one column in Gridview to update all at once(This is needed when we want to Update 30 rows with the one status value). Now Where we need to display the Dropdown list in the GridView to select the Status values and selecting the Check boxes. Can we display the dropDownlist in the Header row of GridView? and checkboxes are for each row. In this situation what is the Best way? Thanks in advance.
-
Tab based programmingHi , In my application which was developed in Visual studio 2003, on the top of the page it contain tabs like in this link : http://www.sitepoint.com/examples/cssaccessiblenav/css-3.htm[^]. The above link contains only one row of tabs. but my application containg 2 rows of tabs(first row contain 4 tabs, second row contain 3 tabs). These 2 rows of tabs are like master page in .Net 2.0 they are repeating for each page. When we click on first tab in the first row, the tab color is changed to distinguish from remaining tabs in that row. Each page contains one Continue button. when we click on Continue button, it will take to the next page which also contains the two rows of tabs, and second tab color is changed automatically and transfer to the page corresponding to that page. Here the requirement is continue button click take you to the corresponding page and highlight that tab. When the user clicks on the Back button of the browser, it must take you to the previous tab( change its color) and display the page data associated to that tab. We are rewriting the application in .NET Framework 2.0. So I want to utilize the two master pages(I have top level layout, and second level layout), two menu controls having the datasource as sitemaps one is for first row of tabs and second sitemap is for second row of tabs. Here how we change the color of the links as it is clicked and move those rows up and down. The row of tabs moved to down if it is active. inactive row tabs must move to up. How to do this bechavoiur? Thanks
-
Dash boardsHi, Can any one provide me the information about, What is dash board, Portals.. How to deveop them? And any real world example of where we use them? Thanks in advance
-
ASP.Net textbox widthHi, Whats is the default width, height of the ASP.Net textbox. In my form I have textboxes and one custom control which is using writer.AddAttribute(HtmlTextWriterAttribute.Type, "text"); -> for this I need to set the height, width same as asp.net textbox to do the formatting. I am setting like this in the custom control writer.AddStyleAttribute(HtmlTextWriterStyle.Width, "138px"); here I need the asp.net textbox width? How we get the default width? Thanks
-
CSS to only one textboxHi, In my content page, I want to apply CSS style to only one textbox not for all the textboxes in page. How to apply the stle. my css is for to make the textbox look like label. <style type="text/css"> { input { border : 0; } } How to apply this? Thanks
-
Disable radio buttonHi, I have two textboxes and one label. In textboxes I am entering numbers. To those textboxes I assigned on javascript function which will calculate the difference of those numbers and display in the label. I have one radio button. I need to disable the radio button if the difference is negative. How to diable the radio button based on label value. I am assigning the difference to label in javascript function. Thanks
-
Insert date into oracleHi, I am not getting any error. The ExecuteNonQuery method is executing continuously. Thanks
-
Insert date into oracleHi, I tried to upfate the date field of table from .net. I have tried like the below: Database db = DatabaseFactory.CreateDatabase(); using (DbConnection connection = db.CreateConnection()) { connection.Open(); DbTransaction transaction = connection.BeginTransaction(IsolationLevel.Serializable); //DateTime dt = Convert.To(TextBox1.Text); string s = "Update table1 set update_dttm = To_Date('" + DateTime.Now.ToShortDateString() + "','dd/mm/yyyy')"; DbCommand pcmd = db.GetSqlStringCommand(s); db.ExecuteNonQuery(pcmd, transaction); transaction.Commit(); } When I execute the string in s in Oracle it is working fine. But from .net I am not getting any error. It is executing continuously. Whats wrong in my code. Thanks in advance
-
Confirmation emailHi, I have two text boxes Email and confirmation Email. I need to force the user to enter confirmation email only when the email textbox is entered. If the value is not entered in the Email textbox then I don’t need to check the confirmation email is entered or not. How to do this in javascript I know I have to write one function which checks for the email textbox if it is empty then display the message after the confirmation email? How to display the message after the confirmation email? Which client side event we need to use for the confirmation email to call the javascript function? Thanks in advance