Open a WebForm in ThickBox or LightBox
Hii have page named Default.aspxi have linkbutton init.after i click this linkbutton in Default.aspx my another page (which is named SendEmail.aspx) will be shown in LightBox or ThickBox with the...
View Articlereplace an object from the list
Hi All,I am using VS2010 for my application. Now I have a scenario. asmple code {excuse syntax here.. . }I have a User Defined Object ObjSample. I have created a list for that.List<ObjSample>...
View ArticleWhat is wrong with my Remember Me code?
One of my customers wants to login, and stay logged in for a long period of time. So, if they close their browser and re-open, they will not have to login again. Can you please tell me what I am...
View ArticleHow to pass values to review forms
Hi all, I have a situation where user enters all values and when he hits submit, it should go to another page and should be able to view all the values there, if they are not correct then he can...
View Articleincrement time
I have the code below, I need to increment the time by one hour based on the StartTime. Usingtelerik:RadTimePickerThis is StartTimeRadStartTime.SelectedTime = "6:00 AM"This is...
View Articleiframe height problem
Hi,I have this css:#popup-background { position: fixed; top: 0%; left: 0%; width: 100%; height: 100%; background-color: #000; z-index:1001; -moz-opacity: 0.4; opacity: 0.4; display: none; } #popup {...
View ArticleUI controls naming convention
I am very strict about naming convention. I follow MSDN's guide when coding in C#. For example, I absolutely don't use Hungarian naming convention for my C# variables. But how about UI controls? Is...
View ArticleConvert a string to a string array to put into XML
How would I convert the code below to use a string instead of reading a .csv file? The string is tab delimitedstring[] source = File.ReadAllLines("cust.csv"); XElement cust = new XElement("Root", from...
View ArticleBind two controls with same Data
Hello,I have two listboxes on a page that I would like to have populated within the same pass, is this possible?Here is the code to populate the first one:objCmd1.Connection.Open() objReader =...
View ArticleWebservice undefined called from javascript
I am calling a simple webservice from a page's javascript:here is the webservice:Imports System.Web.Services Imports System.Web.Services.Protocols Imports System.ComponentModel Imports System.IO ' To...
View Articleinterference b/t footer and ContentPlaceHolder
there is interference between footer and Content place holder, i dont know how i can separate them !<div id="page"><div style="width:80%;float:left"><asp:ContentPlaceHolder...
View Articledifference between declaring variables
Hi, can anyone tell me what is the difference between both codes. with and without the word static. private static string GetConnectionString() { return...
View ArticleHow can encrypt connection my database in TextFile.txt(Visual studio insalled...
Ibuild gridview for insert and update and delete rows in my database<div>I use Template TextFile in asp.net 2008I want write code for encrypt data source(server name) ,database,user name...
View ArticleHow to check if a date is 3 days before current date(today's date)
Hello everyone. I'm developing a web based application for my college project. Here in one of my pages, i want to check if a date stored in the database is 3 days before the current date. That is,...
View ArticleFiring .NET button click from javascript
I am trying to implement some code that will trigger a .net button click event from Javascript, but it does not work.Here is my code: //isDirty Javascript CODE window.onbeforeunload = function...
View ArticleHow do I deploy Crystal Reports to my public site?
I am using VS2010 to create a WEB application. On my development machine, my WEB.config file has 4 section with Crystal Reports references 1. (appSettings, 2. System.web/compilation/assemblies, 3....
View ArticleDropdownlist item selection via code
Hi Guys,I have Country dropdownlist that when selected refreshes City dropdownlist. I programmatically set Countryname and then refresh the City dropdown. But I cant programmatically select the...
View ArticleUsing JAR in dot net
Hi,I am wanted to use a JAR file (java) in my .net application. The problem is currently the JAR file which I am using is referencing to a other JAR file for a database connection inside the JAR. When...
View ArticleHow to exclude null value in data FormView?
I have one forview and one gridview. I used Id from viewform as selected parameter for gridview. in some senario, formview datasource could be null. In this case, datasource for gridview also null. In...
View Articleproblems between gac installed dlls and ones in the bin directory
We have a server with about 200 web sites that all run code from the same assemblies. So for efficiency the assemblies are registered in the gac with the version number 1.0.0.0 They want to do a...
View Article