479 Posted Topics
Re: Try [URL="http://www.asp.net/AJAX/AjaxControlToolkit/Samples/Calendar/Calendar.aspx"]ASP.NET AJAX Calendar Control [/URL] [URL="http://msdn.microsoft.com/en-us/library/add3s294.aspx"]ASP.NET Calendar Web Server Control[/URL] | |
Re: There are some third party code generation tools for asp.net 2.0 in the market. But most of them are develped as a desktop application which will generate asp.net code with layered approach. Check these links: [url]http://www.radsoftware.com.au/codegenerator/[/url] [url]http://www.hkvstore.com/aspnetmaker/[/url] [url]http://www.codesmithtools.com/[/url] | |
Re: Check this link: [url]http://aspalliance.com/774_Maintaining_State_of_CheckBoxes_While_Paging_in_a_GridView_Control.all[/url] | |
Re: Use check constraints. A check constraint allows you to specify a condition on each row in a table. Try this [code] CREATE TABLE YourTableName ( column 1..., column2..., STATUS numeric(1), CONSTRAINT check_status CHECK (STATUS IN (1,2,3)) ); [/code] | |
Re: [QUOTE=coollife;941734]Hi i am assigning binary value from sqltable to byte array The error i am getting is Cannot implicitly convert type 'System.Data.DataColumn' to 'byte[/QUOTE] You are saying that you assign binary value from sqltable to byte array. But ds.Tables["Photo_Det"].Columns["Photos"] will return an object of type 'DataColumn' and your are trying … | |
Re: [CODE] protected void Page_Load(object sender, EventArgs e) { if (!this.IsPostBack) { this.hiddenCurrentUser.Value = Request.LogonUserIdentity.Name; Label1.Text = User.Identity.Name.Replace("DOMAIN\\", ""); ; } } protected void LinkButton1_Click(object sender, EventArgs e) { if (this.hiddenCurrentUser.Value != Request.LogonUserIdentity.Name) { Response.Redirect("Default.aspx"); } else { Response.StatusCode = 401; Response.StatusDescription = "Unauthorized"; Response.End(); } } [/CODE] Use the following … | |
Re: First you need to check whether the value returned by 'date_search' does not contain blank value by putting break point. Also the datetime parsing in C# is based on the local date time settings. Therefore if your local date format is dd/mm/yyyy and if you enter date in mm/dd/yyyy format … | |
Re: Are you referring the textbox in the calendar popup? If you add master page and content place hodler controls, the name of the textbox will be rendered like ctl00_ContentPlaceHolder1_txtYourTextBoxName.. Therefore see the correct name in the view source and put it in your calendar popup code. | |
Re: I have given a solution in your previous thread. Have you tried that? Also post come code so that some one can give you a solution. | |
Re: .NET Framework: An integral Windows component that supports building, deploying, and running the next generation of applications and Web services. Metadata: Information that describes every element managed by the common language runtime: an assembly, loadable file, type, method, and so on. Manifest: An integral part of every assembly that renders … | |
Re: Try this sample code [code] string connectionString = "Database=YourDatabaseName;Server=YourServername;User Id=YourUserId;Password=YourPassword"; string songUrlName = string.Empty; using (SqlConnection connection = new SqlConnection(connectionString)) { connection.Open(); string queryString = "SELECT Song_URL FROM SONG WHERE Song_Id = 100";//Set correct song id SqlCommand command = new SqlCommand(queryString, connection); SqlDataReader reader = command.ExecuteReader(); if(reader.Read()) { songUrlName = … | |
Re: You can use RegularExpressionValidator for accepting only four digits and RequiredFieldValidator for mandatory checking. Hope this sample code will help you. [code] <asp:TextBox ID="txtPostCode" runat="server"></asp:TextBox> <asp:RegularExpressionValidator ID="regExpPostCode" runat="server" ControlToValidate="txtPostCode" ErrorMessage="Must be at least 4 digits" ValidationExpression="\d{4}"> </asp:RegularExpressionValidator> <asp:RequiredFieldValidator ID="reqFieldPostCode" runat="server" ControlToValidate="txtPostCode" ErrorMessage="Post Code must be entered"> </asp:RequiredFieldValidator> [/code] | |
Re: The keypress event is client side(javascript) event. You cannot handle it in C#. But if you want to execute some server side code in keypress event, then handle the client side keypress event and call a web service in it. | |
Re: [QUOTE=mIssy_ricco;940467]i've created a stored procedure to display a gridview. but in my DDL i only want to display the whole column instead of the whole row. can anyone help me?[/QUOTE] Need more inputs to understand your requirement. If you want to display specific fields from the records returned by the … | |
Re: When you run the default.aspx from VS, actually the page is running in a built-in web server of VS 2005/2008 called cassini wev server so that you are able to view in IE. But if you try to open the .aspx directy from IE through Windows Explorer, the .aspx file … | |
Re: Try these links. 1. [URL="http://www.aspfree.com/c/a/Microsoft-Access/Connecting-to-a-Microsoft-Access-database-with-ASPNET/"]Connecting to a Microsoft Access database with ASP.NET [/URL] 2. [URL="http://aspalliance.com/429_CodeSnip_The_Basics_of_MS_Access_with_ASPNET"]CodeSnip: The Basics of MS Access with ASP.NET[/URL] | |
Re: Which version of Subtext you are using? Why don't you use latest version of Subtext (1.9). Check this link: [url]http://www.subtextproject.com/docs/about/requirements.aspx[/url] | |
Re: If the title is consistent across all pages in your web site, you can do it with two ways. 1. Create an UserControl, add a label or a literal control to it to display title text and use it in your pages. Even you can change the title description for … | |
Re: Hi Antinaris, Try these links: [URL="http://www.bmyers.com/public/1073.cfm?sd=30"]The easy way to quickly add live video with audio to your web pages[/URL] [url]http://forums.asp.net/p/152698/478539.aspx[/url] [url]http://www.aspnet-video.com/[/url] [url]http://blogs.msdn.com/jitghosh/archive/2007/11/30/demo-live-streams-in-silverlight.aspx[/url] | |
Re: Check whether this [URL="http://www.dotneteer.com/Weblog/post/2006/02/An-alternative-way-to-refresh-SiteMap-with-SQLSiteMapProvider.aspx"]link [/URL]will be helpful to address your issue. | |
Re: As all radio buttons have the same name 'Premium', Request.Params["Premium"].ToString() will return the value of the radio button selected. For example, [code] TextBox1.Text = Request.Params["Premium"].ToString(); [/code] | |
Re: You can have both XAMPP and VS & SQL Server in the same machine. By default, IIS using port 80. Apache will also try to use port 80 when you install it. To overcome this problem, Stop iis before the installation of apache. You can assign port 80 to either … | |
Re: Using ASP.NET Ajax, you can do partial rendering of your pages. Use ScriptManage and UpdatePanel controls. [code] <%@ Page Language="C#" AutoEventWireup="true" CodeFile="TestPage20.aspx.cs" Inherits="TestPage20" %> <!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 runat="server"> <title></title> </head> <body> <form id="form1" runat="server"> <div> </div> <asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager> <asp:UpdatePanel ID="UpdatePanel1" … | |
Re: The link provided in your post uses Flash animation to locate map. You can also google or yahoo maps in your asp.net application. Check these links: [url]http://dotnet.sys-con.com/node/171162[/url] [url]http://www.developerchoice.com/YahooMapAPI.aspx[/url] [url]http://www.codeproject.com/KB/custom-controls/LatLaysFlat-Part1.aspx[/url] [url]http://www.codeproject.com/KB/scripting/Use_of_Google_Map.aspx[/url] [url]http://www.theurer.cc/blog/2005/11/03/how-to-build-a-maps-mash-up/[/url] | |
Re: 1. Set the button's CommandName property to a string that identifies its function, such as "Insert" or "copy". 2. Create a method for the ItemCommand event of the control. In the method, do the following: a. Check the CommandName property of the event-argument object to see what string was passed. … | |
Re: Your Page_Load does not have proper sytax. Change it as below [code] Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Dim x If Not Page.IsPostBack Then lbl1.Text = "FIRST TIME LOAD The date and time is " & Now() ' Else ' lbl1.Text = "PAGE IS … | |
Re: OnCheckedChanged is a server side event. You are calling a javascript function for a server side event whichi is wrong. Use onchange event which is a client side event. Change your code as below [code] protected void Page_Load(object sender, EventArgs e) { CheckBox1.Attributes.Add("onchange", "javascript: return CheckboxState()"); } [/code] | |
Re: TreeView is a server control, It should be enclosed within <form> tag. Also since you are using Master page, it will have a form tag so that you don't need to use a form tag in child pages where the master page is used. | |
Re: You have used 'Data' as the DataValueField in the DropDownList. Therefore the 'SelectCommand' property should be as below [code] SelectCommand="SELECT [DelName], [Data] FROM [DelBoy_Table]" [/code] Here I assumed that the DelBoy_Table has a column by the name 'Data' | |
Re: Validations in the Validtion controls are executed at both server side and client side. They are injecting client side validations to the HTML content if javascript is enabled at client browser. If javascript is disabled at client browser, the javascript validations are not executed but the validation will always be … | |
Re: You need to use session to store the starting time of the Exam. Also you need to use javascript timer(may be ajax), store the starting time in a javascirpt variable and then check whether the exam time is elapsed at client side. You may need to check the elapsed time … | |
Re: Using a for loop iterate the GridView.Rows collection to see whether the Checkbox is checked. If it is checked, then retrive the data and insert/update into another table. [code] foreach(GridViewRow gridRow in GridView1.Rows) { CheckBox chkBox1 = gridRow .FindControl("yourCheckBoxId"); if(chkBox1.Checked) { //Write code to retrieve the values from GridView row … | |
Re: Check this URL for free web hosting. [url]www.aspspider.com[/url] To learn about hosting an asp.net web site, visit this link: [url]http://www.asp.net/learn/hosting/[/url] | |
Re: Check this link: [url]http://apps.cybersource.com/library/documentation/dev_guides/Microsoft_Site_Server/html/ch02.html[/url] which provide details about subscription to test CyberSource services with your eCommerce applications and to send transactions to a test server. | |
Re: System.Timers.Timer and System.Threading.Timer cannot be used to use a time at client browser. They are intended to use in Desktop application or server side code. Also the System.Web.UI.Time does not have a Start() method. It is sufficient that if you set the Interval property and handle the Tick event in … | |
Re: XML Security is based on Internet Explorer's security zone settings. Your application might work in another machine due security settings of the browser in that machine. Check these links: [url]http://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/thread/acf0f507-307b-4443-bab5-4ad53ff93ed5[/url] [url]http://msdn.microsoft.com/en-us/library/ms762300(VS.85).aspx[/url] | |
Re: [QUOTE=anuj576;931216] int id = Convert.ToInt32(GetID.Text); string CommandText = "SELECT * FROM table1 WHERE emp_bookid=id "; IS the above code correct???[/QUOTE] If emp_bookid is a numeric column and GetID is the name of the TextBox control [code] string CommandText = "SELECT * FROM table1 WHERE emp_bookid = " + GetID.Text [/code] … | |
Re: It seems that the error is not related to Select Case statement. I have checked your code after removing 'errmessage = ' from your Select Case.. statements. It is working without throwing any error. See this below code [code] Select Case errmessage Case "EMPLOYEE" pageerrorlbl.Text = "Sorry! The Employeed Number … | |
Re: If database column bound to the database is boolean type, then the checkbox in the template column will automatically checked. See my code snippet in this link: [url]http://www.daniweb.com/code/snippet1248.html[/url] In the above code snippet, i have bound a checkbox template column to a boolean field in a DataTable which is created … | |
Re: You cannot get the DataSource from GridView. You should store it in the Session or again fill it from database, sort it and then bind to the GridView again. | |
Re: In the <EditItemTemplate>, use textboxes only for those field that you want to edit. Use Label for non-editable fields. | |
Re: Check the solution given by someone in this link: [url]http://www.experts-exchange.com/Web_Development/Internet_Marketing/E-Commerce/Payment_Processing/Q_24057085.html[/url] | |
Re: Does your code throw any error? | |
Re: Try this sample code. [code] protected void Page_Load(object sender, EventArgs e) { Button btn = new Button(); btn.ID = "btnTest1"; btn.CommandArgument = "arg" + i; btn.CommandName = "YourCommandName"; btn.Text = "Delete"; btn.Click += new EventHandler(btnTest_Click); } protected void btnTest_Click(object sender, EventArgs e) { } [/code] | |
Re: Check these links: [url]http://www.aspsnippets.com/post/2009/04/22/Export-GridView-with-Images-from-database-to-Word-Excel-and-PDF-Formats.aspx[/url] [url]http://www.aspsnippets.com/post/2009/04/23/Export-GridView-with-Images-to-Word-Excel-and-PDF-Formats-in-ASPNet.aspx[/url] | |
Re: 1. Install the MySql connector for which is MySQL's fully managed ADO.Net provider. You can download it from [url]http://dev.mysql.com/downloads/connector/net/6.0.html[/url] 2. Use MySql.Data.MySqlClient namespace to connect with MySQL database from your application. Check thse links: [url]http://iseesharp.blogspot.com/2006/09/connecting-mysql-and-c.html[/url] [url]http://bitdaddys.com/MySQL-ConnectorNet.html[/url] | |
Re: This is related to asp.net question. You cannot maximize the browser window through either server side or client code. But there is a work around solution throuh which browser will fit in the whole screen. Put the following code on page load event of your .aspx page. [code] protected void … | |
Re: You have put meta tags between <Head> elements like below [code] <head> <meta name="description" content="Free Web tutorials" /> <meta name="keywords" content="HTML,CSS,XML,JavaScript" /> <meta name="author" content="Hege Refsnes" /> <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1" /> </head> [/code] Refer this link : [url]http://www.w3schools.com/tags/tag_meta.asp[/url] To programattically add to your page [code] // Render: <meta name="keywords" content="Some … | |
Re: 1. Create an dummy .aspx, for example TiffImage.aspx. 2. Write the following code in the Page_Load event of the TiffImage.aspx [code] using System; using System.Collections.Generic; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Drawing; using System.Drawing.Imaging; public partial class TiffImage : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { Response.ContentType … | |
Re: [QUOTE=brightline;619640]I am adding rows to a runtime table as following" [code] dtRecords.Rows.Add("RecordingDate", typeof(DateTime)); [/code] [/QUOTE] You can add rows to a DataTable using the following syntax [code] DataTable.Rows.Add(DataRow) ; DataTable.Rows.Add(Object[] ) ; [/code] But you are passing two arguments. Are you passing column name in you code ('RecordingDate'). How is … |
The End.