479 Posted Topics

Member Avatar for mohankumar554

Are you using Excel COM object model to generate any Excel document in your application? If so, then the server, where you deployed the application, should also have Excel installed.

Member Avatar for Ramesh S
0
235
Member Avatar for Alex John

Check these links: [url]http://www.w3.org/2005/Talks/11-steven-css-advanced/[/url] [url]http://www.yourhtmlsource.com/stylesheets/advancedcss.html[/url]

Member Avatar for Ramesh S
0
42
Member Avatar for sixtus

[QUOTE] [code] Dim filename As String = Path.GetFileName(filepath) Dim filepath As String = Server.MapPath(Request("file")) Dim file As System.IO.FileInfo = New System.IO.FileInfo(filepath) [/code] [/QUOTE] In the above code segment, You have used the variable filepath before it is declared in the second statement. How did you compile your code without any …

Member Avatar for sixtus
0
103
Member Avatar for vuyiswamb

This error means that there should be a unique index for some field in _RegistrationXM table. Therefore check any duplicate value is found in the XML data for that field. Either remove unique index for that field(s) or remove duplicate data for the column(s) in the XML.

Member Avatar for vuyiswamb
0
90
Member Avatar for VinayRok

If you want to do this at server side code in the Page_Load event Do the following steps: 1. Make your <body> tag server accessible by setting runat='server' and an id. [code] <body id="bodyDemoPage" runat="server"> [/code] 2. And then add the following code in your Page_Load event. [code] protected void …

Member Avatar for almostbob
0
276
Member Avatar for nccsbim071

You can do that using URL re-writing. Read this article: [url]http://weblogs.asp.net/scottgu/archive/2007/02/26/tip-trick-url-rewriting-with-asp-net.aspx[/url] Especially check Approach 3 in the above article. Other references: [url]http://msdn.microsoft.com/en-us/library/ms972974.aspx[/url] [url]http://www.codeproject.com/KB/ISAPI/URLRewriting.aspx[/url] [url]http://www.simple-talk.com/dotnet/asp.net/a-complete-url-rewriting-solution-for-asp.net-2.0/[/url]

Member Avatar for dnanetwork
0
245
Member Avatar for Pankaj18

The index of the first column starts with 0 and last index is 'Total columns' -1. That is if your GridView has 7 columns then the last index will be 6. Also you can hide a column in a GridView by the following method [CODE] GridView1.Columns[6].Visible = false; [/CODE]

Member Avatar for Pankaj18
0
678
Member Avatar for Matsui

If this is the compleye code, you didn't close the <script> tag. Also just check whether you closed <form> and <body> tags. If it is closed, it is working in my system.

Member Avatar for kvprajapati
0
97
Member Avatar for ashkan3030

First Request.QueryString["ID"]) is not stored in Session as you are storing the shopingCart to the Session before adding the ID to that object. You code should look like [CODE] List<string> shopingCart = (List<string>)Session["shopingCart"]; if (shopingCart == null) { shopingCart = new List<string>(); } shopingCart.Add(Request.QueryString["ID"]); Session["shopingCart"] = shopingCart; [/CODE]

Member Avatar for kvprajapati
0
327
Member Avatar for ebiemami

Hi, If Profile object is used, then we need to use SQL Server. Because Profile data will be stored in SQL Server. Also basically Profile object is used to web site personalization. I would recommend Session to pass custom objects between pages. To store an object to sesssion [code] Employee …

Member Avatar for kvprajapati
0
263
Member Avatar for pupilstuff

[QUOTE][code=asp.net]<%--<asp:ImageButton ID="imgBtnNext" runat="server" Style="vertical-align: middle;" ImageUrl="next.jpg" CommandArgument='<%# Eval("Next")%>' OnClick="click" CommandName="Page" />--%> </PagerTemplate> </asp:GridView> </asp:Panel>[/code][/QUOTE] In your code, I can see only closing tag ([icode]</asp:Panel>[/icode]) of ASP.NET Panel control. Where is the opening tag? Also you are always using asp classic syntax in asp.net source. This will lead to complication when …

Member Avatar for kvprajapati
0
84
Member Avatar for noorashegh

Set the NavigateUrl property of TreeNode object to the URL like 'www.mysite.com/default.aspx?onenode' and Target property to the name of the IFrame. Hope this will help you.

Member Avatar for Kusno
0
152
Member Avatar for ctyokley

Yes. you have to use a SELECT statement with WHERE condtion before inserting the user information. See the sample code below [code] 'Change your database name and path Dim strConnection As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\TestDB.MDB" Dim con As OleDbConnection = New OleDbConnection(strConnection) con.Open() 'construct your where condtion Dim strQuery1 As …

Member Avatar for ctyokley
0
430
Member Avatar for Rockpile

Is this ok? [code] int width = 15; for (int i = 0; i < 5; i++) { string newString = String.Format("{0," + width + ":D}{1," + width + ":D}", i + 1, squares[i]); System.Console.WriteLine(newString); } [/code]

Member Avatar for Rockpile
0
118
Member Avatar for cousar sultana

Check this link: [url]http://www.aspdotnetcodes.com/GridView_Insert_Edit_Update_Delete.aspx[/url] It has step by step details to update, insert records in a GridView.

Member Avatar for Ramesh S
-1
54
Member Avatar for laghaterohan

To a file upload control to a PlaceHolder control [code] FileUpload fu1 = new FileUpload(); fu1.ID = "fileUpload1"; PlaceHolder1.Controls.Add(fu1); [/code]

Member Avatar for Ramesh S
0
51
Member Avatar for alokshri67

[QUOTE] Case "2" strSQL = "UPDATE USER SET STATUS='1' WHERE password='" & txtpw.Text & "' and userid='" & txtid.Text & "'" DA = New System.Data.Odbc.OdbcDataAdapter(strSQL, CON)[/QUOTE] You have to use OdbcCommand.ExecuteNonQuery() to execute your UPDATE statement against your database. See the below code [CODE] Case "2" strSQL = "UPDATE USER …

Member Avatar for Ramesh S
0
95
Member Avatar for sambafriends

[QUOTE] public static index operator++(index x) { x.count++; return count; }[/QUOTE] The return type of this function is of type 'index'. But you return an integer type. This fucntion should be written as [code] public static index1 operator ++(index1 x) { x.count++; return x; } [/code]

Member Avatar for Ramy Mahrous
0
177
Member Avatar for dquiles

You have ro check the value of the variable @sql and execute the SELECT query stored in it. Pass necessary parameters to your stored procedure and print the @SQL variable from your query. Put a print statement before EXEC as below PRINT @SQL This will print the content of @SQL …

Member Avatar for dquiles
0
197
Member Avatar for Donish

Check this links also: [url]http://www.codeproject.com/KB/aspnet...tInASPNET.aspx[/url] [url]http://www.programmersheaven.com/2/PayPalIntegration[/url]

Member Avatar for dnanetwork
0
1K
Member Avatar for chrispaul8676

The statement 'SpecifyRolesStep.FindControl("RoleList")' may not return a control. Check that by putting a break point.

Member Avatar for chrispaul8676
0
148
Member Avatar for bubbleT

Try this javascript function [code] <script> show=1 function minimize(){ moveBy(2000,2000) show=0 } function reshow(){ if(show==0{ moveBy(-2000,-2000) show=1 } } </script> [/code] You need to put a onfocus=reshow() to the body tag. Also, call the minimize() function in onclick event of a button. A complete example [code] <%@ Page Language="C#" AutoEventWireup="true" …

Member Avatar for bubbleT
0
343
Member Avatar for Dizzzy

[QUOTE=Dizzzy;922596]Ok i changed it to [code] SELECT * FROM Calendar WHERE Day='27' [/Code] This seems to work but now i get another error message "The data types text and varchar are incompatible in the equal to operator"[/QUOTE] Comparison operators can be used on all expressions except expressions of the text, …

Member Avatar for Ramesh S
0
149
Member Avatar for nccsbim071

To use Visual Web Developer 2008 Express for Silverlight 2 development 1. You need to install Microsoft [URL="http://go.microsoft.com/?linkid=7653519"]Visual Web Developer 2008 Express with SP1[/URL]. 2. Install [URL="http://www.microsoft.com/downloads/details.aspx?FamilyId=c22d6a7b-546f-4407-8ef6-d60c8ee221ed&displaylang=en"]Microsoft® Silverlightâ„¢ 2 Tools for Visual Studio 2008 SP1[/URL]. This will add C# and VB.NET Project templates for Silverlight 2. To use Visual Studio …

Member Avatar for nccsbim071
0
105
Member Avatar for agent154

Check this article: [url]http://abdullin.com/journal/2008/12/13/how-to-find-out-variable-or-parameter-name-in-c.html[/url]

Member Avatar for Ramesh S
0
113
Member Avatar for sonia sardana

You have put the break statement after closing the 'if' block and before the closing braces of 'for' loop. So the' for' loop will be executed only once and the counter lCount++ will never be executed. Therefore it displays 'Unreachable code detected' error. You should put the break statement inside …

Member Avatar for sonia sardana
0
132
Member Avatar for thirumca

Store the symbols as images and then display it in your web page. or you can use some third party components. Try this links: [url]http://stackoverflow.com/questions/796890/whats-the-best-way-to-write-mathematical-equations-on-the-web[/url] [url]http://www.terradotta.com/MathIWYG.html[/url] [url]http://www.mathtran.org/[/url]

Member Avatar for thirumca
0
102
Member Avatar for kothai86

Pass the information as querystring to your target web page. In page load, get values from the querystring and store it in your control.

Member Avatar for rafaelbelliard
0
78
Member Avatar for chathuD

[QUOTE=chathuD;918035]if i need to retreave mor than one valu (lets say pasword and the first name ) is this code correct. SqlCommand sqlcmd = new SqlCommand("Select Password,firstname from <Table name> Where UserName = '"+textBox1.Text+"' first name = '"+textBox2.Text+", con);[/QUOTE] You are fetching password and first name based on user name. …

Member Avatar for chathuD
0
412
Member Avatar for sednauser

Check this [url]http://www.thoroughbredsoftware.com/datasheet/ptweb.php[/url]

Member Avatar for Ramesh S
0
38
Member Avatar for blackcorner

Refer this link: [url]http://www.aspcode.net/Ajax-loading-animation-with-JQuery-and-ASPNET.aspx[/url]

Member Avatar for Ramesh S
0
69
Member Avatar for pt0909
Member Avatar for Kusno

Check this link [url]http://it.toolbox.com/blogs/coding-dotnet/sorting-the-fields-in-crystal-report-programmatically-16201[/url]

Member Avatar for Ramesh S
0
97
Member Avatar for yash777

Refere this sample code [code] <%@ Page Language="C#" AutoEventWireup="true" CodeFile="DemoPage7.aspx.cs" Inherits="DemoPage7" %> <!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>Minimize IE</title> <script language="javascript"> function validateTextBoxes() { //store trimmed values of textboxes into variables var txt1 = document.getElementById('TextBox1').value.replace(/^\s+|\s+$/g, ''); var txt2 = document.getElementById('TextBox2').value.replace(/^\s+|\s+$/g, ''); var …

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

You are storing date value as a string of characters in the backend database. Check the date value stored in the database has time part. If it has time part, then you need to format the calender value before inserting into database.

Member Avatar for dnanetwork
0
208
Member Avatar for yash777

Check these links: [url]http://forums.asp.net/t/1245928.aspx[/url] [url]http://silverlight.net/themes/silverlight/community/gallerydetail.aspx?cat=3[/url] [url]http://designwithsilverlight.com/2008/01/31/photo-gallery-wall/[/url]

Member Avatar for Ramesh S
0
82
Member Avatar for ctyokley

You have put a single quote before the file name(Data Source='~\FDXDB3.mdb) which is not closed properly. It should be like below [code] SqlConnectionString = "PROVIDER=Microsoft.Jet.OLEDB.4.0;Data Source='~\FDXDB3.mdb';User ID=Admin;Password=;" [/code]

Member Avatar for ctyokley
0
150
Member Avatar for SID.SIL

Post your code segment where you are getting issue. It will be helpful to give you a solution.

Member Avatar for Ramesh S
0
117
Member Avatar for aliensXY

You can use CommandName and CommandArgument for this requirement. A Simple example HTML source [icode] <form id="form1" runat="server"> <h3>Button CommandName Example</h3> Click on one of the command buttons. <br /><br /> <asp:Button id="Button1" Text="Sort Ascending" CommandName="Sort" CommandArgument="Ascending" OnCommand="CommandBtn_Click" runat="server"/> &nbsp; <asp:Button id="Button2" Text="Sort Descending" CommandName="Sort" CommandArgument="Descending" OnCommand="CommandBtn_Click" runat="server"/> <br /><br …

Member Avatar for aliensXY
0
303
Member Avatar for anuj_sharma

Try the following logic. [code] DateTime m_StartDate, m_EndDate; DateTime db_StartDate, db_EndDate; //Write code m_StartDate and m_EndDate from the web page /* m_StartDate = Start Date from the web page m_EndDate = End Date from the web page */ /* * Write code to get Start Date and End Date from …

Member Avatar for Ramesh S
0
86
Member Avatar for bubbleT

Try either [code] window.location.reload(true); [/code] or [code] window.opener.document.forms(0).submit(); [/code] before you close the popup window.

Member Avatar for bubbleT
0
115
Member Avatar for miry

If you are able to get numbers from the file into data reader, then you can also convert the data reader into data table. Refer this code [icode] SqlConnection cn = new SqlConnection("Server=(local);database=Northwind;user id=sa;password=;"); string sql = "Select * from Employees"; SqlCommand cmd = new SqlCommand(sql, cn); cn.Open(); SqlDataReader dr …

Member Avatar for miry
0
164
Member Avatar for krokodajl

Hope this will help you [ICODE] XmlDocument xmldoc = new XmlDocument(); xmldoc.LoadXml("<?xml version='1.0' ?>" + "<MyFields>" + "</MyFields>"); XmlNode root = xmldoc.DocumentElement; XmlElement firstName = xmldoc.CreateElement("MyField1"); firstName.InnerText = "John"; root.AppendChild(firstName); XmlElement lastName = xmldoc.CreateElement("MyField2"); lastName.InnerText = "Smith"; root.AppendChild(lastName); XmlElement myField3 = xmldoc.CreateElement("MyField3"); myField3.InnerText = "Field3 Value"; root.AppendChild(myField3); XmlElement myField4 = …

Member Avatar for krokodajl
0
163
Member Avatar for SreekanthVenkat

Try this [icode] if (!IsPostBack) { MenuItem menuHome = new MenuItem("Home"); MenuItem menuMusic = new MenuItem("Music"); menuMusic.NavigateUrl = "Music.aspx"; MenuItem menuClassical = new MenuItem("Classical"); menuClassical.NavigateUrl = "Classical.aspx"; menuMusic.ChildItems.Add(menuClassical); MenuItem menuRock = new MenuItem("Rock"); menuRock.NavigateUrl = "Rock.aspx"; menuMusic.ChildItems.Add(menuRock); menuHome.ChildItems.Add(menuMusic); MenuItem menuMovies = new MenuItem("Movies"); menuMovies.NavigateUrl = "Movies.aspx"; MenuItem menuAction = new …

Member Avatar for Ramesh S
0
95
Member Avatar for snehaparekh

I suggest you to use asp.net menu control to manually create static menus based on you Flash menu. Also check this third party tools: [url]http://www.flashkeeper.com/publishhtml.htm[/url] [url]http://www.geovid.com/[/url]

Member Avatar for Ramesh S
0
42
Member Avatar for culebrin

Write the following code in RowDataBound event of the GridView control. This code is to attach onChange event of the file upload control to the click event of image button control. [ICODE] imgRespuesta = e.Row.FindControl("imgProDiagUploadRespuesta")fupRespuesta = e.Row.FindControl("fupvcProDiaRutaRespuesta") fupRespuesta.Attributes.Add("onchange", "return document.getElementById('" + imgRespuesta.ClientID + "').click();") [/ICODE] Write this code in RowCreated …

Member Avatar for culebrin
0
466
Member Avatar for Pankaj18

Refere these links: [url]http://articles.techrepublic.com.com/5100-10878_11-6164310.html[/url] [url]http://www.databasejournal.com/features/mssql/article.php/3626056/Database-Mail-in-SQL-Server-2005.htm[/url]

Member Avatar for sknake
0
127
Member Avatar for vuyiswamb

Post some code from the code behind class file related to this issue. It will help us to understand the problem. When the SelectedIndexChanged event is fired, Just check whether the DataBind method for the Grid is reached by putting a break point on that.

Member Avatar for vuyiswamb
0
114
Member Avatar for mohankumar554

Check this links: [url]http://msdn.microsoft.com/en-us/library/ms998360.aspx[/url] [url]http://www.codeproject.com/KB/aspnet/LDAP.aspx[/url]

Member Avatar for Ramesh S
0
49
Member Avatar for ariez88

Try this [CODE] SELECT TOP 100 * FROM Your_Table_Name ORDER BY NEWID() [/CODE] This will pick 100 records randomly from a SQL Server 2005 table.

Member Avatar for mail2saion
0
128

The End.