5,346 Posted Topics
Re: [b]>how can i validate a data grid view column to enter only the date in the data grid view column.[/b] If bounded columns. See this code-snippet. [code] DataTable dt=new DataTable(); dt.Columns.Add("BDate",typeof(DateTime)); dataGridView1.DataSource=dt; [/code] | |
Re: You have to create a [icode]handler[/icode] through which you can insert blob (image) data into the current response. Please us show your code - [URL="http://www.daniweb.com/forums/faq.php?faq=daniweb_policies"]Do provide evidence of having done some work yourself if posting questions from school or work assignments[/URL] | |
Re: You need to lean and implement Form based authentication and authorization. | |
Re: Here these are (ASP.NET tutorials.) 1. [URL="http://www.asp.net/web-forms"]WebForm[/URL] 2. [URL="http://www.asp.net/web-pages"]Web pages.[/URL] 3. [URL="http://www.asp.net/mvc"]ASP.NET MVC[/URL] | |
Re: You need to use [URL="http://msdn.microsoft.com/en-us/library/e468hxky.aspx"]SiteMap [/URL]and Menu Control available in ASP.NET. | |
Re: Please read this [URL="http://social.msdn.microsoft.com/forums/en-US/winforms/thread/0b5996ec-daeb-43bd-9a69-eaf25472209f"]FAQ[/URL]. | |
Re: Please don't ask trivial questions. It is not possible to post tons of code and ideas to teach how to create crystal report? Please read the [URL="http://www.daniweb.com/forums/faq.php?faq=daniweb_policies"]forum rule[/URL] before you post anything. 1. Do read the forum description to ensure it is is relevant for your posting 2. Do provide … | |
Re: There are two types of ListView - one is with winform and another is with webform (asp.net). Both these controls uses "Items" collection to add new rows. | |
Re: Basically a web user control file (.ascx) should be stored in the current web application however you may create a [URL="http://webproject.scottgu.com/CSharp/UserControls/UserControls.aspx"]User Control Libraries[/URL] to share .ascx between web-apps. links : 1. [URL="http://support.microsoft.com/kb/324785"]How to share ASP.NET pages and user controls between applications by using Visual C# .NET[/URL] 2. [URL="http://stackoverflow.com/questions/7538194/loading-web-user-controls-from-blob-storage-in-asp-net"]Loading web user … | |
Re: You can use [icode]Visual studio's Server Explorer[/icode] or [icode]Sql Server Management studio express (it is free)[/icode] to attach/detach database file. Also use ADO.NET core API to connect it programatically. | |
Re: No need to install Ms-Access on target machine. Just install appropriate version of .net framework and [URL="http://msdn.microsoft.com/en-us/library/a6cd7c08(v=VS.100).aspx"]MDAC version 2.6[/URL]. [QUOTE]Summary : The .NET Framework Data Provider for OLE DB requires MDAC 2.6 or a later version, and MDAC 2.8 Service Pack 1 (SP1) is recommended. You can download MDAC 2.8 … | |
Re: First of all you have to construct the SELECT statement. [code] Dim sqlr="select column_name1 from table_name where column_name2=@col_value" [/code] Prepare the command object. [code] Dim Cmd as New OleDbCommand Cmd.CommandText=sql Cmd.Connection=Cn 'Assign ref of connection object Cmd.Parameters.AddWithValue("@col_value",textBox1.Text) [/code] Execute the command using ExecuteScalar method. [code] Cn.Open() Dim result=Cmd.ExecuteScalar() Cn.Close() If … | |
Re: Try this, [CODE]int num; int.TryParse(TextBox40.Text,out num); if(check.PostalCodeChecking(DropDownList2.SelectedItem.Text,num)==false) { Label2.Visible = true; }[/CODE] | |
Re: Please make sure that the customer table must have primary key (sr_no). | |
Re: Try this, [code] <script type="text/javascript"> window.onload=function() { var tab1=document.getElementById("tab1"); for(i=1;i<=10;i++) { var bdy=document.createElement("tbody"); bdy.innerHTML="<div><tr><td>Patients's UserName</td><td> X </td></tr><tr><td>System'sResult</td><td>"+ i +"</td></tr></div>"; tab1.appendChild(bdy); } }; </script> <body> <table id="tab1" border="1"></table> </body> [/code] | |
Re: >So, can I go with MVC? Yes. >Is it time consuming if I learn and work? Ask yourself please. >Will it make any difference in web application if I use MVC? Yes. It improves the understanding about MVC. | |
Re: Change the connection string, [code] connectionString= "Database=mariacandelaria;Server=localhost;uid=dboMariaCandelar;pwd=Blu32010;" [/code] | |
Re: Use [URL="http://msdn.microsoft.com/en-us/vbasic/bb737904.aspx#aggsimp"]Aggregate[/URL] Method. [code] Dim s() As String = {"AA", "BB", "CC"} Dim Str As String Str = s.Aggregate(Function(P, Q) P & " " & Q) [/code] | |
Re: Do not add the reference of [icode]System.Configuration.Dll[/icode] in DAL/BAL. You shoul have to pass "connectionString" from your web-app to the Class library's component (class) via method parameter. | |
Re: Try, [code] <asp:Button ID="Button1" runat="server" Text="Name" OnClientClick="return false;" /> [/code] Or Use html button [code] <input type="button" id="Button1" value="button"/> [/code] PS: Do wrap your programming code blocks within [noparse][code] ... [/code][/noparse] tags. | |
![]() | Re: In Web Forms, we have a web user control but in MVC, there isn't. You can use partial views. (Partial view is the same as a user control) |
Re: You can use [icode]document.getElementById()[/icode] method to retrieve the [icode]RadioButtonList[/icode] DOM and then create a DOM using [icode]document.createElement()[/icode], set DOM attributes and append it to the [i]retrieved DOM (radiobuttonlist)[/i]. | |
Re: It is not possible. Instead try to write code which merge data from two sources or use [icode]joins[/icode] with [icode]sql select[/icode] statement to fetch rows from two or more diff. tables. | |
Re: Post web related questions in ASP.NET forum. Hyperlink doesnot support postback. With this link a page_load event of default.aspx will be fired. [code=asp.net] <a href="default.aspx" target="_blank">Click Me</a> [/code] | |
Re: [b]>Does the file path have to be different?[/b] Use [B]MapPath[/B] page property to open/read file. [code] StreamReader sr = new StreamReader(MapPath("~/sldata.txt")); [/code] | |
Re: If your application is developed with Ms-Access's environment then you must have to install MS-ACCESS. If it is not (it is developed using Java, VB or VB.NET) then no need to install Ms-Access. | |
Re: You have to handle SelectedIndexChanged event of gridview, inside the handler assign some selected value of current rows into the `Session` object and redirect the user (page). In "redirected" page, read values from the `Session` object and show them. PS: First of all you have to learn the ASP.NET. | |
Re: >How is it that the server is aware of which ListItem I have selected for processing by the page? No! server is not preserving the state (data) of ASP.NET server controls. >Where is the ListItem selected stored? Every ASP.NET server control is devised with "[URL="http://msdn.microsoft.com/en-us/library/ms972976.aspx"]ViewState[/URL]" mechanism which saves the state … | |
Re: @ktab I'm unable to understand your question. Please elaborate your question. If you want to execute a query then you need to use ADO.NET provider classes. | |
Re: Have you set [icode]<uses-permission android:name="android.permission.INTERNET" />[/icode] in the AndroidManifest.xml file? | |
Re: Welcome to the Daniweb. You need to set [icode]DataMember[/icode] property with the name of table when the Datasource is [icode]DataSet[/icode]. You can create/populate/assign the DataTable instance to the ListBoxes. See the below code. [code] protected void Page_Load(object sender, EventArgs e) { if(!IsPostBack) { SqlDataAdapter adap = new SqlDataAdapter("SP_selectallbooks", con); adap.SelectCommand.CommandType … | |
Re: Please read this posts - 1. [url]http://blogs.msdn.com/b/tolong/archive/2007/03/21/use-visual-studio-to-build-64-bit-application.aspx[/url] 2. [url]http://social.msdn.microsoft.com/Forums/pl-PL/Vsexpressvcs/thread/baf79757-0d8a-4eb9-914e-0551a2705783[/url] 3. [url]http://blogs.msdn.com/b/deeptanshuv/archive/2006/04/11/573795.aspx[/url] | |
Re: I think you have to try [URL="http://msdn.microsoft.com/en-us/library/t71a733d(v=VS.100).aspx"]ClickOnce[/URL] deployment. | |
Re: @Bhaskar Madhav Welcome. Please create a [B]new thread[/B] if you have any particular question and don't forget to read member [URL="http://www.daniweb.com/forums/faq.php?faq=daniweb_policies"]rule[/URL]. | |
Re: As per name suggest the [icode]Mutex[/icode] will stop any process on the same machine accessing it as well, whereas [icode]lock[/icode] will only stop other threads in the same process. Please read a post - [URL="http://www.albahari.com/threading/part2.aspx"]BASIC SYNCHRONIZATION[/URL] by Joseph Albahari | |
Re: Xml preserve the whitespaces so you need to use [icode]Trim()[/icode] to remove blanks from the both side of the string value. [code] hp.Text = b.Trim(); hp.NavigateUrl = a.Trim(); [/code] | |
Re: >how to make stored procedure in vb.net A stored procedure is a subroutine/function written using PL-SQL (Procedural Language - SQL) and it is actually stored in the database data dictionary. Different database products have different PL-SQL syntax. >i'm a newbie vb.net programmer willing to learn the use of stored procedures.. … | |
Re: Use [icode]equals()[/icode] method. Do not use [icode]==[/icode] (equality) operator to compare objects of [icode]String[/icode] class. [code] if (str==null || str.trim().equals("")) { // ... } [/code] | |
Re: You need to set username/password, and other parameters in order to send an email. For instance, [code] try { System.Net.Mail.MailMessage mm=new System.Net.Mail.MailMessage("to@aaa.com","aaa@gmail.com"); mm.Subject = "Subject details"; mm.Body = "Sample..."; SmtpClient sc = new System.Net.Mail.SmtpClient(); System.Net.NetworkCredential auth = new System.Net.NetworkCredential("your@gmail.com", "your_pass"); sc.Host = "smtp.googlemail.com"; sc.Port = 587; sc.UseDefaultCredentials = false; sc.Credentials … | |
Re: SMS is a [icode]service[/icode], and cellular carriers will [icode]charge[/icode] for it and its cost varies by carrier. Take a look at this [URL="http://www.emant.com/681002.page"]post.[/URL] | |
Re: Don't use scriptlets. You should choose to use the JSTL and EL. The use of scriptlets is officially [icode]discouraged[/icode] since JSP 2.0 and the birth of taglibs. As per your requirement, you need to embed title (column) value at href attribute of each anchor tag. [code] <% String paraction=request.getParameter("action"); String … | |
Re: If you are using MySql then use [URL="http://www.mysql.com/products/connector/"]MySql connector API[/URL]. | |
Re: You have to use [icode]JSTL[/icode] and [icode]Java localization API[/icode]. Please take a look at this article - [URL="http://java.sun.com/developer/technicalArticles/Intl/MultilingualJSP/"]Developing Multilingual Web Applications Using JavaServer Pages Technology[/URL]. | |
Re: Steps: 1. Read [b]Items[/b] collection of [b]DataGrid[/b]. [code] foreach (DataGridItem row in DataGrid1.Items) { } [/code] 2. Use ADO.NET data provider to insert each row into a table. | |
Re: You should have to append an attribute is code-behind. [code] if(!IsPostBack) { cmbBAAllocatedTeam.Attributes.Add("onchange", "GetTeamUsersByTeamID('" + DropDownList2.ClientID + "')"); } [/code] | |
Re: You can use System.IO.DirectorInfo, System.IO.DriveInfo, and System.IO.FileInfo classes. [code] System.IO.DriveInfo []drives=System.IO.DriveInfo.GetDrives(); [/code] | |
Re: Use [URL="http://css-tricks.com/6731-css-media-queries/"]css media query[/URL] or [URL="http://css-tricks.com/6206-resolution-specific-stylesheets/"]Different Stylesheets for Differently Sized Browser Windows[/URL] | |
Re: Take a look at - [URL="http://weblogs.asp.net/scottgu/archive/2010/02/07/built-in-charting-controls-vs-2010-and-net-4-series.aspx"]Built-in Charting Controls [/URL] | |
Re: Do not check the "Use optimistic concurrency" while configuring a SqlDatasource. | |
Re: Check the [I]null[/I]. [code] var res = (from p in dc.tblUsers where p.nUserID == _index select p).FirstOrDefault(); if(res!=null) { res.strUserName = txtUserName.Text; res.strPassword = txtPassword.Text; res.dAddDate = Convert.ToDateTime(DateTime.Now.ToShortDateString()); res.bIsDeleted = false; } [/code] |
The End.