Click here to Skip to main content
Page 1 of 4
Page Size: 10 · 25 · 50


Author filtered by: sisir patro [x]
Answer 29 Jan 2013   license: CPOL
Hi,Try like the following:function projectsclick() { document.getElementById("").css("display","none"); }Thanks
Answer 29 Jan 2013   license: CPOL
HI,You need to create an event handler for the button-event of the usercontrol and fire it from the click event of the actual button.class MyControl : UserControl{ public delegate void ButtonClickedEventHandler(object sender, EventArgs e); public event...
C#
Answer 28 Jan 2013   license: CPOL
HI,Try like this:DECLARE @STARTDATE datetime;DECLARE @EntDt datetime;set @STARTDATE = '06/01/2012';set @EntDt = '12/31/2012';declare @dcnt int; with DateList as ( select @STARTDATE DateValue union all select DateValue + 1 from DateList where ...
Answer 28 Jan 2013   license: CPOL
Hi,There are different solutions:int decValue = 182;// Convert integer 182 as a hex in a string variablestring hexValue = decValue.ToString("X");// Convert the hex string back to the numberint decAgain = int.Parse(hexValue,...
C#
Logout issue in asp.net by sisir patro
Answer 28 Jan 2013   license: CPOL
HI,On logout button click clear the session values using any one of the following code:Session.Clear();or Session.Abandon();Thanks
Answer 27 Jan 2013   license: CPOL
HI,Check the following links for variety of solutions.How do I convert Word files to PDF programmatically? [closed]Converting Word Documents to PDF using SharePoint Server 2010 and Word ServicesConverting Word Documents to PDF for Visual C#How to convert word document to pdf in...
Answer 27 Jan 2013   license: CPOL
HI,Here are some articles that will show you different ways to add the tooltip to listbox items. Have a look into them.Showing a Separate Tooltip for Each Item in a ListBox - .NET 2.0 (C# Code)List box control with tooltip for each itemASP.NET: ListBox TooltipThanks
Answer 27 Jan 2013   license: CPOL
HI,You can check the session existance in the pageload and then perform your operations:if (!string.IsNullOrEmpty(Convert.ToString(Session["UserName"]))) { //Redirect to the respective page } else { ...
Answer 27 Jan 2013   license: CPOL
HI,As mentioned in the above solution you can concatenate and there is another way to concatenate also. Session["username"] = string.Concat(firstName , lastName); myLabel.Text = Session["username"];For reference follow the following link:C# string.ConcatWhat's the...
Answer 26 Jan 2013   license: CPOL
HI,Look brother google is there to help you in collecting the information regarding database and security. Use your knowledge to explore your capability. If you are facing any problem in getting the solution or coding then we are there to guide you.Don't be dependent on other people. If...
Answer 25 Jan 2013   license: CPOL
HI,Database is a storage place to store your data. There is nothing like that one database is good and another is bad. Its fully dependent on you how you will store and manage your data in the database.According to me storing the images in the database is a bad idea. This will make the...
Answer 25 Jan 2013   license: CPOL
Hi,You can use like the following:ChangeMode(){ document.getElementById("txtPassword").attr('TextMode', 'Password');}Thanks
datetime formate problem by sisir patro
Answer 25 Jan 2013   license: CPOL
HI,Checkout the following link for the formating purpose in the date and time case.string-format-datetimeThanks
Answer 24 Jan 2013   license: CPOL
HI,Make sure that you have added the following file to tour master page.Add this in the master page and then the following bunch of code in the page where the control present.function SurName() { var x =...
Answer 24 Jan 2013   license: CPOL
HI,Refer the following links:Multiple File Drag and Drop Upload using HTML5 and Jquery.Upload-and-attach-multiple-files-as-attachmentsDownload Multiple Files Without Using Zip FileUpload Multiple Files in ASP.NET using jQueryThanks
Answer 24 Jan 2013   license: CPOL
HI,You can get the clientID in 2 ways.1. $("#btnSearch") -- This will work aleays if you are using the master page or not It will search for the control ID ending with the ID "btnSearch".2. Make the control property as ClientIDMode="Static" and then use to get the control like the...
Answer 24 Jan 2013   license: CPOL
HI,Check this useful link for the date and time this will really good and will resolve your problem.Thanks
Answer 21 Jan 2013   license: CPOL
HI,Checkout the following links for the spring concepts. Here are come articles of code project that contains the code snipet too to help you.Introduction to Spring.NETSpring FrameworkAOP Using Spring.NET - Part 1 ArticleIntegrating Spring.NET with ASP.NET Web SiteThanks
C#
Answer 21 Jan 2013   license: CPOL
HI,Use the following link for parsing and formating any date format.Different date formatsThanks
C#
Answer 21 Jan 2013   license: CPOL
HI,The parent page control will not be able to render in the client page. But you can able to get the value of the control in any of the pages.You need to pass the value in a session or in querystring value to the child page.Thanks
Answer 21 Jan 2013   license: CPOL
Hi,Check the following links:How to set a border around multiple cells in excel with C#Multiple Formats in one cell using c#Setting cell styles in Excel from C# misbehavingThanks
C#
Answer 21 Jan 2013   license: CPOL
HI,Check the following links:Image CorppingCropping Images code project articleThanks
encrypted file like table by sisir patro
Answer 20 Jan 2013   license: CPOL
HI,You can use the encription and decription of any kind of strings using the following two methods. public static string Decrypt(string stringToDecrypt) { MemoryStream ms = null; byte[] inputByteArray = new byte[stringToDecrypt.Length + 1]; ...
Answer 20 Jan 2013   license: CPOL
HI,Use a finally{ if(_objMasters != null) { _objMasters = null; } } block in your code and dispose your _objMasters object there and assign null to that object.This may resolve your problem.Thanks
Answer 20 Jan 2013   license: CPOL
HI,You can do it by making the validation property to false in the page like:But storing the HTML data in the database creates some security problems....
Answer 20 Jan 2013   license: CPOL
HI,1St you check the data for number of rows returning from the database and then use to assign the values.protected void Page_Load(object sender, EventArgs e){ string str = Request.QueryString["uname"];SqlConnection conn = new SqlConnection();conn.ConnectionString =...
C#
Answer 19 Jan 2013   license: CPOL
HI,Basically you can't be able to delete the record from the table having a foreign key in it. If you want to delete the record there are 2 ways of doing that.1. Make your "cascade delete property" on in sql tables. But this will delete the records from the parent table too. This is not...
Answer 19 Jan 2013   license: CPOL
Hi,Here are some links that have some examples on solving the linnear equations. check them:Solving a linear equationLinear Equations QuickStart Sample (C#)Linear equations in c#Thanks
C#
Answer 19 Jan 2013   license: CPOL
HI,you can use like the following:DateTime a = new DateTime(2008, 01, 02, 06, 30, 00);DateTime b = new DateTime(2008, 01, 03, 06, 30, 00);TimeSpan duration = b - a;double hours = (b-a).TotalHours;ORint days = (int)Math.Ceiling(diff.TotalDays);Thanks
Answer 18 Jan 2013   license: CPOL
Hi friends,I got the solution for the problem. I am sharing the problem and its solution here.Problem:When we are entering a date in dd/mm/yyyy format the compare validator couldn't able to get it and validation gets failed. This is because the validator implicitly gets the date format...
Answer 17 Jan 2013   license: CPOL
HI,Checkout this link:Is it possible to close a windows folder from C#?I am sure you will get your answer.Thanks
C#
Question 17 Jan 2013   license: CPOL
Hello All, I am using a compare validator to check the date format entered to a textbox. I am getting the following error.Exception message: The base class includes the field 'cmpvStartDateFormat', but its type (System.Web.UI.WebControls.CompareValidator) is not compatible with the type...
Answer 17 Jan 2013   license: CPOL
HI,Change your code to :SELECT (COUNT(Orders.orderid) / SUM(Inventory.price)) AS Orders_AverageFROM ORDERITEMS LEFT OUTER JOIN Inventory ON OrderItems.partid = Inventory.partid RIGHT OUTER JOIN Orders ON OrderItems.orderid = Orders.orderid ...
Answer 17 Jan 2013   license: CPOL
HI,Check out the following link to display the table in windows form:Adding Tables and Columns to the Windows Forms DataGrid ControlTable in c# windows form apphttp://bytes.com/topic/c-sharp/answers/940680-display-google-map-windows-form[^]How to refresh the datagrid:Refreshing...
Answer 17 Jan 2013   license: CPOL
Hi,use like this:int decValue = int.TryParse(substring,decValue);// This will not even compile since TryParse returns a bool not an int.To convert hexadecimal values to integer use:int decValue = int.Parse(substring, System.Globalization.NumberStyles.HexNumber);You may be...
Answer 17 Jan 2013   license: CPOL
HI,Here is a nice link that will be helpful in future for converting the datetime formats.check out this.String Format for DateTime [C#]Thanks
C#
session time out error by sisir patro
Answer 17 Jan 2013   license: CPOL
HI,Use the following code in web config file: Thanks
C#
Answer 17 Jan 2013   license: CPOL
HI,Change your code to :private void textBox3_MouseClick(object sender, MouseEventArgs e) {int b = 0;int a = 0;int c = 0; if (string.IsNullOrEmpty(textBox1.Text)) { int.TryParse(textBox1.Text,a); }...
Answer 17 Jan 2013   license: CPOL
HI,You can use some thing like :$(document).ready(function() { $('#imgBtnAddNewLineItem').click(function() { $('#container').append(''); });});Here I am sharing some links that can help you.Add Div Dynamically using JQueryusing jquery to...
Answer 17 Jan 2013   license: CPOL
HI,Here you are passing only session values.string query = "insert into Table_1(SensorValue,Time) values(" +hexValue+ "," +DateTime.Now.ToString("HH:MM:ss")+")";Thanks
json parsing problem by sisir patro
Answer 16 Jan 2013   license: CPOL
HI,Checkout some more links that can help you.How to retrieve JSON Data Array from ExtJS Storehow to get json data in jqueryhelp needed retrieving json data with jqueryRetrieving a JSON file using AjaxThese links can help you.You shouldn't need to do anything special to...
Answer 16 Jan 2013   license: CPOL
HI,You can do it in notepad++. take the two stored procedures in different files and then use compare option in notepad++. This will show you the difference.Thanks
Answer 16 Jan 2013   license: CPOL
HI,Insetead of using the code like: SqlDataAdapter sa = new SqlDataAdapter(); sa.InsertCommand = new SqlCommand("insert into Table_1(SensorValue)",sqlconn); sa.InsertCommand.Parameters.Add("@SensorValue", SqlDbType.Int).Value = SensorValue.Text;Use...
Appending Array in C# by sisir patro
Answer 16 Jan 2013   license: CPOL
Hi,Checkout these two links for your answer:How to combine two byte arraysBest way to combine two or more byte arrays in C#Thanks
C#
Answer 16 Jan 2013   license: CPOL
HI,Check the following links for our answer:Detect blocked popup in ChromeHow to Detect whether Pop Up Blocker is active or inactive using java script. Thanks
Answer 16 Jan 2013   license: CPOL
HI,Check these following links for your answer:Iterating Dynamic FileUpload Control Collection in Panel Control using ASP.NET C#ASP.NET save files from dynamically added FileUpload controlsDynamically Create Multiple File Upload Control with ASP.Net C# Thanks
C#
Answer 16 Jan 2013   license: CPOL
HI,Here is a link which explains the dynamic grid creation with the headers please check this.Dynamic gridview with headersThanks
Answer 16 Jan 2013   license: CPOL
HI,I can suggest you for store an ID value in the hidden field and use that hidden field value to retreive the related data from code behind.Thanks
C#
just for knowledge, by sisir patro
Answer 15 Jan 2013   license: CPOL
HI,Main() is the begining or the starting point of the execution. If the main() will be missing then The compilor compiler will not get a place to start from and will through error.Thanks
C#
condition an inner join by sisir patro
Answer 15 Jan 2013   license: CPOL
HI,Change your query to a dynamic query like:DECLARE @SqlQuery VARCHAR(MAX)set @SqlQuery = 'SELECT M.ID, A.userName FROM MainTbl M' if exists(select M.IsActive from MainTbl M) begin set @SqlQuery = @SqlQuery +...

Page 1 of 4
1 2 3 4


Advertise | Privacy | Mobile
Web02 | 2.6.130513.1 | Last Updated 14 May 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid