479 Posted Topics

Member Avatar for Alexpap

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.

Member Avatar for Ramesh S
0
303
Member Avatar for sakhi kul

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 …

Member Avatar for sakhi kul
0
115
Member Avatar for itslucky

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 …

Member Avatar for Ramesh S
0
103
Member Avatar for sbanik

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 …

Member Avatar for Ramesh S
0
92
Member Avatar for Ramesh S

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 …

0
319
Member Avatar for paulnamroud

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 …

Member Avatar for paulnamroud
0
130
Member Avatar for coollife

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 …

Member Avatar for Ramesh S
0
55
Member Avatar for calvinkwoo3000

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 …

Member Avatar for Ramesh S
0
90
Member Avatar for php_noob

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]

Member Avatar for Ramesh S
0
126
Member Avatar for meghagoel

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.

Member Avatar for Ramesh S
0
70
Member Avatar for anuj_sharma

Try to run VS 2005 using an account with Administrator Privileges in Vista. Also install Visual Studio 2005 SP1 which may address the problem.

Member Avatar for anuj_sharma
0
100
Member Avatar for AbhishekGoenka

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.

Member Avatar for sknake
0
374
Member Avatar for Dajer

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.

Member Avatar for jatin24
0
293
Member Avatar for Dimansu

Which database do you want to connect with? Refer this link. [url]http://www.connectionstrings.com/[/url]

Member Avatar for sknake
0
88
Member Avatar for alensole

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]

Member Avatar for Ramesh S
0
159
Member Avatar for coollife

It is called CaptchaImage. Have a look into this article: [url]http://www.codeproject.com/KB/aspnet/CaptchaImage.aspx[/url]

Member Avatar for Ramesh S
-1
82
Member Avatar for sakhi kul

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

Member Avatar for Ramesh S
0
137
Member Avatar for bshyama24@gmail

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 …

Member Avatar for Ramesh S
0
78
Member Avatar for diya0076

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 …

Member Avatar for sknake
0
189
Member Avatar for saj_amo

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

Member Avatar for Ramesh S
0
825
Member Avatar for san_crazy

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]

Member Avatar for dnanetwork
0
83
Member Avatar for sandeep_1987

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 …

Member Avatar for dnanetwork
0
99
Member Avatar for coollife

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?

Member Avatar for Ramesh S
0
28
Member Avatar for mIssy_ricco

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

Member Avatar for mIssy_ricco
0
102
Member Avatar for coollife

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

Member Avatar for Ramesh S
0
327
Member Avatar for coollife

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 …

Member Avatar for Ramesh S
0
92
Member Avatar for bshyama24@gmail

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 …

Member Avatar for dnanetwork
0
110
Member Avatar for bshyama24@gmail

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]

Member Avatar for dnanetwork
0
90
Member Avatar for shankbond

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

Member Avatar for dnanetwork
0
82
Member Avatar for coollife

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 …

Member Avatar for carobee
0
118
Member Avatar for t2009

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.

Member Avatar for kvprajapati
0
91
Member Avatar for daytonasteve

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"); } …

Member Avatar for Ramesh S
0
120
Member Avatar for meghagoel

Try [URL="http://freetextbox.com/"]freetextbox.com[/URL] FreeTextBox is a open source HTML editor for ASP.NET.

Member Avatar for Mohit_Agarwal
0
63
Member Avatar for mania_comp

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]

Member Avatar for dalbocha
0
240
Member Avatar for Oebenezer

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]

Member Avatar for Ramesh S
0
95
Member Avatar for manoj_582033

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]

Member Avatar for Ramesh S
0
104
Member Avatar for Derice

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

Member Avatar for sknake
0
1K
Member Avatar for Derice

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.

Member Avatar for sknake
0
68
Member Avatar for shine_jose

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.

Member Avatar for praveenkumarm
0
315
Member Avatar for coollife

Try [URL="http://boxover.swazz.org/"]BoxOver[/URL]. It is a free source which uses javascript / DHTML to show tooltips on a website.

Member Avatar for Ramesh S
0
31
Member Avatar for coollife

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.

Member Avatar for Ramesh S
0
244
Member Avatar for fawadkhalil

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]

Member Avatar for fawadkhalil
0
88
Member Avatar for culebrin

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 …

Member Avatar for culebrin
0
1K
Member Avatar for S2009

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.

Member Avatar for S2009
0
179
Member Avatar for Link82

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]

Member Avatar for sknake
0
160
Member Avatar for pyanbrown

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.

Member Avatar for Ramesh S
0
158
Member Avatar for belkobot

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]

Member Avatar for Ramesh S
0
43
Member Avatar for Endurance Man

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]

Member Avatar for Ramesh S
0
64
Member Avatar for SHAWTY721

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.

Member Avatar for Ramesh S
0
315
Member Avatar for coollife

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 …

Member Avatar for kameswari
0
99

The End.