5,346 Posted Topics

Member Avatar for mia_islina
Member Avatar for jlivvers

Take a look at MSDN article - [URL="http://msdn.microsoft.com/en-us/library/ms971502.aspx"]Managing an @@IDENTITY Crisis[/URL]

Member Avatar for kvprajapati
0
1K
Member Avatar for kmose

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.

Member Avatar for kvprajapati
0
78
Member Avatar for denmarkstan

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]

Member Avatar for kvprajapati
0
117
Member Avatar for mandar2886

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]

Member Avatar for kvprajapati
0
131
Member Avatar for kifayat128

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); } } …

Member Avatar for kvprajapati
0
141
Member Avatar for Mortinhio

[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]

Member Avatar for kvprajapati
0
43
Member Avatar for patibikash

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.

Member Avatar for searchec
0
117
Member Avatar for Nemo_NIIT

Please read this [URL="http://stackoverflow.com/questions/2583400/stepping-through-asp-net-mvc-in-action-2009-and-stuck-on-nunit-issue"]thread[/URL].

Member Avatar for Amol Ranjere
0
95
Member Avatar for erum

@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]

Member Avatar for kvprajapati
0
94
Member Avatar for gillivt

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]

Member Avatar for gillivt
0
265
Member Avatar for MyPianoSucks

[b]>What is the simplest way to do this?[/b] You have two ways: 1. Oledb 2. Office InterOp.

Member Avatar for MyPianoSucks
0
85
Member Avatar for adams161

Use [B]System.Windows.Forms.Application.ExecutablePath[/B] to get the path of executable.

Member Avatar for kvprajapati
0
125
Member Avatar for vbprogrammer1

MSDN article - [URL="http://msdn.microsoft.com/en-us/library/cd28yf6d(VS.85).aspx"]Data Display Modes in the Windows Forms DataGridView Control[/URL]

Member Avatar for kvprajapati
0
61
Member Avatar for shiyamalapandi

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]

Member Avatar for kvprajapati
0
34
Member Avatar for 5ophie2012
Member Avatar for kvprajapati
0
104
Member Avatar for vbprogrammer1

[code] Dim str = "12 44.55 66.44" Dim result = String.Join(" ", str.Split(New Char() {" "}, StringSplitOptions.RemoveEmptyEntries)) [/code]

Member Avatar for vbprogrammer1
0
139
Member Avatar for abhijitg23

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.

Member Avatar for kvprajapati
0
44
Member Avatar for bharanidharanit

Handle SelectedIndexChanged event and set AutoPostBack=true for DropDownList1.

Member Avatar for crishjeny
0
73
Member Avatar for mshravs

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]

Member Avatar for crishjeny
0
86
Member Avatar for Pari13

[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.

Member Avatar for crishjeny
0
470
Member Avatar for boonfoo

[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; } …

Member Avatar for crishjeny
0
239
Member Avatar for vvashishta
Member Avatar for kanuri1

[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" …

Member Avatar for crishjeny
0
293
Member Avatar for priyanka_2687

[b]>can we have routing in asp.net 3.5????[/b] Do you want know about ASP.NET MVC routing?

Member Avatar for crishjeny
0
306
Member Avatar for kanuri1

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 …

Member Avatar for crishjeny
-1
262
Member Avatar for Mattan360

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]

Member Avatar for kvprajapati
0
2K
Member Avatar for yamini222

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.

Member Avatar for ddanbe
0
125
Member Avatar for Sarafyna
Member Avatar for Dajer

You need to set CommandName and CommandArgument properties of LinkButton and handle RowCommand event of GridView.

Member Avatar for Dajer
0
91
Member Avatar for dogma

Please read this [URL="http://msdn.microsoft.com/en-us/library/cc563937.aspx"]MSDN[/URL] article.

Member Avatar for kvprajapati
0
185
Member Avatar for hennel

Please take a look at [URL="http://www.codeproject.com/KB/office/excel_using_oledb.aspx"]this[/URL] article.

Member Avatar for kvprajapati
0
51
Member Avatar for phoenix32

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.

Member Avatar for kvprajapati
0
195
Member Avatar for vedro-compota

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?

Member Avatar for kvprajapati
0
74
Member Avatar for ashu.innominds

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.

Member Avatar for kvprajapati
0
82
Member Avatar for iamsmooth

[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]."

Member Avatar for kvprajapati
0
64
Member Avatar for srikanth2321
Member Avatar for new SE

@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].

Member Avatar for kvprajapati
0
163
Member Avatar for ashishkumar008

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]

Member Avatar for kvprajapati
0
162
Member Avatar for devloper

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); } …

Member Avatar for crishjeny
0
1K
Member Avatar for Diamonddrake

[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 …

Member Avatar for crishjeny
0
432
Member Avatar for willie7
Member Avatar for willie7
0
112
Member Avatar for batuzai04123

Use [URL="http://msdn.microsoft.com/en-us/library/system.diagnostics.process.aspx"]Process[/URL] class. [code] System.Diagnostics.Process.Start("dfrg.msc") [/code]

Member Avatar for batuzai04123
0
342
Member Avatar for trippinz

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 = …

Member Avatar for crishjeny
0
167
Member Avatar for sam1

[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]

Member Avatar for kvprajapati
0
61
Member Avatar for PinkalPatel

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.

Member Avatar for kvprajapati
0
61
Member Avatar for kengamble

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].

Member Avatar for kvprajapati
0
859
Member Avatar for abhie1990
Member Avatar for zifina

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]

Member Avatar for zifina
0
89
Member Avatar for Mike Bishop

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]

Member Avatar for zifina
0
286

The End.