479 Posted Topics
Re: Spelling mistake in the variable declaration 'string fielPath'. Change line 16 in your code as below [CODE] string filePath = " !/UploadImages/" + upImage.FileName; [/CODE] | |
Re: IE does not support 'disabled' option in ListBox and Comboboxes. The ListBox is actually rendered as <SELECT> html element and the ListItem is rendered as <option> element at run time in browsers. From this [URL="http://forums.asp.net/p/1477628/3439861.aspx"]thread[/URL], the following statements can be used to disable an item in ListBox [CODE] ListItem item1 … | |
Re: I have checked your code. Actually it does not disable enter key in TextArea. It disable enter key only in Textbox field. But you didn't use any textboxes in your code. I have changed your code to disable enter key in first text area(field1) only. [CODE] <html> <head> <title>The Title … | |
Re: Is there any error displayed in your browser? It seems to be working for me. Could you post the entire code of your page ? so that somebody can undestand the issue and provide you a solution. | |
Re: Assume that the SendSMS method is defined as a method in 'YourSMSClass'. You can call that method as below [CODE] Dim objSMS As YourSMSClass = New YourSMSClass objSMS.SendSMS () [/CODE] Here replace 'YourSMSClass ' with your SMS class name. | |
Re: The Login control has built-in 'Remember Me' feature. It will take care of remembering cookies. See the RememberMeSet property of Login control. When the RememberMeSet property is true, the authentication cookie sent to the user's computer is set to expire in 50 years, making it a persistent cookie that will … | |
Re: You can set the styles using SelectedDayStyle property. [CODE] <asp:Calendar ID="Calendar1" runat="server"> <SelectedDayStyle BackColor="#CC3399" BorderColor="#FF0066" /> </asp:Calendar> [/CODE] | |
Re: You have mentioned SenderClass in the @Page directive in both addentry.aspx and verify.aspx. Remove it from verify.aspx. Also you are redirecting from addentry.aspx(from Verify() method) to verify.aspx using Response.Redirect. Therefore the following line will throw InvalidCastException error. Use Server.Transfer to avoid that error. I have changed your code to address … | |
Re: 1. Create template columns to display textboxes and CheckBoxes in the GridView. 2. If you bind the GridView with a DataTable which is filled with records from a database, check if the DataTable has any rows. If it has no rows, add an empty record to the DataTable and then … | |
Re: Session timeout is the amount of time, in minutes, allowed between requests before the ASP.NET session-state provider terminates the session. It means that, if you set the session timeout for 20 minutes, the session wil be timed out if your browse makes a request on or after 21st mintue (from … | |
Re: MSDN Documentation says... [I]The ViewChanged event is only raised if the login status for a user changes during a postback to the page. The ViewChanged event will not be raised if a user logs in using the Login control, or if the user logs out using the LoginStatus control. The … | |
Re: You can get the values of the controls from the previous page using a feature called Cross Page Posting. Refer this link. [URL="http://msdn.microsoft.com/en-us/library/ms178139.aspx"]Cross-Page Posting in ASP.NET Web Pages[/URL] Otherwise you need to store the values in Session and retrieve it in the form page when Cancel is clicked. | |
Re: First you need to create controls dynamically in Page_Load or Page_Init events. Then only the values entered in those controls will be retained between postback. You can get reference of the control using Page.FindControl method. For example, [CODE] TextBox txt1 = (TextBox)Page.FindControl("TextBox1"); string strValue = txt1.Text; [/CODE] The container controls … | |
Re: Try to use Menu.FindItem method to search a menu item. Assume that a menu has the following structure Home->Music->Classical Home->Music->Rock Here Music has two sub menu items. To remove the 'Classical' sub menu item from 'Music', use the following code [code] String valuePath1 = "Home/Music"; MenuItem musicMenuItem = Menu1.FindItem(valuePath1); String … | |
Re: [QUOTE=bellatrix77;1000148]Hi, need help on coding. I know I can do this: Create Table New_Table as (Select * from Old_Table) where 1=2 [/QUOTE] Yes. The above method does not include the relationships/index/keys. You just generate CREATE script using SQL Server Management Studio and change table name and constraint names accordingly and … | |
Re: The automatic sorting feature will work only if you bind the GridView with DataSource controls like SqlDataSource and ObjectDataSource. These controls automatically take care binding data with GridView. Therefore the sorting feature also handled automatically by them. If you bind the GridView with a DataSet , then you need to … | |
Re: 1. Store the information about Selected/Expanded Node in Session. 2. On Page load event, extend the appropriat node after binding Also visit this [URL="http://www.vbforums.com/showthread.php?t=456869"]link[/URL]. A solution is given in the above link. But the tree node collection are stored in the Session. You can check if it addresses you problem. | |
Re: Try DIV or Panel controls to enclose your GridView control. Actually the Panel control is rendered as DIV tag at run time. You can hide/show a DIV using javascript. | |
Re: Try this. .aspx page [CODE] <%@ Page Language="VB" AutoEventWireup="false" CodeFile="TestPage3.aspx.vb" Inherits="TestPage3" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> </head> <body> <form id="Form1" runat="server"> <asp:DropDownList ID="dd" runat="server" AutoPostBack="True" /> <br /> <asp:Label ID="lbl1" runat="server" /> <br /> <div id="divParagraph" runat="server"> </div> </form> </body> </html> … | |
Re: You are only denying access to the user 'muru'. It means that users other than 'muru' can access the application anonymously. If you want to prevent the users to access the FrmWelcom or other pages without login to the system, your web.config should be as below [code] <authorization> <allow users="sonia"/> … | |
Re: You have to use RegularExpressionValidator to validate a regular expression. | |
Re: MembershipUser.LastLoginDate gives details about user's last time visit. | |
Re: There is no setting available to display the number to a specific currency format. It is the matter of display in the tool that you are using to view the data. However you can format the number in SELECT query or format the number in the user interface(like web pages) … | |
Re: I think you have added System.Windows.Forms namespace in you class file. Check whether the line "[B]using System.Windows.Forms[/B]" exist on top of your class file and remove it. | |
Re: Try this code. It will convert the text into TitleCase using JavaScript. [Code] <%@ Page Language="C#" AutoEventWireup="true" CodeFile="DemoPage21.aspx.cs" Inherits="DemoPage21" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> <script type="text/javascript" language="javascript"> function Trim(strIn) { strOut = strIn; strOut = strOut.replace(/^ */g, ""); strOut = strOut.replace(/ … | |
Re: Are you using Vista and IIS 7 to run your web site. Is there HRESULT is displayed along with error message. If so, post that message. It will be helpful to identify the issue. Also visit the following links to have some idea about the issue if you are using … | |
Re: I believe 37000 to 50000 records are too much for a table. I have seen that some customers are storing more than a million records in a table. Your database design ensure that normalization techniques to avoid data redundancy. To improve search performance, you need to create indexes for the … | |
Re: .asp and .aspx files are processed by web server and rendered as HTML to the browser. You can use Visual Studio to run .aspx files which will render into HTML content. Also you can use IIS to configure a web site where you can deploy your aspx/asp files. To deploy … | |
Re: 1. You don't need to enter the physical path to AdvertisementFile property. It should be a relative path. Change your code as below [CODE] <asp:AdRotator ID="AdRotator1" runat="server" AdvertisementFile ="~/App_Data/banner.xml"/> [/CODE] 2. You need to give the image file as like AdvertisementFile. For example, if the image file is in the … | |
Re: Do the other machines have .NET Framework installed? If not, you need to install the correct version of .NET Framework in that PC in order to run your VB.NET program successully. | |
Re: Your code should look like. [CODE] If Not Page.IsPostBack Then GrdLogados.DataSource = Membership.GetAllUsers() GrdLogados.DataBind () End If LblUsuarios.Text = Membership.GetNumberOfUsersOnline () [/CODE] You need to create appropriate bound/template columns in the GridView to display user details before binding it. Also to display "Online" / "Away" status, you need to handle … | |
Re: Try this. [code] GRANT EXECUTE ON sp_OACreate to UserLogin GO [/code] Here UserLogin is the name of the login that you use to connect with database. | |
Re: Set the Forms' Icon property to desired icon. [Edit] Vineeth is correct. I didn't refresh before posting. [/Edit] | |
Re: The OrderedItemTable may not be initialized. I believe that you are instantiating OrderedItemTable in the following line in initialize() method. [code] OrderedItemTable = OrderedItemHandler.GetTable(fullSql) [/code] The above line may not return a DataTable and therefore OrderedItemTable is still not initialized. Therefore you cannot call NewRow method on an uninitialized DataTable. … | |
Re: The following operating systems will support .NET Framework 2.0.(Refer: [URL="http://www.microsoft.com/downloads/details.aspx?FamilyID=0856EACB-4362-4B0D-8EDD-AAB15C5E04F5&displaylang=en"]this[/URL]) Windows 2000 Service Pack 3 Windows 98 Windows 98 Second Edition Windows ME Windows Server 2003 Windows XP Service Pack 2 But .NET Framework 2.0 Service Pack 1 can support the following OS only(Refer [URL="http://www.microsoft.com/downloads/details.aspx?familyid=79BC3B77-E02C-4AD3-AACF-A7633F706BA5&displaylang=en"]this[/URL]) Windows 2000 Service Pack 4 … | |
Re: Try the following Ajax Instant Messager and its is free. Download and explore it. [url]http://www.asp.net/community/control-gallery/Item.aspx?i=3552[/url] | |
Re: Try like this [code] SELECT * FROM ClientWHERE (ClientName LIKE 'Anne%') OR (ClientName LIKE '%[ ]Anne%') ORDER By PATINDEX ( 'Anne%', ClientName) DESC , PATINDEX ( '%[ ]Anne%', ClientName) [/code] Here replace the name 'Anne' whatever you want. | |
Re: Assigning an empty textbox value another textbox will not throw error. Could you please post the error messge that you are getting. You can also post some code which will help us to understand the problem and provide quick solution to you. | |
Re: Try something like this [code] <object id="ctlVBAX" classid="clsid:B7C88829-7BCF-4AB6-95A5-F63ADBEA151A" codebase="file:///C:/Work/vbActiveX.CAB"> </object> [/code] Put the name of the folder where you place the activex control in codebase directory. | |
Re: As per your requirement, the three digit number will be the 'maximum value of 3 digit number (for the year and term ) + 1' Therefore you calculate the number(ie max + 1) only when you save the student details to the database. Therefore the currentNumber will be unique for … | |
Re: Use the following command line utitlity to register a COM DLL. regsvr32 <dllName> Also refer the following link if you have any issues in registering and referencing the DLL. [url]http://social.msdn.microsoft.com/Forums/en-US/Vsexpressvcs/thread/c194f361-afcb-47ac-81e9-8be60cbc25a0[/url] | |
Re: I couldn't find a specific template for SMS site. But this [URL="http://www.buytemplates.net/promotion-templates/asp.net-web-templates.php"]site [/URL]has a number of asp.net web site templates. Search there. | |
Re: Do you want to browse the XML file from client PC and read it using JavaScript? If yes, you can't do it . You can load an XML file from server and read it using JavaScript. Use XML DOM (Document Object Model) to read XML using JavaScript. Also you can … | |
Re: You cannot mark Main method as a WebMetho in asp.net web service. The Main method is used in Windows Desktop and Console applications and behave as a startup point. The Web application will not have Main method. Also please note that the web services are consuemed in other web and … | |
Re: ScrollToCaret property can be used in WinForms application and not to use in asp.net application. You can get that effect using JavaScript. Try the solution given by serkan sendur. | |
Re: If the curreny data is a bound column in the GridView, then use the DataFormatString property to format data. | |
Re: Hi IAMEMINEM, You have posted a big and long question. The things that you requested cannot be given in one answer. To build a shopping cart, first you need to freeze the requirement, design the database, write code to implement the requirement. It will definitely need a lot of experience … | |
Re: Use the [URL="http://msdn.microsoft.com/en-us/library/aa258073(SQL.80).aspx"]ReportingService[/URL] Class which contains the methods and properties that can be used to call the Reporting Services Web service. Using the [URL="http://msdn.microsoft.com/en-us/library/aa258532(SQL.80).aspx"]Render[/URL] method, you can generate the report as mhtml content. Assign this mhtml content in the Body of a MailMessage class in asp.net. You need to set … | |
Re: [QUOTE=coollife;981328] Here i have another class file called clsdbconnection which has connection string function called getconnectiondb(). To use that getconnectiondb() function i need to use the class in the present class prod. How to use the class, I tried all these ways but it gives error [/QUOTE] To use the … | |
Re: You cannot store non-serializable objects in ViewState. It is not supported. But it can be stored in in-proc session. |
The End.