479 Posted Topics

Member Avatar for pt0909

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.

Member Avatar for mail2saion
0
163
Member Avatar for pupilstuff

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

Member Avatar for dnanetwork
0
91
Member Avatar for chrispaul8676

Check this link: [url]http://csharpaspnet.blogspot.com/2007/02/aspnet-code-to-make-page-read-only.html[/url]

Member Avatar for chrispaul8676
0
150
Member Avatar for chrispaul8676

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

Member Avatar for dnanetwork
0
187
Member Avatar for konczuras

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?

Member Avatar for konczuras
0
120
Member Avatar for Ptero

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]

Member Avatar for Ptero
0
350
Member Avatar for jamesgurung

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.

Member Avatar for jamesgurung
0
700
Member Avatar for momber

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?

Member Avatar for Ramesh S
0
74
Member Avatar for Digvijaysinh

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]

Member Avatar for Ramesh S
0
154
Member Avatar for vuyiswamb
Member Avatar for vytla

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]

Member Avatar for kvprajapati
0
157
Member Avatar for fawadkhalil

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]

Member Avatar for fawadkhalil
0
282
Member Avatar for desaiva

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.

Member Avatar for desaiva
0
169
Member Avatar for gingank

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 …

Member Avatar for Ramesh S
0
311
Member Avatar for shireesha1

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 …

Member Avatar for shireesha1
0
332
Member Avatar for Pankaj18

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]

Member Avatar for Ramesh S
0
127
Member Avatar for malikfirose

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.

Member Avatar for Ramesh S
0
318
Member Avatar for dnanetwork

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]

Member Avatar for Ramesh S
0
100
Member Avatar for gingank

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 …

Member Avatar for Ramesh S
0
470
Member Avatar for nccsbim071

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

Member Avatar for nccsbim071
0
179
Member Avatar for gobi_roy
Member Avatar for gingank

It seems that your application uses ASP.NET Ajax Framework assembly. Have you installed ASP.NET Ajax Framework 1.0 in your system?

Member Avatar for Ramesh S
0
399
Member Avatar for chriscross86

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

Member Avatar for Ramesh S
0
1K
Member Avatar for skullish

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 …

Member Avatar for skullish
0
223
Member Avatar for mtyb

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.

Member Avatar for Ramesh S
0
110
Member Avatar for FaridMasood

Try the solution given in this link: [url]http://forums.asp.net/p/1252014/2392110.aspx[/url]

Member Avatar for Ramesh S
0
233
Member Avatar for Kusno

PageMethods must be Public Shared. Change Public Function GetSum() to Public Shared Function GetSum().

Member Avatar for Kusno
0
175
Member Avatar for serkan sendur

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]

Member Avatar for serkan sendur
0
293
Member Avatar for MervinKoops

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.

Member Avatar for MervinKoops
0
1K

The End.