5,346 Posted Topics
Re: Try to implement this, [code] Dim tx as TextBox()={TextBox1,TextBox2,TextBox3,Textbox4} Dim dt as Date=Date.Parse(gdate) Dim dy as Integer = dt.Day Dim cell as String="" If dy > 26 Then cell = "A" & Chr(64 + dy Mod 26) Else cell = Chr(dy + 64) End If For i As Integer = … | |
Re: Read this article - [URL="http://www.cryer.co.uk/filetypes/"]http://www.cryer.co.uk/filetypes/[/URL] | |
Re: [b]>.is there anyway to read the OutputStream of a currently running process?[/b] See this - [url]http://www.daniweb.com/forums/thread94882.html[/url] Take a look at a [URL="http://msdn.microsoft.com/en-us/library/system.diagnostics.process.standardoutput.aspx"]MSDN[/URL] Page. | |
Re: [b]>GridView/DetailsView Position on Screen[/b] Two ways: 1. Place/Add that control into another container control that has been positioned at absolute co-ordinates. 2. Use modal dialog to show the content of that control. | |
Re: [b]>How can I load only those states(in combobox2) that corresponds to the country that is selected (in combobox1).[/b] SELECT ... WHERE clause. [code=text] select [states] from tableName where [country]=@country [/code] | |
Re: [b]>Basically I'm confused on how I should do this, as our teacher didn't go over StreamReader.[/b] Here is [URL="http://msdn.microsoft.com/en-us/library/system.io.streamreader%28VS.100%29.aspx"]StreamReader[/URL] class. Open a file and use ReadLine() method. [code] StreamReader sr=new StreamReader("file.txt"); TriviaQuestion obj=new TriviaQuestion(); .... [/code] | |
Re: [code=text] str="SELECT * FROM tblBookings WHERE Lessondate>=#" & BookingsWeekStart & "# And Lessondate<=#" & BookingsWeekEnd & "#" [/code] | |
Re: Password is reserved of Ms-Access. [code] cmd = New OleDbCommand("update [login] SET [password]=@password where [username]=@username", con) [/code] | |
Re: [b]>I've looked everywhere and cannot find any ideas on how to add this datetimepicker control with functionality. Any idea would be really helpful.[/b] Read danny's (ddanbe) [URL="http://www.daniweb.com/forums/thread224588.html"]answer[/URL]. | |
Re: [b]>Now i don't know how to code for parsing...[/b] Take a look at String class methods, especially Split method.. | |
Re: Add following lines into UpdateDa method. [code] connection.ConnectionString = connString sql = "select * from " + table DAHospital = New OleDbDataAdapter(sql, connection.ConnectionString) [/code] | |
Re: Table [b]table1[/b] must have a primary key. | |
Re: Declare an array of objects of TextBox class. | |
Re: Double Thread - [url]http://www.daniweb.com/forums/thread260118.html[/url] Thread Closed. | |
Re: [b]>I don't know much about expression web..[/b] From [URL="http://en.wikipedia.org/wiki/Microsoft_Expression_Web"]Wiki[/URL] : Microsoft Expression Web, code-named Quartz, is a WYSIWYG HTML editor and general web design program by Microsoft. You cannot develop ASP.NET web applications with Expression Web. | |
Re: [b]>how can i save the path of the picture i've browsed[/b] Use OleDb provider classes, [code] .. Dim filePath as String = "SampleFolder\File.Ext" String insQ="Insert Into TableName(id,path) Values (@id,@path)" ... Dim Cn as New OleDBConnection("put_your_connection_String") Dim cmd as new OledbCommand(insQ,cn) cmd.Parameters.AddWithValue("@id",1) cmd.Parameters.AddWithValue("@path",filePath) cn.Open() cmd.ExecuteNoneQuery() cn.Close() [/code] | |
Re: [b]>Can the same algorithm be used in C++?[/b] Yes. If you have any question, start your own thread. Thread closed. | |
Re: You can not add server control using Response.Write method. Use hyperlink, [code] protected void Page_Load(object sender, EventArgs e) { if(Request["file"]!=null){ string path = MapPath("~/upload/" + Request["file"]); File.Delete(path); } DirectoryInfo dInfo = new DirectoryInfo(Server.MapPath("~/upload")); FileInfo[] FilesList= dInfo.GetFiles(); int i = 1; foreach (FileInfo fi in FilesList) { Response.Write("<h2>" + i + … | |
Re: [b]>How can i export the data from text file to datagridview.[/b] Learn [U]System.IO[/U] classes. Read the forum rules. You need to show effort, and what better way than posting the code that you have tried so far? | |
Re: [b]>Please help me i am beginner in asp.net[/b] Before commencing the journey to learn ASP.net, you might want to consider following facts. [LIST=1] [*]You must have a decent understanding of HTML, JavaScript, and CSS. [*]You need to understand the role of Http(Web) Server,Application server, web-browser and Http request (get/post) and … | |
Re: [b]>I've used the HTML input (file)[/b] Add runat="server" attribute to this html tag, [code] ... <input type="file" id="file1" runat="server"/> ... [/code] and use file1.PostedFile.InputStream property to read the content of uploaded file in code-behind. | |
Re: [b]>I need code to connect a remote server...[/b] [code] System.Data.SqlClient.SqlConnection cn; cn=new System.Data.SqlClient.SqlConnection("put_connection_here"); //Test the server connection cn.Open(); cn.Close(); [/code] | |
Re: [code] If target2 = "Date" Then sql = "SELECT * FROM tblBookings WHERE LessonDate =#" & target4 & "#" [/code] OR [code] If target2 = "Date" Then sql = "SELECT * FROM tblBookings WHERE LessonDate = '" & target4 & "'" [/code] PS: You must have to use parametrized query. … | |
Re: [b]>code executed fine..but i can't see the file man.txt anywhere..[/b] Correct me if I am wrong. OP wants to create a file using java.io.File class. There are two instance methods namely - createNewFile() and createTempFile() which create a file. Following code creates a new [URL="http://java.sun.com/javase/6/docs/api/java/io/File.html"]File[/URL] instance by converting the given … | |
Re: Do not put extra blanks before and after the field, [code] string strqry = "UPDATE Registration SET Password = '" + Text2.Text + "', PhoneNo = '" + Text3.Text + "', Email = '" + Text4.Text + "' WHERE (UserName ='" + Text1.Text + "')"; [/code] Do not form SQL-query … | |
Re: Happy Sivaratri to you. [b]>I'm trying all different ways but it doesn't work.[/b] [code] bool changed = false; foreach (ListItem l in DropDownList1.Items) { if (!DropDownList2.Items.Contains(l)) { changed =true; } } if (changed) // else // [/code] | |
Re: [b]>how to generate crystalreports like this using dataset[/b] Steps: 1. Create & configure DataSet. 2. Add crystal report into your project. | |
Re: [b]>how to use this in csharp.net.[/b] [code] object oh=Activator.CreateInstance(Type.GetTypeFromProgID("Sap.logoncontrol.1")); [/code] | |
Re: [b]>Is this possible..or else is it possible with WMI scripting..[/b] It is possible. Use WinAPI (GetDiskFreeSpaceEx) or WMI. | |
Re: [b]>I am getting the following error -ASP.mainmenu_aspx' to 'System.Web.UI.WebControls.ImageButton[/b] Unable to cast. Please post your code. | |
Re: [b]How I stop asking user name and password in every time.[/b] Configure the reportSource object, [code] CrystalReportSource1.ReportDocument.SetDatabaseLogon("username", "password","server_instance","database_name"); [/code] | |
Re: I think some more information is required so that the best course of action can be taken. | |
Re: > any one solve the problem and code I don't think that there is any problem with code you posted here except you didn't use code-tags. > i have 2 image button. Learn to set CommandName property. <asp:CommandField ButtonType="Image" SelectImageUrl="images/icon1.gif" ShowSelectButton="True" CommandName="Action1" /> <asp:CommandField ButtonType="Image" SelectImageUrl="images/icon2.gif" ShowSelectButton="True" CommandName="Action2" /> > … | |
Re: You must read [URL="http://www.daniweb.com/forums/post1067262.html#post1067262"]Narue's[/URL] post about format specifiers in C. | |
Re: [b]>I need to refresh one div in my HTML page and not the entire page, is this possible?[/b] Yes it is possible. Read more about [URL="http://en.wikipedia.org/wiki/Ajax_%28programming%29"]AJAX[/URL]. | |
Re: [b]>How to insert a window Service in ScheduledTask using C#?[/b] [URL="http://ss64.com/nt/at.html"]AT[/URL] Command. Have a look at this [URL="http://www.dotnetspider.com/resources/869-How-schedule-task-using-windows-Services.aspx"]article[/URL]. | |
Re: [b]>The use of destructor is to delete or release any memory that has been allocated.[/b] Nope. It is a method which is automatically invoked when the object is destroyed. | |
Re: Can you maybe provide some more information about what it is you are trying to do? [b]>division of 2 integer[/b] Use [b]\[/b] integer division operator. | |
Re: [b]>I would love to use a control array, but VS2008 doesn't like the idea.[/b] VB.NET has better approach than VBA. You may create an array of object (or Generic List, even a better way than array) of CheckBox class. [b]>what's the best (?? cleanest, neatest, most-elegant, most-maintainable ??) [/b] CheckBoxList … | |
Re: I think you should use logname, [code] ImageUrl='<%# "profileimage.ashx?[COLOR="Red"]loginname[/COLOR]=" + Eval("loginname")%>'/> [/code] | |
Re: [b]>Help me with this..[/b] If you run this COM component in 64 bit environment, you will get that error message. | |
Re: [b]>just wanted to know if u know another solution or if i'm on the right track.[/b] Great! Yes, you are on the right track. You can use ReadXml method of DataSet. | |
Re: Take a look at this lib - [url]http://www.codeplex.com/DotNetZip/SourceControl/changeset/view/29499#432677[/url] | |
Re: Can I ask which type of application are you working on? (Web/Win). | |
Re: [b]>I want to find that checkbox and make invisible in this case. [/b] Use [URL="http://msdn.microsoft.com/en-us/library/system.web.ui.control.findcontrol.aspx"]FindControl()[/URL] Method. | |
Re: [b]>what is the difference between httppathrequest and server.mappath.[/b] I think you want to know about Request.MapPath and Server.MapPath. There is no difference. | |
Re: [b]>I need to send it's value into the database automatically when an user inserts new record in my DetailsView.[/b] Assign a date value to the parameter. | |
Re: [b]>is it possible to do that ?[/b] Yes it is possible. [b]>Please help[/b] We only give help to those who show effort.[URL="http://www.daniweb.com/forums/announcement61-2.html"]~We only give homework help to those who show effort~. [/URL] | |
Re: [b]>how can i do it one at a time?[/b] [code] ... Dim s As String() = System.IO.File.ReadAllLines("file.txt")(rndVal).Split("|") ... [/code] |
The End.