5,346 Posted Topics
Re: [URL="http://msdn.microsoft.com/en-us/library/system.applicationid.aspx"]ApplicationId[/URL] class. | |
Re: Use Visual Basic Upgrade Wizard (Open the VB 6.0 project with Visual studio 2003/2005/2008). | |
Re: [code] cmd = new SqlCommand("sp_getUsersDetails", con); cmd.CommandType = CommandType.StoredProcedure; cmd.Parameters.Add("@Username", SqlDbType.VarChar); cmd.Parameters["@Username"].Value = txtSearch.Text; cmd.Parameters["@Username"].Direction = ParameterDirection.Input; SqlDataAdapter adp=new SqlDataAdapter(cmd); DataTable dt=new DataTable(); adp.Fill(dt); dgvUsers.DataSource=dt; [/code] | |
Re: [b]>how can we identify the control in the edit mode.[/b] Check the EditIndex property value. | |
Re: [code] int []ar={1,2,3,4,5,,...100},i,j,temp,m; Random rnd = new Random(); for(m=1;m<=20;m++) { i = rnd.Next(1, 100); j = rnd.Next(1, 100); temp=ar[i]; ar[i]=ar[j]; ar[j]=temp; } . ... [/code] | |
Re: [b]>how can i allow user to download an mp3 file on his click in asp.net vb.[/b] You can do so by creating/adding a dynamic link into web-page when that user has been authenticated & authorized. | |
Re: Read this article - [url]http://support.microsoft.com/kb/305035[/url] | |
Re: Set the DefaultValue, [code] <SelectParameters> <asp:FormParameter FormField="ID" Name="ID" Type="Int32" DefaultValue="0" /> <asp:FormParameter FormField="L_Name" Name="L_Name" Type="String" DefaultValue=" " /> </SelectParameters> [/code] | |
Re: [b]>but the dataset in my project is still not updated[/b] Issue a fill method of dataadapter to update the dataset. | |
Re: [b]>asp.net problem[/b] That would be doing your work for you. Read the forum rules. You need to show effort, and what better way than posting the code that you have tried so far? Please read the rules before posting again - [url]http://www.daniweb.com/forums/thread78223.html[/url] and [URL="http://www.daniweb.com/forums/faq.php?faq=daniweb_policies"]rules[/URL]. | |
Re: [b]>how to save image in binary format in vb.net [/b] The file format of Image file is a binary. You can use Copy method of File class. | |
Re: [b]>at the end i should point to the fact that i didn't save images into db and i do not know how and in which type they are saved.[/b] Take a look at this thread - [url]http://www.daniweb.com/forums/thread202562.html[/url] | |
Re: Show us your code please. Please read the rules before posting again - [url]http://www.daniweb.com/forums/thread78223.html[/url] and [URL="http://www.daniweb.com/forums/faq.php?faq=daniweb_policies"]rules[/URL]. | |
Re: [b]>How do I get the listbox to refresh/update its display?[/b] Re-bind the listbox. | |
Re: [b]>,It is used just highlight that searched word on given web page and do the same as like Dani Web search[/b] Have a look at [URL="http://www.nsftools.com/misc/SearchAndHighlight.htm"]JavaScript text highlight[/URL]. | |
Re: Take a look, [code] .... Dictionary<string, string> data = new Dictionary<string, string>() { {"A","1"}, {"B","2"}, {"C","3"} }; private void Form1_Load(object sender, EventArgs e) { foreach (KeyValuePair<string, string> item in data) { toolStripDropDownButton1.DropDownItems.Add(item.Key); } toolStripDropDownButton1.DropDownItemClicked += new ToolStripItemClickedEventHandler(toolStripDropDownButton1_DropDownItemClicked); } void toolStripDropDownButton1_DropDownItemClicked(object sender, ToolStripItemClickedEventArgs e) { MessageBox.Show(data[e.ClickedItem.Text]); } [/code] | |
Re: Download the[URL="http://www.microsoft.com/downloads/en/confirmation.aspx?familyId=2cc30a64-ea15-4661-8da4-55bbc145c30e&displayLang=en"] WMI code creator[/URL]. | |
Re: You need to import System.Data.SqlClient namespace. [code] Imports System.Data.SqlClient .... [/code] Use SqlConnection class to connect, [code] Dim Cn as New SqlConnection("your_connection_string") Cn.Open() .. [/code] | |
Re: You can find some useful detail on tabpanel at - [url]http://www.asp.net/ajax/ajaxcontroltoolkit/Samples/Tabs/Tabs.aspx[/url] | |
Re: Please take a time to read this blog - [url]http://siderite.blogspot.com/2007/07/fixing-tabcontainer-to-work-with.html[/url] | |
Re: Correct me if I am wrong. [code] .. Nameofapp obj=new Nameofapp(arguments); Application.Run(obj); [/code] | |
Re: [b]>how to populate dataGridView Columns with data coming from database when Columns already exist in c#[/b] You can use list or datatable object. [code] .... datagridView1.Datasource=dataTabObject; .... [/code] | |
Re: [b]>can you help me?[/b] Of course. Let us know what's your problem? | |
Re: Line #73 [code] aDBcommand.CommandText = "SELECT * FROM [User] WHERE [password] = @password"; aDBcommand.Parameters.Add("@password", SqlDbType.NVarChar); aDBcommand.Parameters["@password"].Value = password; aDataReader = aDBcommand.ExecuteReader(); if(aDataReader.Read()) { resultMsg = "Successful Login"; return (1); } else { resultMsg = "Invalid Password"; return(2); } } [/code] | |
Re: Using [URL="http://support.microsoft.com/kb/306273"]Directory services.[/URL] Take a look at this codeproject article - [URL="http://www.codeproject.com/KB/system/everythingInAD.aspx"]Everything In Active Directory via C#[/URL] | |
Re: Declare volatile boolean varible to control the thread. [code] volatile bool ServRunning = false; [/code] Check for pending request, [code] private void KeepListening() { //While the server is running while(ServRunning == true){ try { //Accept a pending connection if (tlsClient.Pending()){ tcpClient = tlsClient.AcceptTcpClient(); //Create a new instance of Connection Connection … | |
Re: [b]>do you have code for custom paging with user control in asp.net?[/b] You need to use ViewState or SessionState. | |
Re: Show us the stack trace please. | |
Re: Handle the CellClick event - you will get columnIndex and rowIndex from eventargument object. | |
Re: [b]>and it works fine in my machine but when i test it in other machine it cause error!![/b] You have to copy those database files in another machine too. | |
Re: [b]>The parameter is incorrect[/b] Error says that it doesn't like the values you gave. Something is missing. | |
Re: [b]>plz give me information about adrotator[/b] You can read codeproject article - [url]http://www.codeproject.com/KB/webforms/AdRotator_VT.aspx[/url] | |
Re: [b]>i used asp bound field but it showing along with all fields[/b] Set AutoGenerateColumns="false" | |
Re: [b]>how to replace file when file is open in vb.net using c#.net[/b] Can you maybe provide some more information about what it is you are trying to do? | |
Re: [b]>i want to connect two windows forms in c#[/b] I think you want to pass data/values from one form to another form. You have to write public methods with appropriate arguments inside the form classes. | |
Re: [b]>When i code in a date into the query itself it works but not when passed from a text box. [/b] Use mm/dd/yy date format. | |
Re: [b]>How do I evaulate a variable first, then join it to something.[/b] [URL="http://msdn.microsoft.com/en-us/library/f7ykdhsy%28VS.71%29.aspx"]Reflection.[/URL] | |
Re: [b]>Is that possible in data binding.[/b] Yes. Have a look at - [url]http://www.daniweb.com/forums/tag-datarelation.html[/url] | |
Re: Use For Each statement to traverse One/Two-dim arrays. [code] Dim twoD(,) As Integer = {{11, 22, 3, 2, 3, 1}, {22, 33, 44, 2, 3, 1}, {3, 4, 5, 66, 7, 3}} Dim oneD() As Integer = {3, 33, 1, 2} For Each playerNo As Integer In oneD For Each … | |
Re: [b]>I have a basic knowledge of web development[/b] You need to improve your knowledge by learning XHTML/CSS/JavaScript. | |
Re: [b]>fit to all screen resolutions[/b] Choose % (percent) unit to manage height & width. | |
Re: [b]>An exception occurred while executing a Transact-SQL statement or batch. Incorrect syntax near '/'.[/b] Use [B]GO[/B] instead of [b]/[/b] if your product is MS-SQL server. | |
Re: [b]>Reading individual lines of a CSV into a string array? [/b] Try using System.IO.File.ReadAllLines("file.txt") method. | |
Re: Take a look at codeproject article - [url]http://www.codeproject.com/KB/dialog/PrevInstance.aspx[/url] | |
Re: Please read this article - [url]http://bytes.com/topic/net/answers/871506-determining-size-data-being-sent-socket-server[/url] | |
Re: [b]>can i modify this template?[/b] Yes. You can. Use profile (state management) feature to add more data/details. | |
Re: [b]>What is the best Installer creation software for Windows Forms applications with the least learning curve?[/b] [URL="http://www.c-sharpcorner.com/UploadFile/vishnuprasad2005/SetupProjects12022005022406AM/SetupProjects.aspx"]Setup & Deployment Project[/URL] - VS.NET. | |
Re: [b]>Urgent:How to Split the Data..[/b] [URL="http://msdn.microsoft.com/en-us/library/system.string.split.aspx"]Split[/URL]. | |
Re: [code] GridViewRow row = GridView.Rows[e.RowIndex]; TextBox empno = (TextBox)row.Cells[0].FindControl("txtEmployeeNo"); if(empno==null) return; .... [/code] | |
Re: [b]>how is its work[/b] Code uses JavaScript and cssClass. [b]>pl tell me the step to follow[/b] Learn Xhtml/css/Javascript. |
The End.