479 Posted Topics
Re: Hi Alexpap , Post the complete error message. Becuase the error message that you posted is generic for SMO object. Also Check the following things: 1. Database connection is estabilished before executing 'Create' method for StoredProcedure object by putting a break point. 2. sp.TextBody has correct syntax. | |
Re: This error might be accure by varios reasons. 1. Check whether you are trying to upload a document with size more than 4 MB. Refer this [URL="http://support.microsoft.com/kb/323246/EN-US"]link[/URL]. 2. Also check the size of the ViewState of your page. If the ViewState has a larger size, it might cause this error … | |
Re: The Visual Studio C# Expression Edition does not have crystal report project templates. The Expression Editions of Visual Studio exclude the ability to create reports, connect them to a CrystalReportViewer control, and interact with reports using the Crystal Reports SDK. You need to buy VS 2008 Standard/Professional editions to create … | |
Re: If you are using Oracle database, then you can use System.Data.OracleClient namespace. This namespace does not require ODBC DSN name. I suggest not to use OleDb and Odbc namesspaces which may need to create DSN names. But Microsoft [URL="http://blogs.msdn.com/adonet/archive/2009/06/15/system-data-oracleclient-update.aspx"]announced [/URL]it is deprecating Microsoft OracleClient(System.Data.OracleClient namespace), a Microsoft-built .NET data provider … | |
Sometimes you might need to have checkboxes for each row in a GridView control (like Inbox in Gmail). This code snippet helps to select/unselect all checkboxes in the GridView control by clicking the header checkbox. The selectUnselectCheckboxes() javascript function handles this fuctionality. This function is called in the CheckBox in … | |
Re: You mentioned that the SQL query will take 45 minutes to execute. But you have mentioned that CommandTimeout = 1000. The CommandTimeout is the time in seconds to wait for the command to execute. The default is 30 seconds. Hence you need to increase the timeout to more than (45*60 … | |
Re: You can add keywords specific to your project in the <appSettings> section. For example, [code] <appSettings> <add key="SMTPServer" value="YourSMTPServerName"/> </appSettings> [/code] You can get the value of the keyword in a .NET class as specified below. [code] string strSMTPServer = ConfigurationManager.AppSettings["SMTPServer"].ToString(); [/code] Note that you need to import the System.Configuration … | |
Re: If you use the above method, you need to check this validation in each and every pages of your web application. To avoid this, create a Base Page class which is inheritated from System.Web.UI.Page. All your pages(except login page) in your web application should inherit from this base page. Therefore … | |
Re: If you want to run classic asp pages in the same server where Apache/MySQL installed, just ensure that IIS also installed in that machine. To confugure asp in IIS 6.0, refer this link. [url]http://www.gafvert.info/iis/article/install_iis_6.htm[/url] | |
Re: Various solutions has been in the following link. [url]http://stackoverflow.com/questions/1327079/how-can-move-up-and-move-down-selected-item-programmatically-in-treeview-in-c[/url] I believe it will be useful for you. | |
Re: Try to run VS 2005 using an account with Administrator Privileges in Vista. Also install Visual Studio 2005 SP1 which may address the problem. | |
Re: 1. Since the asp.net application runs under ASPNET account, check whether that account has read/write access on .MDB file. 2. Check if the .MDB file has read-only file attribute set. if it is set read-only , remove it. | |
Re: Which version od VS are you using? Are you using any pre-release(beta, CTP etc) version of Visual Studio? It is known issue in VS 2005. If you are using RTM version of VS, try to update latest service packs. | |
Re: Which database do you want to connect with? Refer this link. [url]http://www.connectionstrings.com/[/url] | |
Re: I think you are looking for [URL="http://www.w3schools.com/TAGS/tag_iframe.asp"]IFrame[/URL]. Refer these links. [URL="http://www.roryhansen.ca/2005/08/22/using-iframes-in-aspnet/"]Using IFrames in ASP.NET[/URL] [URL="http://geekswithblogs.net/ranganh/archive/2005/04/25/37635.aspx"]Loading pages in IFRAME dynamically from codebehind - ASP.NET[/URL] | |
Re: It is called CaptchaImage. Have a look into this article: [url]http://www.codeproject.com/KB/aspnet/CaptchaImage.aspx[/url] | |
Re: Declare an <a> object in the HTML markup as below. See the runat="server" property. So that you can set/get the properties of <a> object from the C# code behind class file. [code] <a id="anchDownloadFile" runat="server">Download</a> [/code] You can assign href in the C# class file as below [code] anchDownloadFile.HRef = … | |
Re: You question has to be more clear. Without knowing the name, url of the web service, how can you consume it in your application. A .net web service is deployed in IIS. Therefore if you know the server name and have remote access to that server, find it by opening … | |
Re: Solution 1. If you have entiries like <add assembly="System.Web.Extensions, Version=1.0.61025 ..../> and System.Web.Extensions, Version=3.5.0.0..../> in your web.config(under <assemblies> section), remove the first one. Solution 2. If you only have assembly entry for version 1.0.61025 in web.config, then change it to version 3.5.0.0 accordingly. Also you need to check whether this … | |
Re: [QUOTE=saj_amo;952347]ok dear this is what i want like vb i do this Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim text As String text = TextBox1.Text MsgBox(Text) End Sub Private Sub TextBox1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles TextBox1.KeyDown If e.KeyCode = Keys.Enter … | |
Re: Hope these links will helpful to you. [URL="http://www.microsoft.com/DOWNLOADS/details.aspx?familyid=8BDAA836-0BBA-4393-94DB-6C3C4A0C98A1&displaylang=en"]Visual Studio 2008 and .NET Framework 3.5 Training Kit[/URL] [URL="http://www.microsoft.com/DOWNLOADS/details.aspx?familyid=355C80E9-FDE0-4812-98B5-8A03F5874E96&displaylang=en"].NET Framework 3.5 Enhancements Training Kit[/URL] [URL="http://www.asp.net/LEARN/3.5-videos/"]ASP.NET 3.5[/URL] | |
Re: Session.RemoveAll() and Session.Clear() are same. Both methods removes all keys and values from the session-state collection. But the current Session is not cancelled. That is Session.SessionID will be the same before and after calling these two methods. But Session.Abandon() will cancel the current Session. That is, Once the Abandon method … | |
Re: In your [URL="http://www.daniweb.com/forums/thread213834.html"]previous thread, [/URL]I had suggested to use the sample code from the following link: [url]http://programming.top54u.com/post/Store-and-Display-Images-from-MS-Access-Database-Using-C-Sharp.aspx[/url] Have you tried that? | |
Re: [QUOTE=mIssy_ricco;957312]hi all. i've been doing a checkbox that is controlled by bitmaps. it is successful when i checked the check box and updated it. but it is not successful when i try to uncheck and update it. it will be as if it was checked like before. below is my … | |
Re: You can download a sample code from the following link which helps you store binary data into MS Access Database. [url]http://programming.top54u.com/post/Store-and-Display-Images-from-MS-Access-Database-Using-C-Sharp.aspx[/url] The data type of the column to store binary data in MS Access should be [B]OLE Object[/B]. | |
Re: PlaceHolder control serves as container to add controls dynamically to a web page at run time. The PlaceHolder control does not produce any visible output and is used only as a container for other controls on the Web page. Therefore you cannot use it to show popup window. You can … | |
Re: If you need read-only access to the data, something often done inside an ASP.NET application, using a DataReader makes sense. For example, you are filling the textboxes/label controls in a page, then you can use data reader. You can use datasets if you are going to persist the data between … | |
Re: You cannot customize it to restrict the file type by extension if you use <input type='file'> tag. But you can validate server side whether the file has the extension of doc, docx and pdf. Check this link: [url]http://www.codeproject.com/KB/aspnet/netimageupload.aspx[/url] | |
Re: How do say that you session was expired? Did you set duration for session timeout? The Session ID is randomly generated by ASP.NET and stored in a non-expiring session cookie in the browser. The Session ID value is then sent in a cookie with each request to the ASP.NET application. … | |
Re: I assume that category id is set as identity column in your database table. Identity column values will not be decreased after a delete operation. It is not adviceable to decrease the primary/unique id values during a database operation. Assume that you have 100 records and if you are deleting … | |
Re: It can be done by implementing delegate in the user control. Check this link. [url]http://aspnet.4guysfromrolla.com/articles/031704-1.aspx[/url] The above article explains about calling a page method from user control. You should apply the same procedure to your parent user control. | |
Re: The listbox control 'ListBox5' is inside the FormView control. You should find control in the FormView control not the Page. So change your code like below... [code] <script runat="server"> protected void FormView1_ItemInserted(object sender, FormViewInsertedEventArgs e) { ListBox myControl = (ListBox)FormView1.FindControl("ListBox5"); string urlpart = myControl.SelectedItem.Text; HttpContext.Current.Response.Redirect("thanks" + urlpart + ".aspx"); } … | |
Re: Try [URL="http://freetextbox.com/"]freetextbox.com[/URL] FreeTextBox is a open source HTML editor for ASP.NET. | |
Re: Check these links. [url]http://www.freevbcode.com/ShowCode.Asp?ID=1350[/url] [url]http://www.eggheadcafe.com/community/aspnet/14/10052088/check-this.aspx[/url] | |
Re: You can also use the SelectTab() method to programmatically select a particular tab. For example, To move to the first tab, [code] yourTabControlName.SelectTab(0) [/code] | |
Re: Are you using IIS 7? If yes, Try the solution given in the following link. [url]http://mvolo.com/blogs/serverside/archive/2007/12/08/IIS-7.0-Breaking-Changes-ASP.NET-2.0-applications-Integrated-mode.aspx[/url] | |
Re: The following code will help you to get the MAC address of client PC using JavaScript. [code] <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Getting MAC Address From Javascript(IE Only)</title> <script language="javascript"> function showMacAddress(){ var obj = new ActiveXObject("WbemScripting.SWbemLocator"); var s = obj.ConnectServer("."); var properties = s.ExecQuery("SELECT * FROM Win32_NetworkAdapterConfiguration"); … | |
Re: Even if the focus is in TextBox1, after clicking the button, the focus moves to the button(TextBox1 will lose the focus). Therefore write code for the onclick event of the button to fill 'abc' to TextBox1 and set the focus again to the TextBox1. | |
Re: I assume that you opened a popup window from a parent page. If you want to close the poup window, use window.close or self.close javascript functions. | |
Re: Try [URL="http://boxover.swazz.org/"]BoxOver[/URL]. It is a free source which uses javascript / DHTML to show tooltips on a website. | |
Re: I don't think there is an automated way to convert HTML page into aspx page. Just create a blank aspx page and copy everything between head tag(or body tag) into the page. Change the HTML controls to server controls based on your needs. | |
Re: Try these links: [url]http://forums.asp.net/t/987935.aspx[/url] [url]http://www.obout.com/grid/grid_move_rc_up_down.aspx[/url] [url]http://www.webswapp.com/categories/ASPNET2/DataGridReorder/Default.aspx[/url] | |
Re: Set the timeout properties of WCF application to increase the default timeout. This can be done on the client side programmically or with a client side App.Config or a Web.config. You can configure the OperationTimeout property for Proxy in the WCF client code. For example [code] DirectCast(service, IContextChannel).OperationTimeout = New … | |
Re: The actual error cannot be identified based on this error message. Set the mode attribute to off in the <customErrors> attribute in web.config. It will display detailed error message. Also check whether any error message is logged in Event Viewer. | |
Re: Check these links: [URL="http://www.sqlservercentral.com/articles/Stored+Procedures/2977/"]Passing a Table to A Stored Procedure[/URL] [URL="http://dotnethitman.spaces.live.com/Blog/cns!E149A8B1E1C25B14!222.entry?sa=344444645"]Table-Valued parameter in SQL Server 2005[/URL] In SQL Server 2008, [URL="http://msdn.microsoft.com/en-us/library/bb510489.aspx"]Table-Valued Parameters (Database Engine)[/URL] | |
Re: ASP.NET is a web application framework, a subset of .NET Framework, which allows programmers to build dynamic web sites, web applications. This Framework provides components/classes to build a web site easily. To use this built-in components and classes, you need to write code using either C# or VB.NET. | |
Re: Refer these articles. [URL="http://www.scottlogic.co.uk/blog/wpf/2008/12/wpf-datagrid-detecting-clicked-cell-and-row/"]WPF DataGrid – detecting the column, cell and row that has been clicked[/URL] [url]http://blogs.msdn.com/vinsibal/archive/2008/11/05/wpf-datagrid-new-item-template-sample.aspx[/url] | |
Re: System.Web.Extensions 3.5.0.0 will automatically installed if you install .NEt Framework 3.5. The Full Redistributable Package can be downloaded from the following link: [url]http://download.microsoft.com/download/6/0/f/60fc5854-3cb8-4892-b6db-bd4f42510f28/dotnetfx35.exe[/url] Since Service Pack 1 for .NET 3.5 has also been released, i suggest you to download the the .NET Framework with SP1 from the following link: [url]http://download.microsoft.com/download/2/0/e/20e90413-712f-438c-988e-fdaa79a8ac3d/dotnetfx35.exe[/url] | |
Re: The reason for the error cannot be identified based on the error message. Set the 'mode' attribute of customErrors tag to off. It will display some detailed error message. Post that message to identify the issue. | |
Re: You are referring a local file system in web application. It is not adviceable. Copy your image file to your asp.net web site folder and refer like [code] Image1.ImageUrl= "4014_thumb.jpg"; //if you have the file in the root folder [/code] [code] Image1.ImageUrl= "/images/4014_thumb.jpg"; //if you have the file in the … |
The End.