21 Posted Topics
Re: Always use a dataset to store data temporarily, which is fetched from any source. Datasets can hold data from database table in the same format. | |
Re: **The script in Head tag.** <script> function Script_CalledFrom_CodeBehind(servertime) { alert('Current Server Time: ' + servertime); } </script> **Code behind** Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "Server Time", "javascript:Script_CalledFrom_CodeBehind('" + DateTime.Now.TimeOfDay + "');", true); Write the JavaScript in the Head section, else the browser won't recognize the script and will not be [called in page load](http://www.encodedna.com/2012/11/call-javascript-codebehind.htm) … | |
Re: The first one is an image of a gridview and if that is how you want it to be then check this [article](http://www.encodedna.com/2013/06/sum-of-gridview-column-in-footer.htm). An example of a "CheckListBox" Vb.Net Option Explicit On Imports System.Data.SqlClient Public Class Form1 Dim SqlAdapter As System.Data.SqlClient.SqlDataAdapter Dim ds As New DataSet Dim objConn As SqlConnection … | |
Re: Just few links you can try. [Bind data with GridView using SqlDataSource in Asp.Net](http://www.encodedna.com/2012/12/binding-gridview-using-sqldatasource.htm) [GridView Example with Row Edit and Delete Options](http://www.encodedna.com/2013/01/asp.net-gridview-edit-delete.htm) | |
Re: You can show the PDF file in a "iframe" and by [opening a new window](http://www.encodedna.com/2012/12/open-new-window-gridview.htm). The "source" of the iframe should the path of the "PDF" file. If you are using "window.open" then a new window will popup. There is no way you can open the file in a Tab … | |
Re: You can use JQuery to [dynamically add or remove any HTML element](http://www.encodedna.com/2013/07/dynamically-add-remove-textbox-control-using-jquery.htm) you can think of. It is really simple and worth trying. In fact you can design an entire web page dynamically using [JQuery methods and events](http://www.encodedna.com/category/jquery/). | |
Re: An article on [Multiple fileupload in asp.net](http://www.encodedna.com/2013/02/multiple-file-upload-in-aspdotnet.htm) can help you. It works fine on Chrome and firefox. Worth trying. | |
Re: Use databound rather. This ones in VB.Net. [Click Here](http://www.encodedna.com/2013/01/asp.net-gridview-edit-delete.htm) | |
Re: JQuery with Ajax has simplified [Autocomplete](http://www.encodedna.com/2013/04/autocomplete-textbox-using-jquery.htm) textbox. No need to write too many codes at server side. Though WebService is outdated, it still helps in many ways, if you want to keep it simple and light weight. But yes, just be a little carefull with the business logics you write. | |
Re: This [article](http://www.encodedna.com/2013/01/asp.net-import-from-excel.htm) is in C# and Vb.net and its simple. It uses SQLBulkCopy class. | |
Re: Hi, Check this link for an answer for finding a control in a Repeater control. [Repeater Control Example](http://www.encodedna.com/2013/02/repeater-control-in-aspdotnet.htm) | |
Re: Hello all, Please check the link for an article and demo on Partial PostBack using AJAX controls. [PostBack Using UpdatePanel and ScriptManager.](http://www.encodedna.com/2013/02/aspdotnet.postback-updatepanel.htm) | |
Re: Single radio button selection can be done in two ways. 1) Client side validation using JavaScript and JQuery. 2) Validating from Code behind. Validate from Code Behind. <Columns> <asp:TemplateField> <ItemTemplate> <asp:RadioButton runat="server" id="rb" /> </ItemTemplate> </asp:TemplateField> </Columns> For index As Integer = 0 To GridView1.Rows.Count - 1 ' ACCESS THE … | |
Re: I am not sure if this will help, but you can check the below link... [Copy data from one DataGridView to another.](http://www.encodedna.com/2013/02/copy-data-from-one-datagridgiew-to-another.htm) Just check it and let me know. Regards | |
Re: You need to float the images inside the DIV. CSS #divImgContainer img {float:left;} HTML <div id="divImgContainer"> <img src="image1.jpg" width="160px" height="94px" /> <img src="image2.jpg" width="160px" height="94px" /> </div> [Also check for more of "Centering a DIV" using CSS.](http://www.encodedna.com/2012/12/floating-div-using-css.htm) Arun | |
Re: If you want to create a DropDown menu, I'll suggest you use CSS rather than JavaScript. Scripts generally slow the page load. CSS is more dynamic and easy to use. See the below link for a "CSS DropDown Menu" with no use of JavaScript. [CSS Animated DropDown Menu](http://www.encodedna.com/2013/01/css-animated-dropdown-menu.htm) Arun | |
Re: You try using loop to send emails to so many users. The idea is to put less pressure on the service providers server. Check the link on sending emails using SMTPClient() in .Net. [Send emails in .Net framework using SmtpClient()](http://www.encodedna.com/2012/11/Send_Emails_Using_ASPDOTNET.htm) Arun | |
Re: You need to use AJAX. Check the below links for exactly what you want. [Click Here](http://www.w3schools.com/ajax/ajax_database.asp) [DropDow menu without JavaScript](http://www.encodedna.com/2013/01/css-animated-dropdown-menu.htm) [DropDown menu with JavaScript](http://www.encodedna.com/2013/01/dropdown-menu-using-javascript.htm) Arun | |
Re: DataGridView demo. Check the below link for coping data from one DataGridView to another. [http://www.encodedna.com/2013/02/copy-data-from-one-datagridgiew-to-another.htm](http://www.encodedna.com/2013/02/copy-data-from-one-datagridgiew-to-another.htm) Arun | |
Re: You can try this link for exporting data to excel in vb.net and procedure will also be application in Asp.net too. http://www.encodedna.com/2012/12/export-data-to-excel.htm And to export your crystal report data to PDF try the below function. Sub printReport() ' FIRST ADD REFERENCES. ' CrystalDecisions.CrystalReports.Engine ' CrystalDecisions.ReportSource Dim Report As CrystalDecisions.CrystalReports.Engine.ReportDocument = … |
The End.