Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements

15 Posted Topics

Member Avatar for Naters_uk

you can use data reader for this, [code] command = new SqlCommand("SELECT * FROM Member",sqlConnection ); command.CommandType = CommandType.StoredProcedure; try { sqlConnection.Open(); reader=command.ExecuteReader(); while (reader.Read()) { [COLOR=DarkGreen]//if it is a text box [/COLOR] txtbox_user.Text=reader.IsDBNull(reader.GetOrdinal("MemberUserName"))? null: reader["MemberUserName"].ToString(); [COLOR=DarkGreen]//if it is a dropdown put defalut value 0 or 1, what ever value …

Member Avatar for ajeet_4
0
2K
Member Avatar for aish
Member Avatar for dalvir
0
359
Member Avatar for aish

I have a asp.net c# web form, when the page load I want to display client computer date and time.I used DateTime.Now.Date() for this. it works well in the localhost, but after I deployed in the web server it displays web server date and time.how can I display client's computer …

Member Avatar for senmm1981
0
1K
Member Avatar for unie

you can do it like this. [LIST=1] [*]read email using streamreader,capture information and pass to next page. [/LIST]

Member Avatar for aish
0
228
Member Avatar for aish

I fill dropdown lists values from the database then I wants to hard code first value and last value. I already hard code first value it's like this. cboName.Items.Insert(0,new ListItem("----Select----","0")); how can I hard code last value of the dropdown list, I want to add last value as a ----Other----. …

Member Avatar for ChimpusDupus
0
153
Member Avatar for aish

In my asp.net c# web app. I have 10 text feilds. I want to avoid duplicate same value in this text feilds. how I can do this using javascripts. :cry:

Member Avatar for aish
0
135
Member Avatar for aish

I'm working on asp.net c# web app. in my form I have Text Area and button. when I click the button I want to remove selected text from the text area (not all text only selected text.) how can I do this? can I use javascript for that if so …

Member Avatar for tgreer
0
100
Member Avatar for aish

I used this code for validate text box when user paste values to the text box. [code] //Browser Detection var strUserAgent = navigator.userAgent.toLowerCase(); var isIE = strUserAgent.indexOf("msie") > -1; var isNS6 = strUserAgent.indexOf("netscape6") > -1; var isNS4 = !isIE && !isNS6 && parseFloat(navigator.appVersion) < 5; function Paste(objEvent) { var objInput; …

Member Avatar for aish
0
89
Member Avatar for aish

I'm working with sql servre database I have two tables in the same database. thse are my tables, [code] CREATE TABLE [dbo].[Applicant] ( [UserID] [int] IDENTITY (1, 1) NOT NULL , [UserName] [varchar] (50) COLLATE Latin1_General_CI_AS NULL , [EducationDetails1] [varchar] (50) COLLATE Latin1_General_CI_AS NULL , [EducationDetails2] [varchar] (50) COLLATE Latin1_General_CI_AS …

Member Avatar for noman78
0
222
Member Avatar for aish

Hi, I have a database table which has a Field called birthday.I want to write SQL script which automatically search database every day and if someones birthday equal today then display a reminder(alert).how can I do this? can anyone help me? Thanks, aish. :o

Member Avatar for pty
0
207
Member Avatar for aish

I have asp.net C# web application I want to search jobvacancy details using jobrole. if user did not select any value I want to select all the details including null values. this Jobvacancy table has JobRole feild and it allow to insert null values, this is my stored procedure [Code] …

Member Avatar for aish
0
235
Member Avatar for aish

I want to insert datetime into the database.I want to insert date as a dd/MMMM/yyyy format SqlDateTime x; if((TextBox1.Text).Length==0) { x=SqlDateTime.Null; } else { x=DateTime.Parse(TextBox1.Text); } command=sqlConnection.CreateCommand(); command.CommandText="insert into Table2 values('"+x+"')"; sqlConnection.Open(); command.ExecuteNonQuery(); Response.Write("Save"); when I add this type of dates ex.25/02/2005 it occur error, how can I solve this.

Member Avatar for plazmo
0
311
Member Avatar for aish

I have asp.net C# web app. it has country dropdownlist.when the page load I want to select current users country. how can I do this? :rolleyes:

Member Avatar for aarya
0
90
Member Avatar for aish
Member Avatar for g0rb4ch3v
0
134
Member Avatar for aish

useing this code I avoid to paste invalid chracters to textboxes. function PasteAlphaNumeric(objEvent) { var strPasteData = window.clipboardData.getData("Text"); var objInput = objEvent.srcElement; if (strPasteData.search("[^A-Za-z0-9]")!=-1) { alert("The character you attempted to paste is not allowed for this field."); objInput.focus(); return false; } } I want to allow to paste white space …

Member Avatar for aish
0
100

The End.