- Strength to Increase Rep
- +11
- Strength to Decrease Rep
- -2
- Upvotes Received
- 58
- Posts with Upvotes
- 52
- Upvoting Members
- 32
- Downvotes Received
- 8
- Posts with Downvotes
- 7
- Downvoting Members
- 5
Re: Refer these links. [URL="http://msdn.microsoft.com/en-us/library/system.net.networkinformation.physicaladdress.aspx"]PhysicalAddress Class[/URL] [URL="http://social.msdn.microsoft.com/Forums/en-US/netfxnetcom/thread/1344dad4-dffe-486c-bf30-1b75d21fc9ba"]Get MAC address of client machine using C#[/URL] Also try this code snippet. [CODE] using System; using System.Windows.Forms; using System.Management; . . . private void button1_Click(object sender, EventArgs e) { ManagementObjectSearcher objQuery = null; ManagementObjectCollection queryCollection = null; try { objQuery = new ManagementObjectSearcher("SELECT * … | |
Re: You can use a RegularExpression validation for this purpose. [code] <asp:TextBox ID="TextBox1" runat="server" /> <asp:RegularExpressionValidator ID="regExTextBox1" runat="server" ControlToValidate="TextBox1" ErrorMessage="Minimum password length is 10" ValidationExpression=".{10}.*" /> [/code] | |
Re: Try this [URL="http://www.a2zdotnet.com/View.aspx?id=50"]link[/URL]. It describes how to send email using yahoo business account. | |
Re: Hi, Please provide more details about your requirements/issues in asp.net mvc. Also refer the following links if helpful. [Treatment of spaces-only input in ASP.NET MVC](http://www.yumasoft.com/node/152) http://stackoverflow.com/questions/4282572/asp-net-mvc-razor-extra-space | |
Re: Hi, Put a breakpoint and step into the class in Visual Studio and try to find which line throws the error. Also check the field names enclosed in double quotes between lines 16 and 22 in your code. | |
Re: The default features of asp.net server controls does not provide the functionalities which you speficied in your question. you need to put a lot of efforts to achieve what you want. Instead, you can look into the following third party components. [URL="http://www.infragistics.com/dotnet/netadvantage/aspnet.aspx#Overview"]Infragistics[/URL] [URL="http://www.telerik.com/products/aspnet-ajax.aspx"]Telerik[/URL] [URL="http://www.componentart.com/"]ComponentArt[/URL] | |
Re: Try the solution given in the following link. [URL="http://forums.asp.net/t/1356425.aspx"]Convert Viedo to .Flv Using c#.net on Web[/URL] Also refer this link. [URL="http://successontheweb.blogspot.com/2008/10/using-aspnet-to-convert-wmv-to-flv.html"]Using ASP.Net To Convert WMV To FLV Using FFMPEG [/URL] | |
Re: Are you using older version of MS Access? If yes, check this link: [url]http://support.microsoft.com/default.aspx?scid=kb;EN-US;283881[/url] | |
Re: Hi, I Would suggest to use Entity Framework as it has many new features over ADO.NET. 1. In EF, objects are mapped with database tables. So you don't need to write stored procedures, queries in SQL to fetch data. You can use Linq queies against objects in C# which will … | |
Re: Hi, Try to use satellite assemblies to implement this. Using satellite assemblies, you can place the resources for difference languages in different assemblies, and the correct assembly is loaded into memory only if the user elects to view that application in that language. [URL="http://msdn.microsoft.com/en-us/library/21a15yht%28VS.71%29.aspx"]Creating Satellite Assemblies[/URL] [URL="http://www.asp.net/(S(ywiyuluxr3qb2dfva1z5lgeg))/learn/videos/video-40.aspx"]Create a Multi-Lingual Site … | |
Re: If you want to add Master Page to your existing web pages, the do the following things: 1. set the MasterPageFile property to your .master file name. 2. Remove the form tage from the child page if the master page already has the form tag. 3. Wrap controls in the … | |
Re: Setting the z-index property (HTML) using CSS can address this problem. The CSS class would look something like this: [code=css].adjustedZIndex { z-index: 1; }[/code] And the Menu should look like as below [code]<asp:Menu ID="Menu1" runat="server"> <DynamicMenuStyle CssClass="adjustedZIndex" /> </asp:Menu>[/code] The z-index has to be something higher. Some fixes have been … | |
Re: Hi, Hope the following links will help you. [URL="http://stackoverflow.com/questions/543179/how-do-i-use-htaccess-to-redirect-an-aspx-page-to-a-php-page"]How do I use .htaccess to redirect an aspx page to a php page?[/URL] [URL="http://stackoverflow.com/questions/4661591/redirect-any-page-that-has-an-aspx-ending-to-a-new-url"]Redirect any page that has an .aspx ending to a new url.[/URL] | |
Re: Hi, Does this error occur in IIS or Visual Studio? If IIS, which version are you using? or are you opening a web site from IIS in Visual Studio? Please provide more details. This will happen if you run the web application from IIS and the application pool is set … | |
Re: Hi, If you just want to show different light color based on the information logged into database by the device, you can just try to use <img> html tag with images for each color. Try the following steps: 1. Display an image in <img> tag in an asp.net page. Have … | |
Re: The error could be occured in the following line. `Dim gender As Integer = Convert.ToInt32(e.Row.Cells(5).Text*)` Put a breakpoint and see if the value of **e.Row.Cells(5).Text** is a number or empty string. It seems the index of the data cells(GridView column) may not be 5 or returns a non numeric value … | |
Re: Try this code. .aspx code [CODE] <%@ Page Language="C#" AutoEventWireup="true" CodeFile="DemoPage32.aspx.cs" Inherits="DemoPage32" %> <!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"> <div> Quantity : <asp:TextBox ID="txtQuantity" runat="server"></asp:TextBox><br /> Date : <asp:TextBox ID="txtDate" runat="server"></asp:TextBox> <asp:CustomValidator ID="cvValidateDate" runat="server" ErrorMessage="Date must … | |
Re: Check these links: [url]http://archive.devnewz.com/2004/0127.html[/url] [url]http://www.codeproject.com/KB/custom-controls/ewcounter.aspx[/url] | |
Re: Hi, Hope the solution given in the following link will help you. [URL="http://stackoverflow.com/questions/5018044/asyncfileupload-postback-causes-double-upload"]AsyncFileUpload postback causes double upload[/URL] Someone has reported the same issue in CodePlex site [URL="http://ajaxcontroltoolkit.codeplex.com/workitem/26889"]here[/URL]. But it is closed as the issue cannot be reproduced. | |
Re: Hi, Check if the web.config file has references to both 10.0.0.0 and 9.0.0.0 versions of ReportViewer control. If it contains, remove the unwanted version details and try again. Create a new website/web application, add reference to the appropriate version of ReportViewer control and take a look at the entries that … | |
Re: Hi, You can try to use GridView to display records in tabular format and on clicking a link in the GridView, Use a FormView to display the details of the row clicked. Please look at the following links. [URL="http://www.codeproject.com/KB/aspnet/GridViewFormView.aspx"]GridView-FormView (Master/Detail) Control[/URL] [URL="http://www.asp.net/general/videos/lesson-8-working-with-the-gridview-and-formview"]Working with the GridView and FormView[/URL] | |
Re: Hi, Set the defaultbutton property in the <form> tag to the ID of button that should get fired when user press enter key to submit the form. For example, [CODE] <form id="form1" runat="server" defaultbutton="btnLogin"> [/CODE] | |
Re: Hi, If you are using third party components such as [URL="http://cutesoft.net/asp.net+chat/"]CuteChat[/URL] they will offer the API to maintain and display the list of users entered the chat room. If you build your own chat application, you need to maintain the user list in Session or Database or XML file. Check … | |
Re: Hi, Please refer the following link. [URL="http://www.codeproject.com/KB/webforms/MultiFeatureGridView.aspx"]GridView with an AJAX rating control, DropDownLists, JavaScript to enable/disable rows - an exercise[/URL] Also 'Urgent' is not a meaningful title for a thread. Please keep the thread title brief and descriptive. | |
Re: Hi, No web.config is found in the sample project downloaded from the above link. You need to add a web.config and add connection string as below: [CODE] <connectionStrings> <add name="NorthwindConnectionString" connectionString="Data Source=serverName;Initial Catalog=Northwind;User ID=userName;Password=password" providerName="System.Data.SqlClient"/> </connectionStrings> [/CODE] You need to specify the correct server name, database, user id and password … | |
Re: Hi, You are creating the <tr> within the for loop. Thus it creating multiple table rows. Try to put it before the for loops. | |
Re: Hi, 1. On page load, Fill a DataTable with records retrieved from Database. 2. Store the DataTable in Session. Also bind the DataTable to the GridView. 3. In the Edit/Update events, Get the DatatTable from Session, Update/Edit the appropriate record in the DataTable, Store it in Session again, Re-bind the … | |
Re: Hi, Declare the Connection object myConn before the try clause and initialize it within the try. I suggest to change your code as follows: [CODE] protected void Names() { OleDbConnection myConn = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0; Data Source=e:\\project\\Db.mdb"); OleDbDataReader myReader = null; string strQuery = "SELECT TOP 1 Name FROM Names"; try … | |
Re: Hi, Perform the following steps and try again. 1. Login to the system using local administrator account. 2. Add your site to the 'Trusted sites' list. IE->Tools menu->Internet Options->Security tab. 3. Enable UAC at the default level. 4. Reboot if required. | |
Re: Hi, I don't think that the issue occurs due to the server setup and hosting. Because you are saying that the chain commission calculation is skipped only for few cases. The code may not be handling all the scenarios to perform the calculation. Where do you handle the calculation? In … |