15,905,912 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Ranjith Reddy CSE (Top 165 by date)
Ranjith Reddy CSE
26-Aug-13 7:56am
View
anybody frds, please help me this task.
thanks.
Ranjith Reddy CSE
26-Aug-13 7:04am
View
Sorry, this is not working. Please can you write in my query.
Ranjith Reddy CSE
1-Aug-13 5:33am
View
acutally, the textbox is in gridview footer. so how can i write code for footer textbox in gridview.
Ranjith Reddy CSE
1-Aug-13 5:33am
View
acutally, the textbox is in gridview footer. so how can i write code for footer textboxe in gridview.
Ranjith Reddy CSE
18-Jun-13 6:22am
View
Boss, am not using validations for this, just this is postback dropdownlist and dropdownlist selected item will be displayed in Gridview..
my requirement is .. Just I dont want to Select this value ---- Select---- from ddl.
Please help
thanks.
Ranjith Reddy CSE
18-May-13 4:50am
View
Just i want to run in sql database.
Ranjith Reddy CSE
18-May-13 3:57am
View
ya, its fine after executing ur query.
But after executing this query Select * from Departments....it is same as old one.
Please help
Ranjith Reddy CSE
13-May-13 2:29am
View
thank you...........
Ranjith Reddy CSE
13-May-13 2:05am
View
Boss, i dont need total records to display..
Just I want to search the records, if not found Display a message "Record not found"
This is my code...
protected void BtnSearch_Click(object sender, ImageClickEventArgs e)
{
con.Open();
SqlCommand cmd = new SqlCommand("Select FirstName,LastName,EmpNo,ManagerName,Dept,Location,MobileNo,Email from Employees where FirstName='" + TxtSearch.Text + "' or EmpNo='" + TxtSearch.Text + "' ", con);
SqlDataAdapter da = new SqlDataAdapter(cmd);
DataSet ds = new DataSet();
da.Fill(ds);
GVRecords.DataSource = ds;
GVRecords.DataBind();
con.Close();
}
Thanks.
Ranjith Reddy CSE
13-May-13 1:48am
View
or else Please give me solution using LABEL. for No Records found.
Ranjith Reddy CSE
13-May-13 1:47am
View
or else Please give me solution using LABEL. for No Records found.
Ranjith Reddy CSE
13-May-13 1:47am
View
or else Please give me solution using LABEL. for No Records found.
Ranjith Reddy CSE
22-Apr-13 6:06am
View
boss, this is not working.
Ranjith Reddy CSE
22-Apr-13 6:05am
View
Deleted
boss this is not working
please help.
Ranjith Reddy CSE
17-Apr-13 6:07am
View
This is my code, it doesnot display SELECT option.
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
Fill_Departments();
}
private void Fill_Departments()
{
SqlConnection con = new SqlConnection(_connString);
con.Open();
SqlCommand cmd = new SqlCommand("select * from College", con);
SqlDataAdapter da = new SqlDataAdapter(cmd);
DataTable dt = new DataTable();
da.Fill(dt);
DDLCollege.DataSource = dt;
DDLCollege.Items.Insert(0, "------ Select College -----");
DDLCollege.DataTextField = "CollegeCode";
DDLCollege.DataValueField = "CollegeName";
DDLCollege.DataBind();
}
Please help,
I want to desplay --- Select college ----
but it doesnot display, please chk my code.
Ranjith Reddy CSE
17-Apr-13 6:07am
View
This is my code, it doesnot display SELECT option.
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
Fill_Departments();
}
private void Fill_Departments()
{
SqlConnection con = new SqlConnection(_connString);
con.Open();
SqlCommand cmd = new SqlCommand("select * from College", con);
SqlDataAdapter da = new SqlDataAdapter(cmd);
DataTable dt = new DataTable();
da.Fill(dt);
DDLCollege.DataSource = dt;
DDLCollege.Items.Insert(0, "------ Select College -----");
DDLCollege.DataTextField = "CollegeCode";
DDLCollege.DataValueField = "CollegeName";
DDLCollege.DataBind();
}
Please help,
I want to desplay --- Select college ----
but it doesnot display, please chk my code.
Ranjith Reddy CSE
17-Apr-13 5:54am
View
This is my code, it doesnot display SELECT option.
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
Fill_Departments();
}
private void Fill_College()
{
SqlConnection con = new SqlConnection(_connString);
con.Open();
SqlCommand cmd = new SqlCommand("select * from College", con);
SqlDataAdapter da = new SqlDataAdapter(cmd);
DataTable dt = new DataTable();
da.Fill(dt);
DDLCollege.DataSource = dt;
DDLCollege.Items.Insert(0, "------ Select College -----");
DDLCollege.DataTextField = "CollegeCode";
DDLCollege.DataValueField = "CollegeName";
DDLCollege.DataBind();
}
Please help,
I want to desplay --- Select college ----
but it doesnot display, please chk my code.
Ranjith Reddy CSE
17-Apr-13 5:31am
View
Its working fine, but i need like this
----- Select College -----
how should we write this in code.
Ranjith Reddy CSE
17-Apr-13 5:16am
View
please help, am fresher to asp.net
Ranjith Reddy CSE
16-Apr-13 4:27am
View
Fees is name of column
Ranjith Reddy CSE
16-Apr-13 4:27am
View
I wrote this code in Row databound
Ranjith Reddy CSE
16-Apr-13 4:26am
View
This is my code
GVRecords.Columns["Fees"].Visible = false;
This is the ERROR
The best overloaded method match for 'System.Web.UI.WebControls.DataControlFieldCollection.this[int]' has some invalid arguments
Please give me a good solution.
Thanks
Ranjith Reddy CSE
16-Apr-13 3:51am
View
sorry, not working
Ranjith Reddy CSE
10-Apr-13 2:38am
View
Deleted
This is my code... please help.
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient;
using System.Web.Configuration;
public partial class ViewInventory : System.Web.UI.Page
{
private static readonly string _connString = String.Empty;
SqlConnection con = new SqlConnection(_connString);
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
LoadInventoryData();
}
}
private void LoadInventoryData()
{
SqlConnection con = new SqlConnection(_connString);
//SqlCommand cmd = new SqlCommand("Select * from Equipment_Inventory", con);
SqlCommand cmd = new SqlCommand("Select Dept_code as DeptCode, Dept_desc as Description, Dept_telno as TelephoneNo, Dept_dirmgr as DirectorManager, Equipment_type as EquipmentType, Maker as Maker, Model as Model, Serialno as SerialNo, TagNo as TagNo, Assignedto as AssignedTo, Location as Location from Equipment_Inventory", con);
SqlDataAdapter da = new SqlDataAdapter(cmd);
DataSet ds = new DataSet();
da.Fill(ds);
GVInventoryRecords.DataSource = ds;
GVInventoryRecords.DataBind();
}
static ViewInventory()
{
_connString = WebConfigurationManager.ConnectionStrings["Inventory_DBConnectionString"].ConnectionString;
}
}
Ranjith Reddy CSE
3-Mar-13 0:52am
View
Ya i have triead a lot...everything is OK.
Total I have 12 fields in Gridview..one edit button at left and one edit button at right.
if i click on left edit buttons ONLY 6 columns must be edited. and If i click on right edit buton right 6 columns must be edited
but I want to edit 6 columns at left and 6 columns at right separately with separate edit buttons.
Can anybody solve this task.
Thanks...
Ranjith Reddy CSE
24-Feb-13 2:21am
View
No need of Sql Connections here.....Why ?
Ranjith Reddy CSE
24-Feb-13 2:09am
View
Deleted
Hello Friend.
Go to IIS and check Web Service Extensions
Ranjith Reddy CSE
15-Jan-13 2:56am
View
Thanks...............
Ranjith Reddy CSE
15-Jan-13 2:56am
View
Thanks...............
Ranjith Reddy CSE
15-Jan-13 2:56am
View
Thanks...............
Ranjith Reddy CSE
13-Jan-13 4:58am
View
Sir, Still i didnt get the answer for this solution....Please help.
Ranjith Reddy CSE
13-Jan-13 3:58am
View
hello, please solve my problem display tooltip onmouse over in gridview
Ranjith Reddy CSE
12-Jan-13 6:59am
View
This is the error am getting after using template fields..
The best overloaded method match for 'DefaultPage.getMonthName(string)' has some invalid arguments
Please solve.
Ranjith Reddy CSE
12-Jan-13 6:53am
View
No, this is also not working..........Please help me Codeproject team.
Ranjith Reddy CSE
12-Jan-13 6:30am
View
anybody there, Please help.
Ranjith Reddy CSE
12-Jan-13 6:18am
View
these are my columns
1)ClearanceNumber
2)CodeFlightId
3)DateLastChange
4) DateValidFrom
5)DateValidTo
6)Reservation No
7)AircraftType
8)CityCode
9)Days
see if index is 0 then our Days column will be 8
Please help me...Thanks
Ranjith Reddy CSE
12-Jan-13 6:15am
View
ya i have added the break points as u have said. ya starting index is 0 but my column is 8.
Ranjith Reddy CSE
12-Jan-13 6:12am
View
When i build the solution - > it shows Succeed...Then whats the problem for tooltip.
Ranjith Reddy CSE
12-Jan-13 6:09am
View
please help me....THANKS
Ranjith Reddy CSE
12-Jan-13 6:07am
View
Gridview Html Layout
====================
<asp:GridView ID="GridView1" runat="server" HorizontalAlign="Center"
Width="1300px" AutoGenerateColumns="False" BackColor="White"
BorderColor="#E7E7FF" BorderStyle="None" BorderWidth="1px" CellPadding="3"
GridLines="Horizontal" onrowdatabound="GridView1_RowDataBound">
<rowstyle backcolor="#E7E7FF" forecolor="#4A3C8C" horizontalalign="Center">
<footerstyle backcolor="#B5C7DE" forecolor="#4A3C8C">
<PagerStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" HorizontalAlign="Right" />
<SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="#F7F7F7" />
<HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#F7F7F7" />
<alternatingrowstyle backcolor="#F7F7F7">
Ranjith Reddy CSE
12-Jan-13 5:49am
View
This is my code.
using System;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient;
using System.Web.Configuration;
public partial class _Default : System.Web.UI.Page
{
private static readonly string _connString = String.Empty;
SqlConnection con = new SqlConnection(_connString);
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
LoadGridData();
}
}
private void LoadGridData()
{
SqlConnection con = new SqlConnection(_connString);
SqlCommand cmd = new SqlCommand("Select * from Flight", con);
SqlDataAdapter da = new SqlDataAdapter(cmd);
DataSet ds = new DataSet();
da.Fill(ds);
GridView1.DataSource = ds;
GridView1.DataBind();
}
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
var MONTH_COLUMN_SELL = 8; // Please change your month column cell here
e.Row.Cells[MONTH_COLUMN_SELL].ToolTip = getMonthName(e.Row.Cells[MONTH_COLUMN_SELL].Text);
}
}
private string getMonthName(string monthCode)
{
string monthName = string.Empty;
switch (monthCode)
{
case "M":
monthName = "Monday";
break;
case "T":
monthName = "Tuesday";
break;
case "W":
monthName = "Wednesday";
break;
case "Th":
monthName = "Thursday";
break;
case "F":
monthName = "Friday";
break;
case "S":
monthName = "Saturday";
break;
case "Su":
monthName = "Sunday";
break;
// add other condition as you like
}
return monthName;
}
static _Default()
{
_connString = WebConfigurationManager.ConnectionStrings["CFS_DBConnectionString"].ConnectionString;
}
}
Ranjith Reddy CSE
12-Jan-13 5:35am
View
Sorry Boss, its not working....when i keep mouse pointer...its unable to show. PLEASE HELP.
Ranjith Reddy CSE
12-Jan-13 5:23am
View
my cell is 8....please help
Ranjith Reddy CSE
31-Dec-12 5:26am
View
hello boss, where should i write this code....becoz am writing all my code in Inpage Technique itself....please help.
This is my code
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
DataSourceID="SqlDataSource1" HorizontalAlign="Center" Width="800px"
AllowPaging="True" AutoGenerateDeleteButton="True"
AutoGenerateEditButton="True" BackColor="#E0E0E0" CellPadding="5"
CellSpacing="1" DataKeyNames="Id">
<columns>
<asp:BoundField DataField="Id" HeaderText="Id" InsertVisible="False"
ReadOnly="True" SortExpression="Id" Visible="false"/>
<asp:BoundField DataField="UserName" HeaderText="UserName"
SortExpression="UserName" />
<asp:BoundField DataField="Password" HeaderText="Password"
SortExpression="Password" />
<asp:BoundField DataField="FirstName" HeaderText="FirstName"
SortExpression="FirstName" />
<asp:BoundField DataField="LastName" HeaderText="LastName"
SortExpression="LastName" />
<asp:BoundField DataField="Email" HeaderText="Email" SortExpression="Email" />
<HeaderStyle BackColor="#FDCB0A" HorizontalAlign="Center" />
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$ ConnectionStrings:UserDBConnectionString %>"
SelectCommand="SELECT [Id], [UserName], [Password], [FirstName], [LastName], [Email] FROM [AdminLogin]"
DeleteCommand="DELETE FROM AdminLogin WHERE (Id = @Id)"
UpdateCommand="UPDATE AdminLogin SET UserName = @UserName, Password = @Password, FirstName = @FirstName, LastName = @Lastname, Email = @Email WHERE (Id = @Id)">
So please , where should i write ur code. (Pop up Message for editing and deleting from Gridview).
Please help.
Thanks for EVER.
Ranjith Reddy CSE
19-Dec-12 1:55am
View
Thank you very Much.......
Ranjith Reddy CSE
19-Dec-12 1:49am
View
ok i got it with -2 ....
But i need in this format 171212. Please help
Ranjith Reddy CSE
19-Dec-12 1:45am
View
sir, it is displaying todays date.
I need Yesterdays date....Please help. Thanks
Ranjith Reddy CSE
28-Nov-12 6:13am
View
Where are you from ? ?
Ranjith Reddy CSE
25-Nov-12 6:49am
View
Hello Boss, am writing code in Checkbox CheckedChanged Event so, it has autopost back = True.....Please help.
Ranjith Reddy CSE
25-Nov-12 6:49am
View
Hello Boss, am writing code in Checkbox CheckedChanged Event so, it has autopost back = True.....Please help.
Ranjith Reddy CSE
25-Nov-12 6:49am
View
Hello Boss, am writing code in Checkbox CheckedChanged Event so, it has autopost back = True.....Please help.
Ranjith Reddy CSE
25-Nov-12 6:49am
View
Hello Boss, am writing code in Checkbox CheckedChanged Event so, it has autopost back = True.....Please help.
Ranjith Reddy CSE
20-Nov-12 2:36am
View
Sir, I want to show Full name in welcome page after the user log in...
In welcome page i have a label to display users full name
This is my login page code using session :
Session["UserName"] = TxtUserName.Text;
Session["Password"] = TxtPassword.Text;
In welcome page, I used code as
lbldisplay.text = session["UserName"].ToString();
This is perfect...
But i want to show full name with FIRST name and Last Name
as Ranjith Reddy
Ranjith Reddy CSE
10-Nov-12 5:10am
View
Thank you so much....
Ranjith Reddy CSE
10-Nov-12 5:03am
View
Thank you so much....
Ranjith Reddy CSE
10-Nov-12 5:03am
View
Thank you so much....
Ranjith Reddy CSE
18-Oct-12 5:07am
View
am unable to understand, Please can you tell me in detail.
Please help me. THANKS.
Ranjith Reddy CSE
17-Sep-12 3:05am
View
Please, can you show me how to do this ?
Ranjith Reddy CSE
3-Sep-12 6:33am
View
Many Thanks
Ranjith Reddy CSE
3-Sep-12 5:38am
View
Boss, I need to add Hyperlink on the IMAGE. Please help me.
When the user clicks that hyperlink..it must navigate to another page.
I should Redirect to another page when Hyperlink clicks But not the Image.
Please help.
I want to Clear is that. HOW TO ADD HYPERLINK ON IMAGE.
Ranjith Reddy CSE
3-Sep-12 5:38am
View
Boss, I need to add Hyperlink on the IMAGE. Please help me.
When the user clicks that hyperlink..it must navigate to another page.
I should Redirect to another page when Hyperlink clicks But not the Image.
Please help.
I want to Clear is that. HOW TO ADD HYPERLINK ON IMAGE.
Ranjith Reddy CSE
29-Aug-12 2:46am
View
I took total 6 textboxes
From : DDtextbox/MMtextbox/YYtextbox
To : DD1textbox /MM1textbox/YY1textbox
and a Search button to search these entered Dates in textboxes
Ranjith Reddy CSE
29-Aug-12 2:40am
View
Boss, In query how should i enter from date and to date.
For example I wnat to search From : 29/07/2012 TO : 29/08/2012.......So how to do this.
Please help me.
Thanks.
Ranjith Reddy CSE
6-Aug-12 6:47am
View
Sorry boss , its not working
Please help.
Ranjith Reddy CSE
21-Jul-12 5:37am
View
Please can you show me , how to do that, Please help Christian Graus. I need your help.
Ranjith Reddy CSE
21-Jul-12 5:36am
View
How to create a cs file using business logic layer and how can we call it from aspx.cs page.
Please help.
Ranjith Reddy CSE
19-Jul-12 4:08am
View
Suppose if the Users Expiry date is less than todays date. It must display a message like this.
"Your Password has Expired,Please contact administrator"
Thanks , Please help me brothers.
Ranjith Reddy CSE
19-Jul-12 4:04am
View
am not clear, what is 1. Please explain me boss.
Explain me in detail
Thanks
Ranjith Reddy CSE
19-Jul-12 3:32am
View
why dont you give concatenation +
Ranjith Reddy CSE
18-Jul-12 4:09am
View
The name 'Datetime' does not exist in the current context
Ranjith Reddy CSE
18-Jul-12 3:38am
View
No not working boss
Ranjith Reddy CSE
18-Jul-12 3:25am
View
This is my error...........am working on asp.net c#
'System.Convert' does not contain a definition for 'Todatetime'
Ranjith Reddy CSE
18-Jul-12 3:23am
View
Boss , i want to change the row color, if Mouse over in GRIDVIEW and also I need Blinking cell if the date is greater than todays date.
Ranjith Reddy CSE
18-Jul-12 3:09am
View
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
e.Row.Attributes.Add("onmouseover",
"this.originalcolor=this.style.backgroundColor;" + " this.style.backgroundColor='#FDCB0A';");
e.Row.Attributes.Add("onmouseout", "this.style.backgroundColor=this.originalcolor;")
}
Ranjith Reddy CSE
18-Jul-12 3:09am
View
Please tell me, where to write your code. with in my code.
Ranjith Reddy CSE
17-Jul-12 6:28am
View
This Query am using in dropdown list.....when i select sort by codeflightid it must display alphabet wise.
Please help , above is my query, am using that query in dropdownlist.
Ranjith Reddy CSE
17-Jul-12 6:25am
View
SqlDataAdapter dad3 = new SqlDataAdapter("select ClearanceNumber, CodeFlightId, DateLastChange, DateValidFrom,"
+ "DateValidTo, ReservationNo, AircraftType, CityCode, Days from Flight order by CodeFlightId", con);
Please check this Query, I need Alphabet wise.
Please help, Please correct this Query
Ranjith Reddy CSE
17-Jul-12 5:58am
View
Please can you give the easy solution for this ? which you have gave me is something complex. I need easy solution.
Ranjith Reddy CSE
14-Jul-12 3:44am
View
thanks Boss.
Ranjith Reddy CSE
14-Jul-12 3:44am
View
Thank you Boss.
Ranjith Reddy CSE
8-Jul-12 5:06am
View
Cool Cool Cool
Ranjith Reddy CSE
4-Jul-12 5:51am
View
Sorry, Sorry Sorry, Everytime I FORGET to mark the answer. I,ll mark next time definitely.
Thanks.
Ranjith Reddy CSE
4-Jul-12 5:34am
View
Your help may make my FUTURE.
Ranjith Reddy CSE
4-Jul-12 5:33am
View
yes, boss am in Initial Stage of programming....Please help me, I dont understand tell me clear.
Ranjith Reddy CSE
2-Jul-12 7:25am
View
Already , i have Created Crystal Report.....but its printing all the records from database.......Only i need to print SEARCH RECORDS only.
Many thanks in Advance. Please help me my dear EXPERTS.
Ranjith Reddy CSE
2-Jul-12 3:09am
View
Sorry, Its not working in Internet Explorer.
Ranjith Reddy CSE
2-Jul-12 3:09am
View
But its now working in Internet Explorer.
Only its working fine in GOOGLE CHROME.
Please say how to do this with internet explorer.
Ranjith Reddy CSE
2-Jul-12 3:08am
View
Thank you Sir, Now its Working According to your Code. MANY THANKS.
Ranjith Reddy CSE
2-Jul-12 2:54am
View
am using 3.5 version IDE VS 2008
Ranjith Reddy CSE
2-Jul-12 1:39am
View
how to add reference of AjaxControllToolkit.dll......am fresher please tell me. THANKS.
Ranjith Reddy CSE
30-Jun-12 7:13am
View
Please Please Explain me in Detail....I need Flash INTRO for first page. I need Step by step so that i can do easily.
Thanks.
Ranjith Reddy CSE
30-Jun-12 7:11am
View
I dont have Flash SWF File, Please tell me how to do this.
Ranjith Reddy CSE
30-Jun-12 7:11am
View
I dont have Flash SWF File, Please tell me how to do this.
Ranjith Reddy CSE
30-Jun-12 7:11am
View
I dont have Flash SWF File, Please tell me how ot do this.
Ranjith Reddy CSE
30-Jun-12 2:01am
View
Boss, How to delete that particular records after Selection of that checkboxes.
Please advice me. THANKS.
Ranjith Reddy CSE
25-Jun-12 6:02am
View
Please i need it in ASP.NeTt, C#
Ranjith Reddy CSE
25-Jun-12 5:34am
View
Boss, I need to store the Time Duration between Login and Logout of user in Database. as Duration of User Accessed the Application.
Ranjith Reddy CSE
25-Jun-12 5:29am
View
For Login_Time I used DataType as DateTime
Ranjith Reddy CSE
25-Jun-12 4:14am
View
yes, am facing problem....Please can u show me...THANKS.
Ranjith Reddy CSE
23-Jun-12 5:39am
View
we dont have TapOrder Property in asp.net
Please suggest me, how to do this ??
Ranjith Reddy CSE
23-Jun-12 1:30am
View
Yes, In Asp.net C#
Ranjith Reddy CSE
23-Jun-12 1:27am
View
and also Include....Initial Catalog as ur Database Name in Web.config ConnectionString File.
Try this, it will help u.
Ranjith Reddy CSE
21-Jun-12 18:32pm
View
Deleted
My Dear Friend Try this ??
private string ConvertSortDirectionToSql(SortDirection sortDirection)
{
string newSortDirection = String.Empty;
switch (sortDirection)
{
case SortDirection.Ascending:
newSortDirection = "ASC";
break;
case SortDirection.Descending:
newSortDirection = "DESC";
break;
}
return newSortDirection;
}
OK, Also Paste this below code in GridView1_Sorting Event.....
==============================================================
protected void GridView1_Sorting(object sender, GridViewSortEventArgs e)
{
DataTable dataTable =GridView1.DataSource as DataTable;
if (dataTable != null)
{
DataView dataView = new DataView(dataTable);
dataView.Sort = e.SortExpression + " " + ConvertSortDirectionToSql(e.SortDirection);
GridView1.DataSource = dataView;
GridView1.DataBind();
}
}
Ranjith Reddy CSE
20-Jun-12 4:53am
View
Please can you show me, how to write.
Ranjith Reddy CSE
18-Jun-12 1:33am
View
using System.Collections.Generic ...........This is the Namspace Include it.
Ranjith Reddy CSE
13-Jun-12 2:45am
View
Already, I have did this in Database, But what about the Coding.
Ranjith Reddy CSE
13-Jun-12 2:19am
View
Please tell me boss.
Ranjith Reddy CSE
11-Jun-12 2:36am
View
very xlnt
Ranjith Reddy CSE
11-Jun-12 2:27am
View
Boss, I need Image on Every Page.
I mean Logo on every page....and the Data to be displayed below logo.
Please Advice me,
Thanks.
Ranjith Reddy CSE
11-Jun-12 2:27am
View
Boss, I need Image on Every Page.
I mean Logo on every page....and the Data to be displayed below logo.
Please Advice me,
Thanks.
Ranjith Reddy CSE
11-Jun-12 2:27am
View
Boss, I need Image on Every Page.
I mean Logo on every page....and the Data to be displayed below logo.
Please Advice me,
Thanks.
Ranjith Reddy CSE
10-Jun-12 8:19am
View
Boss , am fresher
Ranjith Reddy CSE
10-Jun-12 6:50am
View
No, this is not attractive
Ranjith Reddy CSE
10-Jun-12 6:19am
View
Thank uuuuuuuuuuuuuuuuuuuuuuuu
Ranjith Reddy CSE
10-Jun-12 3:00am
View
Boss, Just i want to refer all those websites. Just be cool....OK.
Ranjith Reddy CSE
9-Jun-12 3:48am
View
Please can you show me how to do this....am beginner.
Ranjith Reddy CSE
6-Jun-12 5:57am
View
I need Password for Particular Database in sqlserver 2005....So that no one can access it OR Open it.
Ranjith Reddy CSE
6-Jun-12 3:00am
View
Generally, from database.
Ranjith Reddy CSE
5-Jun-12 7:34am
View
ok,Dear Listen to me.
Have u copied the above code from other websites....if u copied...Dont do these...
Just Drag and Drop textbox from toolbox and click the smart tag at the right side of textbox...tou will find extender...click on extender.......it will display ajax toolkit controls.....Just Select WaterMark Extender from the list and in properties of Textbox set the watermark extender Property ....Water Mark Text as Hello
This is clear i think so.
Follow these............Never Copy codes from other websites...Just take idea.
Ranjith Reddy CSE
5-Jun-12 7:29am
View
Finally, Restart ur PC.
Ranjith Reddy CSE
5-Jun-12 7:28am
View
Ok Dude, Which Version of Visual Studio.....You are Using.
Ranjith Reddy CSE
5-Jun-12 7:24am
View
Boss, In which Page i should write this code. I have a Intranet application with 40 Pages.
Please can u advice me.
Thanks.
Ranjith Reddy CSE
4-Jun-12 7:11am
View
My Dear Friend,
First of All, Try to read all the Project Details, and Check all the database Tables.
Generally For Registration Page....you can use UserInfo Table Something like that.
Go on Studying all project and Database, you will understand easily.
ok. thanx.
Ranjith Reddy CSE
2-Jun-12 5:45am
View
where should we write this Code...in which page ?
Ranjith Reddy CSE
2-Jun-12 3:50am
View
Sorry, Shortcut for solution Explorer is Ctrl + Alt + L
Ranjith Reddy CSE
2-Jun-12 1:23am
View
radiobuttonlist.SelectedItem.Text;
Try this ? ?
Ranjith Reddy CSE
30-May-12 7:10am
View
and also delete Selected index changed event also.....ok.
Ranjith Reddy CSE
30-May-12 7:07am
View
My Dear Friend, Use PageIndexingChanging event......and delete page index changed event....from design and code....may be it will run.
Ranjith Reddy CSE
30-May-12 6:22am
View
Thank you So much my dear Friend.....its working in RowDataBound Event...thanx a lot.
Ranjith Reddy CSE
30-May-12 6:07am
View
This is my perfect code
=========================
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient;
using System.Web.Configuration;
using System.Drawing;
using System.Collections.Specialized;
using System.Text.RegularExpressions;
public partial class Users_StudentDetails : System.Web.UI.Page
{
private static readonly string _connString = String.Empty;
SqlConnection con = new SqlConnection(_connString);
protected void Page_Load(object sender, EventArgs e)
{
foreach (GridViewRow item in GridView1.Rows)
{
item.Cells[2].BackColor = Color.FromName("#6698FF");
string StudentCode = item.Cells[2].Text;
StudentCode = StudentCode.Substring(0, 2);
string sc = getstudentcode(StudentCode);
item.Cells[2].ToolTip = sc;
}
}
public string getStudentcode(string Studentcode)
{
string result = "Test";
SqlConnection con = new SqlConnection("Data Source=Ranjith-pc;Initial Catalog=StudentsDB;User Id=sa;Password=123;");
SqlCommand cmd = new SqlCommand();
cmd.Connection = con;
cmd.CommandText = "select StudentName from StudentsCode where Code='" + StudentCode + "'";
using (con)
{
con.Open();
SqlDataReader reader = cmd.ExecuteReader();
if (reader.Read())
{
result = reader["StudentName"].ToString();
}
}
return result;
}
// Paging
protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e)
{
GridView1.PageIndex = e.NewPageIndex;
GridView1.DataBind();
}
static Users_StudentDetails()
{
_connString = WebConfigurationManager.ConnectionStrings["StudentsDBConnectionString"].ConnectionString;
}
}
Ranjith Reddy CSE
30-May-12 6:02am
View
This is my code
================
protected void Page_Load(object sender, EventArgs e)
{
foreach (GridViewRow item in GridView1.Rows)
{
item.Cells[2].BackColor = Color.FromName("#6698FF");
string StudentCode = item.Cells[2].Text;
StudentCode = StudentCode.Substring(0, 2);
string sc = getstudentcode(StudentCode);
item.Cells[2].ToolTip = sc;
}
public string getStudentcode(string Studentcode)
{
string result = "Test";
SqlConnection con = new SqlConnection("Data Source=Ranjith-pc;Initial Catalog=StudentsDB;User Id=sa;Password=123;");
SqlCommand cmd = new SqlCommand();
cmd.Connection = con;
cmd.CommandText = "select StudentName from StudentsCode where Code='" + StudentCode + "'";
using (con)
{
con.Open();
SqlDataReader reader = cmd.ExecuteReader();
if (reader.Read())
{
result = reader["StudentName"].ToString();
}
}
return result;
}
// Paging
protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e)
{
GridView1.PageIndex = e.NewPageIndex;
GridView1.DataBind();
}
Ranjith Reddy CSE
30-May-12 5:31am
View
Page_Load
==========
foreach (GridViewRow item in GridView1.Rows)
{
item.Cells[2].BackColor = Color.FromName("#6698FF");
string StudentCode = item.Cells[2].Text;
StudentCode = StudentCode.Substring(0, 2);
string sc = getstudentcode(StudentCode);
item.Cells[2].ToolTip = sc;
public string getStudentcode(string Studentcode)
{
string result = "Test";
SqlConnection con = new SqlConnection("Data Source=Ranjith-pc;Initial Catalog=StudentsDB;User Id=sa;Password=123;");
SqlCommand cmd = new SqlCommand();
cmd.Connection = con;
cmd.CommandText = "select StudentName from StudentsCode where Code='" + StudentCode + "'";
using (con)
{
con.Open();
SqlDataReader reader = cmd.ExecuteReader();
if (reader.Read())
{
result = reader["StudentName"].ToString();
}
}
return result;
}
// Paging
protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e)
{
GridView1.PageIndex = e.NewPageIndex;
GridView1.DataBind();
}
Ranjith Reddy CSE
27-May-12 7:47am
View
Please Answer me this solution....By the way am fresher........Waiting for ur solution. Thanks.
Ranjith Reddy CSE
27-May-12 5:20am
View
yes, there is a way....just add updatel panel
Ranjith Reddy CSE
26-May-12 7:44am
View
Dear Friends,
This is Successful answer ..........
Design Page
===========
<asp:RadioButtonList ID="RadioButtonList1" runat="server" AutoPostBack="True"
onselectedindexchanged="RadioButtonList1_SelectedIndexChanged">
<asp:ListItem Value="Red">Red
<asp:ListItem Value="green">Green
<asp:TextBox ID="TextBox1" runat="server">
Code behind
============
Just Include this Name space also.........
using System.Drawing;
protected void RadioButtonList1_SelectedIndexChanged(object sender, EventArgs e)
{
if (RadioButtonList1.SelectedValue == "Red")
{
TextBox1.BackColor = Color.Red;
}
else
{
TextBox1.BackColor = Color.Green;
}
}
Try this Cute answer.........which is helpfil to u.
Ranjith Reddy CSE
23-May-12 7:24am
View
Just i have Designed a login Page as User Name,Password, and Submit Button and finally i have added a hyperlink Forgot Password.
Please can u send me code, how to do this. Am trying from 1 week...Please Please Help me.
Thanks.
Ranjith Reddy CSE
23-May-12 7:17am
View
how to do it boss, Please Please can u explain me in detail.
Ranjith Reddy CSE
23-May-12 2:38am
View
Boss, I have Product Code and Images are in diferent tables, how can i do this ?
Ranjith Reddy CSE
23-May-12 2:06am
View
How ? please can u show me my Frnd, Am fresher in programming.
Ranjith Reddy CSE
19-May-12 5:48am
View
By the way, i.ll get the txt file once in a day....that to morning 7:00am and i need to upload it in SqlServer DB and display in GRIDVEIW. at 8:00 am.
Ranjith Reddy CSE
19-May-12 5:44am
View
Boss Everthing is running fine. But the problem here is...i dont want to click upload button to upload the data...i.ll recieve the data at 7:00Am ..it should be done automaticaly at 8:00 Am.
Ranjith Reddy CSE
19-May-12 5:42am
View
Actually i will recieve the txt file at 7:00 Am....it should upload automatically at 8:00 Am
Ranjith Reddy CSE
19-May-12 1:59am
View
I have created a stored procedure, and finally wrote code to button click event to upload the data.....its working fine...BUt i need it automatically, without button click.
Ranjith Reddy CSE
14-May-12 2:09am
View
yes Boss, ur code is working....But when i put cursor inside the textbox....its shows rounded its good and also its shows yellow color rectangle shape outside....please help me.
Ranjith Reddy CSE
14-May-12 1:57am
View
Boss, i have Tried this....its working but after i put cursor inside textbox...its shows rectangle shape at borders....its shows rounded as well as rectangle after cursor puts.
This is my code.
.TextSearch
{
border:2px solid;
border-radius:25px;
-moz-border-radius:25px;
}
Ranjith Reddy CSE
14-May-12 1:39am
View
No Boss, This code is not Working, After Execution its shows like normal Textbox its NOT Rounded.....please suggest me a good solution...THANX.
Ranjith Reddy CSE
13-May-12 3:36am
View
this is not working
Ranjith Reddy CSE
9-May-12 4:26am
View
ya, i understood this, BUT how can we search records from GRIDVIEW by using Textbox on key press.
Ranjith Reddy CSE
9-May-12 2:59am
View
This is My code for Search, where to add this in asp.net appl.
//Code Starts
$(document).ready(function() {
$('#<%=lblNoRecords.ClientID%>').css('display','none');
$('#<%=BtnSearch.ClientID%>').click(function(e)
{
// Hide No records to display label.
$('#<%=lblNoRecords.ClientID%>').css('display','none');
//Hide all the rows.
$("#<%=GridView1Rows.ClientID%> tr:has(td)").hide();
var iCounter = 0;
//Get the search box value
var sSearchTerm = $('#<%=TxtSearch.ClientID%>').val();
//if nothing is entered then show all the rows.
if(sSearchTerm.length == 0)
{
$("#<%=GridView1Rows.ClientID%> tr:has(td)").show();
return false;
}
//Iterate through all the td.
$("#<%=GridView1Rows.ClientID%> tr:has(td)").children().each(function()
{
var cellText = $(this).text().toLowerCase();
//Check if data matches
if(cellText.indexOf(sSearchTerm.toLowerCase()) >= 0)
{
$(this).parent().show();
iCounter++;
return true;
}
});
if(iCounter == 0)
{
$('#<%=lblNoRecords.ClientID%>').css('display','');
}
e.preventDefault();
})
})
//Code Ends
Ranjith Reddy CSE
7-May-12 6:45am
View
Sir, Can we put the Script Manager and Update Panel In Master Page.
Ranjith Reddy CSE
7-May-12 6:06am
View
How to avoid Total Page Refresh in asp.net When Click on MENU LINKS.
Ranjith Reddy CSE
7-May-12 6:03am
View
please can u give me ur email id.
Ranjith Reddy CSE
7-May-12 4:51am
View
Sir I have Menus in My Master Page, how to do this...............
Already I have Script Manager and Update Panel in Another .Aspx page...
and it shows the error - (Only one instance of a ScriptManager can be added to the page).
Ranjith Reddy CSE
6-May-12 4:44am
View
I need to Search the Particular Records when i click the gridview cell.
Suppose I have a column Name as StudentNames , NOW I need to Search the Records of that StudentName as Ranjith by Clicking the cell in Gridview. and that partiular student Names must be displayed.
Thanks, Please help me.
Ranjith Reddy CSE
6-May-12 3:19am
View
Sorry, unable to work this code
Ranjith Reddy CSE
6-May-12 2:50am
View
please can u send me this code in C#
Ranjith Reddy CSE
6-May-12 2:02am
View
Unable to work out with ur code
Ranjith Reddy CSE
6-May-12 1:56am
View
ok use this ?
SelectedValue.Text);
Ranjith Reddy CSE
1-May-12 5:00am
View
Boss it is good,I need same as it is.... But i need Code. Please can u send me the code.
Ranjith Reddy CSE
30-Apr-12 3:35am
View
Error Generates with this code,,can u please suggest another code
Ranjith Reddy CSE
30-Apr-12 3:34am
View
No boss Problem
Ranjith Reddy CSE
30-Apr-12 2:52am
View
This is my DESIGN PAGE
========================
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>:: Grid Printing ::</title>
<style type="text/css">
.style1
{
width: 100%;
}
</style>
</head>
<body>
<form id="form1" runat="server">
<table class="style1">
<tr>
<td style="text-align: center">
<br />
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
CellPadding="4" DataKeyNames="Id" DataSourceID="SqlDataSource1"
ForeColor="#333333" GridLines="None" HorizontalAlign="Center"
Width="900px" AllowPaging="True" AllowSorting="True">
<rowstyle backcolor="#EFF3FB">
<columns>
<asp:BoundField DataField="Id" HeaderText="Id" InsertVisible="False"
ReadOnly="True" SortExpression="Id" />
<asp:BoundField DataField="FirstName" HeaderText="FirstName"
SortExpression="FirstName" />
<asp:BoundField DataField="LastName" HeaderText="LastName"
SortExpression="LastName" />
<asp:BoundField DataField="Department" HeaderText="Department"
SortExpression="Department" />
<asp:BoundField DataField="UserName" HeaderText="UserName"
SortExpression="UserName" />
<asp:BoundField DataField="Password" HeaderText="Password"
SortExpression="Password" />
<asp:BoundField DataField="IssueDate" HeaderText="IssueDate"
SortExpression="IssueDate" />
<asp:BoundField DataField="ExpiryDate" HeaderText="ExpiryDate"
SortExpression="ExpiryDate" />
<asp:BoundField DataField="UserType" HeaderText="UserType"
SortExpression="UserType" />
<asp:BoundField DataField="ProgramAccess" HeaderText="ProgramAccess"
SortExpression="ProgramAccess" />
<footerstyle backcolor="#507CD1" font-bold="True" forecolor="White">
<PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
<SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
<HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
<editrowstyle backcolor="#2461BF">
<alternatingrowstyle backcolor="White">
<br />
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$ ConnectionStrings:KKIA_RUHConnectionString %>"
SelectCommand="SELECT * FROM [UsersInformation]">
<asp:Button ID="BtnCurrentPAge" runat="server" BackColor="#0066FF"
ForeColor="White" Text="Print Current Page"
onclick="BtnCurrentPAge_Click" />
</td>
</tr>
<tr>
<td>
</td>
</tr>
</table>
</form>
</body>
</html>
Ranjith Reddy CSE
30-Apr-12 2:50am
View
ok
Ranjith Reddy CSE
29-Apr-12 8:41am
View
Please study the above code...u will understand
Ranjith Reddy CSE
29-Apr-12 8:40am
View
Boss, I need Tool tip as M for Monday , T for Tuesday etc etc... Please help me.
Show More