479 Posted Topics
Re: Hi, Always enclose your code by [URL="http://www.daniweb.com/forums/misc-explaincode.html"]BB [/URL]tags. Also you partially posted your code behind class. It does not have any definition for MakeSQL() method. | |
Re: In the link, A class is given to implement custom paging in a gridview control having dynamic templates. The class is inheritated from ITemplate which can be used to create dynamic templates in GridView at runtime. The source does not have any implementation of GridView and its related HTML source. … | |
Re: Check this link: [url]http://csharpaspnet.blogspot.com/2007/02/aspnet-code-to-make-page-read-only.html[/url] | |
Re: Just change 'If rdr.HasRows' to 'If rdr.Read()' Therefore your code should be as follows [icode] If rdr.Read() Then If ddltype.SelectedValue = "Customer" Then Session("ses_dname") = rdr("CusFName") + " " + rdr("CusLName") Session("ses_uid") = rdr("Cusid") Response.Redirect("Home1.aspx") 'ElseIf ' ddltype.SelectedValue = "Delivery Boy" Then ' Session("ses_dname") = rdr("FirstName") + " " + … | |
Re: Does kosar.Rows[i].Cells[0].Text return string value? For example if the argument 'name' is 'Product1' and the value of 'kosar.Rows[i].Cells[0].Text ' is also 'Product', but the condition kosar.Rows[i].Cells[0].Text == name returns false. Did you mean the above scenario? | |
Re: Hope this article will be helpful to you. [URL="http://www.eggheadcafe.com/tutorials/aspnet/3889fc21-1562-4d1b-89e4-cea5576690b2/refresh-web-pages-after-d.aspx"]Refresh Web Pages After Download Completed [/URL] | |
Re: I have tested your code in IE8 and Opera. It is working fine. But it is not working if URL in your question is viewed in IE8 and opera. Also both browsers re emitted with proper HTML. Sorry. I could n't find the problem. | |
Re: If you have enabled impersonation and the users of the application has read/write access to the file upload folder(\B\data ) then you don't need to grant 'Network Service' access to that folder. Did you get any error while uploading files? | |
Re: Check this links: Try to use either Silverlight or Adobe flash player for this requirement. check this links: [url]http://silverlight.net/forums/t/8258.aspx[/url] [url]http://www.adobe.com/devnet/flash/articles/webcam_motion.html[/url] Also see these links: [url]http://www.articlealley.com/article_143243_11.html[/url] [url]http://www.tomshardware.com/forum/21548-3-webcam-functionality-custom-page[/url] [url]http://www.eggheadcafe.com/community/aspnet/17/10106796/how-to-get-live-strea.aspx[/url] [url]http://www.justskins.com/forums/streaming-a-webcam-to-a-remote-webpage-141488.html[/url] | |
Re: Set AutoGenerateColumns property to false. | |
Re: Change page load event as below [code] protected void Page_Load(object sender, EventArgs e) { try { if (!IsPostBack) { Department(); } } catch (TimeoutException ex) { Session.Clear(); Response.Redirect("~/Student/Login.aspx"); } }[/code] | |
Re: Below is the C# code to get the selected items from a CheckBoxList [ICODE] for (int i=0; i<checkboxlist1.Items.Count; i++) { if (checkboxlist1.Items[i].Selected) { //Write your code to store checked items into database } } [/ICODE] | |
Re: Request.Form will not force to ovrewrite the session. Have you identified where the session data is overwritted in your code? If yes, post that code so that somebody can suggest a solution. | |
Re: I already anwered this question in this link [url]http://www.daniweb.com/forums/post907913-3.html[/url] Change connection details as below [icode] <connectionStrings> <add name="MyXT" connectionString="Database=XT;Server=YourServerName;Integrated Security=True" providerName="System.Data.SqlClient" /> [/icode] Replace 'YourServerName' with the name of the server name and instanace name. For example if your server name is HPSERVER1 and SQL server 2000 instance name is … | |
Re: Use this sample HTML Source(.aspx) [ICODE] <%@ Page Language="C#" AutoEventWireup="true" CodeFile="DemoPage1.aspx.cs" Inherits="DemoPage1" %> <!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 id="Head1" runat="server"> <title>GridView Sample By Ramesh S</title> <script type="text/javascript"> function selectUnselectCheckboxes(chkHeaderCtrl, chkBoxIdInGrid, gridViewName) { var chkbox = chkBoxIdInGrid; gridViewName = document.getElementById(gridViewName); var grdCount = gridViewName.rows.length; //the … | |
Re: You can handle this error [CODE] drpcompname.SelectedValue = drd.GetValue(0).ToString(); [/CODE] Replace the above statement with the following code [CODE] ListItem item = drpcompname.Items.FindByValue(drd.GetValue(0).ToString()); if (item != null) item.Selected = true; [/CODE] | |
Re: Try this links: [url]http://www.codeproject.com/KB/aspnet/image_asp.aspx[/url] The code written in that article uses OdbcConnection for connection with MySQL. You can use latest .NET Connector for MySQL, and use the MySql.Data.MySqlClient namespace and change your code appropriately. | |
Re: Hope the following links will be helpful for you. [url]http://www.codeproject.com/KB/aspnet/UsePayPalPaymentInASPNET.aspx[/url] [url]http://www.programmersheaven.com/2/PayPalIntegration[/url] | |
Re: You also use this syntax For SQL Authentication, [ICODE] <configuration> <appSettings/> <connectionStrings> <add name="MyXT" connectionString="Database=YourDatabaseName;Server=YourServerName;User Id=UserName;Password=YourPassword" providerName="System.Data.SqlClient" /> </connectionStrings> <system.web> [/ICODE] For Windows Authentication, [ICODE] <configuration> <appSettings/> <connectionStrings> <add name="MyXT" connectionString="Database=YourDatabaseName;Server=YourServerName;Integrated Security=True" providerName="System.Data.SqlClient" /> </connectionStrings> <system.web> [/ICODE] Replace the following information appropriately YourDatabaseName - Name of the database you want … | |
Re: You can use the strong naming tool with the -T option to extract the public key of an assembly. 1. Open the VS command prompt 2. Type the following command sn -T YourAssemblyName.dll | |
Re: Use NavigateUrl property to move to another page. | |
Re: It seems that your application uses ASP.NET Ajax Framework assembly. Have you installed ASP.NET Ajax Framework 1.0 in your system? | |
Re: [icode]Dim str As String = ConfigurationManager.AppSettings("Web2.Config")[/icode] What is web2.config? is it a file name or name of the connection string in the web.config file? The configuration file of an asp.net application must be web.config. Also the connection string should be placed in <connectionStrings> section in asp.net 2.0. For Example [code]<configuration> … | |
Re: I assume that you are uploading the file to a network share folder '\\platon2\greffe2\09-123'. If you are running your ASP.NET application, then you need to have read/write access for the 'YourMachineName\ASPNET' account to the shared folder. I also assume that you might given access only at folder level and not … | |
Re: Web App: Create a web service in the web application with WebDisplay as a WebMethod. Win App: Add web reference to the windows application. Call WebDisplay method and pass the textbox.text as parameter. | |
Re: Try the solution given in this link: [url]http://forums.asp.net/p/1252014/2392110.aspx[/url] | |
Re: PageMethods must be Public Shared. Change Public Function GetSum() to Public Shared Function GetSum(). | |
Re: You can get this information from Installer.Context Property. Check this link: [url]http://live.mscommunity.net/blogs/notequ/archive/2008/06/05/installer-class.aspx[/url] | |
Re: Try the solution given in this link: [url]http://www.cryer.co.uk/brian/mswinswdev/ms_vbnet_the_connection_has_been_disabled.htm[/url] Also use .NET Connector for MySQL instead of ODBC connector. |
The End.