479 Posted Topics
Re: 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. | |
Re: Check these links: [url]http://www.w3.org/2005/Talks/11-steven-css-advanced/[/url] [url]http://www.yourhtmlsource.com/stylesheets/advancedcss.html[/url] | |
![]() | Re: [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 … ![]() |
Re: 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. | |
Re: 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 … | |
Re: 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] | |
Re: 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] | |
Re: 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. | |
Re: 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] | |
Re: 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 … | |
Re: [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 … | |
Re: 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. | |
Re: 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 … | |
Re: 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] | |
Re: 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. | |
Re: To a file upload control to a PlaceHolder control [code] FileUpload fu1 = new FileUpload(); fu1.ID = "fileUpload1"; PlaceHolder1.Controls.Add(fu1); [/code] | |
Re: [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 … | |
Re: [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] | |
Re: 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 … | |
Re: Check this links also: [url]http://www.codeproject.com/KB/aspnet...tInASPNET.aspx[/url] [url]http://www.programmersheaven.com/2/PayPalIntegration[/url] | |
Re: The statement 'SpecifyRolesStep.FindControl("RoleList")' may not return a control. Check that by putting a break point. | |
Re: 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" … | |
Re: [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, … | |
Re: 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 … | |
Re: Check this article: [url]http://abdullin.com/journal/2008/12/13/how-to-find-out-variable-or-parameter-name-in-c.html[/url] | |
Re: 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 … | |
Re: 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] | |
Re: Pass the information as querystring to your target web page. In page load, get values from the querystring and store it in your control. | |
Re: [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. … | |
Re: Check this [url]http://www.thoroughbredsoftware.com/datasheet/ptweb.php[/url] | |
Re: Refer this link: [url]http://www.aspcode.net/Ajax-loading-animation-with-JQuery-and-ASPNET.aspx[/url] | |
Re: Do you want to pass paramters to crystal report or SSRS? | |
Re: Check this link [url]http://it.toolbox.com/blogs/coding-dotnet/sorting-the-fields-in-crystal-report-programmatically-16201[/url] | |
Re: 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 … | |
Re: 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. | |
Re: 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] | |
Re: 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] | |
Re: Post your code segment where you are getting issue. It will be helpful to give you a solution. | |
Re: 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"/> <asp:Button id="Button2" Text="Sort Descending" CommandName="Sort" CommandArgument="Descending" OnCommand="CommandBtn_Click" runat="server"/> <br /><br … | |
Re: 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 … | |
Re: Try either [code] window.location.reload(true); [/code] or [code] window.opener.document.forms(0).submit(); [/code] before you close the popup window. | |
Re: 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 … | |
Re: 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 = … | |
Re: 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 … | |
Re: 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] | |
Re: 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 … | |
Re: 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] | |
Re: 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. | |
Re: Check this links: [url]http://msdn.microsoft.com/en-us/library/ms998360.aspx[/url] [url]http://www.codeproject.com/KB/aspnet/LDAP.aspx[/url] | |
Re: 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. |
The End.