5,346 Posted Topics
Re: Please check/verify the content of csv file. | |
Re: Take a look at MSDN article - [URL="http://msdn.microsoft.com/en-us/library/ms971502.aspx"]Managing an @@IDENTITY Crisis[/URL] | |
Re: Please read MSDN article - [URL="http://msdn.microsoft.com/en-us/library/ms972976.aspx"]Understanding ASP.NET View State.[/URL] and [URL="http://forums.asp.net/p/1520061/3650098.aspx"]this[/URL] thread. | |
Re: Hey! I love flashy sites. Recently, I just came across this wonderful article. - [URL="http://sixrevisions.com/productivity/10-practical-ways-to-bust-through-web-designers-block/"]10 Practical Ways to Bust Through Web Designer’s Block[/URL] | |
Re: You need to use [b]IsPostBack[/b] property. [code] protected void Page_Load(object sender, EventArgs e) { conn = new SqlConnection(); conn.ConnectionString = "Data Source=PC-4\\SQLEXPRESS;Initial Catalog=master;Integrated Security=True"; if(!IsPostBack) { loaddata(); showdata(); } } [/code] | |
Re: Handle [b]Command[/b] Event of button. [code] protected void Page_Load(object sender, EventArgs e) { for (int i = 1; i <= 3; i++) { Button btn = new Button() { Text = "Test Button" + i, CommandName = "Button" + i, CommandArgument =i.ToString() }; btn.Command += new CommandEventHandler(btn_Command); PlaceHolder1.Controls.Add(btn); } } … | |
Re: [b]>I want to ask about the purpose of ASP.NET Language and for whom it has been designed,,,[/b] ASP.NET is a web application framework. Its not a language. Take a look at - [url]http://en.wikipedia.org/wiki/ASP.NET[/url] | |
Re: Welcome patibikash. You need to show effort, and what better way than posting the code that you have tried so far? Please read [URL="http://www.daniweb.com/forums/faq.php?faq=daniweb_policies"]member rules[/URL] and [URL="http://www.daniweb.com/forums/announcement61-2.html"]homework[/URL] policy at daniweb. | |
Re: Please read this [URL="http://stackoverflow.com/questions/2583400/stepping-through-asp-net-mvc-in-action-2009-and-stuck-on-nunit-issue"]thread[/URL]. | |
Re: @erum Keep practice on parameterized queries. [code] .... Dim hotel_book As String = "insert into hotelbooking (Userid, hotel_requirement_Types, singleroom, single_no_room,doubleroom,double_no_room,checkin_date,checkout_date) values (@Userid, @hotel_requirement_Types, @singleroom, @single_no_room,@doubleroom,@double_no_room,@checkin_date,@checkout_date)" cmd.CommandText=hotel_book cmd.Parameters.AddWithValue("@Userid",userid) ...... [/code] | |
Re: datareturn.aspx page [code] <%@ Page Language="VB" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <script runat="server"> Sub page_load() Dim data = Request.Form("FoxyData") Response.Write(data) End Sub </script> [/code] | |
Re: [b]>What is the simplest way to do this?[/b] You have two ways: 1. Oledb 2. Office InterOp. | |
Re: Use [B]System.Windows.Forms.Application.ExecutablePath[/B] to get the path of executable. | |
Re: MSDN article - [URL="http://msdn.microsoft.com/en-us/library/cd28yf6d(VS.85).aspx"]Data Display Modes in the Windows Forms DataGridView Control[/URL] | |
Re: Please take a look at these articles: 1. [url]http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/2f45f2ea-bcf8-4d23-9f15-5caf7ebdc2ef.mspx?mfr=true[/url] 2. [url]http://www.15seconds.com/issue/030806.htm[/url] 3. [url]http://weblogs.asp.net/scottgu/archive/2010/09/13/automating-deployment-with-microsoft-web-deploy.aspx[/url] | |
Re: [code] if (storedtext.IndexOf(TextBox1.Text)!=-1) // else // [/code] | |
Re: [code] Dim str = "12 44.55 66.44" Dim result = String.Join(" ", str.Split(New Char() {" "}, StringSplitOptions.RemoveEmptyEntries)) [/code] | |
Re: Please take a look at [URL="http://stackoverflow.com/questions/381145/how-to-select-a-large-amount-of-records-in-sql-server"]this[/URL] thread. | |
Re: Handle SelectedIndexChanged event and set AutoPostBack=true for DropDownList1. | |
Re: Use Session, Click event handler of Button1 on page1.aspx [code] void Button1_click(object s,EventArgs e) { Session["no"]=10; Sesson["name"]="M.R"; Response.Redirect("Page2.aspx"); } [/code] Code in page_load handler of page2.aspx [code] if(Session["no"]!=null) { Response.Write(Session["no"] + " " + Session["name"]); } [/code] | |
Re: [b]>displaly all the file dynamicallly below of "FILE" control in asp.net[/b] Sorry, I'm not quite following the problem. There is no "FILE" control in asp.net. [b]>Uploading file and dispaly name of flie and remove Link.[/b] You may use System.Directory.GetFiles(path) method to have a list of files. | |
Re: [b]>But i don't not know how to create the function for the dynamic button when it is clicked.[/b] Try this, [code] protected void Page_Load(object sender, EventArgs e) { int i = 0; if (Request["Button1"] != null) { if (Session["btn"] != null) { i = int.Parse(Session["btn"].ToString()); i++; Session["btn"] = i; } … | |
Re: Set DropDownList1.Enabled=false. | |
Re: [b]>please give me the code to avoid blank spaces within a string as given above[/b] [b]>iam using asp.net with vb.net[/b] Use JavaScript. Handle the [b]keypress[/b] event of textbox. eg, [code] ... <head> <script type="text/javascript"> function dothis() { var t=window.event.keyCode; if(t==32) // space window.event.keyCode=0; } </script> </head> ... ... <asp:TextBox id="TextBox1" … | |
Re: [b]>can we have routing in asp.net 3.5????[/b] Do you want know about ASP.NET MVC routing? | |
Re: kanuri1, Please read the rules before posting again, in particular the 'keep it organized' one - [B]Do not flood the forum by posting the same question more than once (ie in multiple forums).[/B] If you hit 10 infraction points your account gets an automatic ban, so it is worth obeying … | |
Re: You need to convert byte array results to hex. [code] byte []result=t.ComputeHash(System.Text.Encoding.UTF8.GetBytes("abc")); foreach (byte bt in result) Console.Write(bt.ToString("X2")); [/code] | |
Re: Please take a look at [URL="http://stackoverflow.com/questions/4094179/best-way-to-convert-string-to-decimal-separator-and-insensitive-way"]this[/URL] thread. | |
Re: These are links : [url]http://tinyurl.com/27lcvtd[/url] | |
Re: You need to set CommandName and CommandArgument properties of LinkButton and handle RowCommand event of GridView. | |
Re: Please read this [URL="http://msdn.microsoft.com/en-us/library/cc563937.aspx"]MSDN[/URL] article. | |
Re: Please take a look at [URL="http://www.codeproject.com/KB/office/excel_using_oledb.aspx"]this[/URL] article. | |
Re: Use absolute path of database (.sdf). [code] con = new oledb.oledbConnection("Provider = Microsof.ACE.OLEDB.12.0"; data source = c:\folder\Attendance.accdb; Persist Security Info = False;") [/code] Or checkout content of the database under Bin\Debug folder. | |
Re: Sorry, I'm not quite following the problem. My understanding from your description is that you want to use Dynamic Link Library (DLL). Isn't that? | |
Re: Take a look at [URL="http://stackoverflow.com/questions/4321718/how-to-run-an-application-as-a-service-for-windows-mobile-6/4351883#4351883"]this[/URL] thread. | |
Re: [b]>ListView with multiple lined items on each index[/b] It is called "[URL="http://msdn.microsoft.com/en-us/library/system.windows.forms.listview.ownerdraw.aspx"]custom drawing for a ListView control[/URL]." | |
Re: Please attach/paste the content of XML document here. | |
Re: @crishjeny Please do not resurrect threads that are years old. By doing so you run the risk of confusing current posters. If you have any questions please ask. You are welcome to start your own threads. Have a look at forum [URL="http://www.daniweb.com/forums/faq.php?faq=daniweb_policies"]rules[/URL]. | |
Re: You might want to read wiki docs: 1. [url]http://en.wikipedia.org/wiki/Binary_numeral_system[/url] 2. [url]http://en.wikipedia.org/wiki/Computer_numbering_formats[/url] | |
Re: Add [B]CheckBoxList[/B] markup into .aspx [code] <form id="form1" runat="server"> <asp:CheckBoxList ID="CheckBoxList1" runat="server"> <asp:ListItem>Item1</asp:ListItem> <asp:ListItem>Item2</asp:ListItem> <asp:ListItem>Item3</asp:ListItem> </asp:CheckBoxList> <asp:Button ID="Button1" runat="server" Text="Button" /> </form> [/code] and in code-behind (.cs), handle the [B]Click[/B] event [code] protected void Button1_Click(object sender, EventArgs e) { foreach (ListItem item in CheckBoxList1.Items) if (item.Selected) Response.Write("<br/>" + item.Text); } … | |
Re: [b]> I would like to store the member credentials in an xml file[/b] Yes you can do that. There are number of ways/methods to store/retrieve and compare the credentials. Tutorials: 1. Forms Authentication Using An [URL="http://msdn.microsoft.com/en-us/library/1b1y85bh(vs.71).aspx"]XML Users File[/URL] 2. Examining ASP.NET's Membership, Roles, and Profile - [URL="http://www.4guysfromrolla.com/articles/120705-1.aspx"]Part 1 to Part … | |
Re: Place a page named "Default.aspx" in each folder including root of the web-app. | |
Re: Use [URL="http://msdn.microsoft.com/en-us/library/system.diagnostics.process.aspx"]Process[/URL] class. [code] System.Diagnostics.Process.Start("dfrg.msc") [/code] | |
Re: I suggest you to use DataSet. Methods of DataSet; WriteXml and ReadXml are used to store/load data into/from xml document. [code] public partial class Form1 : Form { public Form1() { InitializeComponent(); } DataSet ds = new DataSet("Info"); DataTable dt = new DataTable("Record"); string xsd = @"c:\cs\sample.xsd"; string xml = … | |
Re: [b]>would i be able to use ajax with silverlight application or not?[/b] Yes you can. [B]Articles/Threads[/B] 1. [url]http://www.nikhilk.net/Ajax-vs-Silverlight-and-NET.aspx[/url] 2. [url]http://forums.silverlight.net/forums/p/109228/251717.aspx[/url] | |
Re: You should probably use a reporting tool (crystal report/ microsoft report / free tools) to make templates that allow you or users to correctly position the fields with regards to the pre-printed stationery. | |
Re: Read the documentation. (ILMerge.DOC). Use target switch: [code=text] ilmerge [/lib:directory]* [/log[:filename]] [/keyfile:filename [/delaysign]] [/internalize[:filename]] [/t[arget]:(library|exe|winexe)] [/closed] [/ndebug] [/ver:version] [/copyattrs [/allowMultiple]] [/xmldocs] [/attr:filename] ([/targetplatform:<version>[,<platformdir>]]|v1|v1.1|v2|v4) [/useFullPublicKeyForReferences] [/zeroPeKind] [/wildcards] [/allowDup[:typename]]* [/allowDuplicateResources] [/union] [/align:n] /out:filename <primary assembly> [<other assemblies>...] [/code] Code project [URL="http://www.codeproject.com/KB/dotnet/Gilma_-_Gui_for_ILMerge.aspx"]article[/URL]. | |
Re: Please show us your code work. | |
Re: Use WindowMedia control to play video onto the Windows Form but I suggest you to use WPF application. Take a look at - [url]http://windowsclient.net/[/url] | |
Re: Enclosed single quote for non-numeric value. [code] cmd.CommandText = "INSERT INTO stock(Stockcode, StockDescription,sellprice) VALUES('" & StockcodeV & "','" & stockdescV & "','" & SellPricev & "')" [/code] Or, use parameterized query [code] ... cmd.Connection = con cmd.CommandText = "INSERT INTO stock(Stockcode, StockDescription,sellprice) VALUES(@p1,@p2,@p3)" cmd.Parameters.AddWithValue("@p1",StockcodeV) cmd.Parameters.AddWithValue("@p2",stockdescV) cmd.Parameters.AddWithValue("@p3",SellPricev) cmd.ExecuteNonQuery() .... [/code] |
The End.