479 Posted Topics

Member Avatar for Se7Olutionyg

Spelling mistake in the variable declaration 'string fielPath'. Change line 16 in your code as below [CODE] string filePath = " !/UploadImages/" + upImage.FileName; [/CODE]

Member Avatar for mail2saion
0
122
Member Avatar for Mill_22

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 …

Member Avatar for Ramesh S
0
880
Member Avatar for hemgoyal_1990

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 …

Member Avatar for JavaScriptBank
-1
2K
Member Avatar for vytla

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.

Member Avatar for Ramesh S
0
104
Member Avatar for phulchand

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.

Member Avatar for Ramesh S
0
31
Member Avatar for Mongz

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 …

Member Avatar for Ramesh S
0
62
Member Avatar for vytla

You can set the styles using SelectedDayStyle property. [CODE] <asp:Calendar ID="Calendar1" runat="server"> <SelectedDayStyle BackColor="#CC3399" BorderColor="#FF0066" /> </asp:Calendar> [/CODE]

Member Avatar for Ramesh S
0
58
Member Avatar for twilitegxa

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 …

Member Avatar for Ramesh S
0
269
Member Avatar for sandeep_1987

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 …

Member Avatar for vuyiswamb
0
124
Member Avatar for abhipro

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 …

Member Avatar for padtes
0
139
Member Avatar for robbied81

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 …

Member Avatar for Ramesh S
0
129
Member Avatar for twilitegxa

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.

Member Avatar for twilitegxa
0
108
Member Avatar for Batool.Ahmed

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 …

Member Avatar for Ramesh S
0
70
Member Avatar for mIssy_ricco

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 …

Member Avatar for mIssy_ricco
0
101
Member Avatar for bellatrix77

[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 …

Member Avatar for sknake
0
134
Member Avatar for jbisono

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 …

Member Avatar for jbisono
0
130
Member Avatar for jas05

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.

Member Avatar for Ramesh S
0
109
Member Avatar for love_dude1984

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.

Member Avatar for Ramesh S
0
89
Member Avatar for twilitegxa

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> …

Member Avatar for Ramesh S
0
95
Member Avatar for sonia sardana

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"/> …

Member Avatar for Ramesh S
0
113
Member Avatar for sakhi kul
Member Avatar for sakhi kul
0
87
Member Avatar for elidotnet
Member Avatar for elidotnet
0
128
Member Avatar for dre-logics

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) …

Member Avatar for TomW
0
104
Member Avatar for diya0076

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.

Member Avatar for serkan sendur
0
564
Member Avatar for sandeep_1987

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(/ …

Member Avatar for sandeep_1987
0
196
Member Avatar for MikeGore

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 …

Member Avatar for MikeGore
0
102
Member Avatar for cheapterp

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 …

Member Avatar for sknake
0
156
Member Avatar for MikeGore

.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 …

Member Avatar for Ramesh S
0
99
Member Avatar for mansi sharma

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 …

Member Avatar for Ramesh S
0
106
Member Avatar for jrosh

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.

Member Avatar for Ramesh S
0
154
Member Avatar for SID.SIL

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 …

Member Avatar for Ramesh S
0
64
Member Avatar for SQL_n00b

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.

Member Avatar for SQL_n00b
0
444
Member Avatar for sonali.terse

Set the Forms' Icon property to desired icon. [Edit] Vineeth is correct. I didn't refresh before posting. [/Edit]

Member Avatar for Vineeth K
0
222
Member Avatar for Nishara

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. …

Member Avatar for Ramesh S
0
166
Member Avatar for JohnDove

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 …

Member Avatar for Ramesh S
0
93
Member Avatar for brightstar2016

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]

Member Avatar for brightstar2016
0
100
Member Avatar for eeyc

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.

Member Avatar for eeyc
0
135
Member Avatar for anudjoe

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.

Member Avatar for Ramesh S
0
180
Member Avatar for AbhishekGoenka

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.

Member Avatar for Ramesh S
0
219
Member Avatar for virang_21

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 …

Member Avatar for sknake
0
127
Member Avatar for mduduDan

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]

Member Avatar for sknake
0
197
Member Avatar for pdele

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.

Member Avatar for Ramesh S
0
72
Member Avatar for deadmancoder

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 …

Member Avatar for deadmancoder
0
77
Member Avatar for ofir0803

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 …

Member Avatar for Ramesh S
0
162
Member Avatar for atplerry

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.

Member Avatar for Ramesh S
0
107
Member Avatar for f_atencia

If the curreny data is a bound column in the GridView, then use the DataFormatString property to format data.

Member Avatar for serkan sendur
0
142
Member Avatar for IAMEMINEM

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 …

Member Avatar for IAMEMINEM
0
111
Member Avatar for blackbr

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 …

Member Avatar for blackbr
0
877
Member Avatar for coollife

[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 …

Member Avatar for Ramesh S
0
83
Member Avatar for Alexpap

You cannot store non-serializable objects in ViewState. It is not supported. But it can be stored in in-proc session.

Member Avatar for Ramesh S
0
101

The End.