15,912,329 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 ASPDevloper (Top 23 by date)
ASPDevloper
24-Oct-15 5:49am
View
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using System.Data;
namespace JobPortal
{
public partial class view_jobseekers_byarea : System.Web.UI.Page
{
SqlConnection con = null;
SqlDataAdapter adp = null;
string expyrs, mnth;
int areaid;
string connstring=@"";
protected void Page_Load(object sender, EventArgs e)
{
}
protected void btnsearch_Click(object sender, EventArgs e)
{
expyrs = ddlexpyrs.Text;
mnth = ddlmnth.Text;
areaid = ddlarea.SelectedValue;
}
public void area()
{
con = new SqlConnection(connstring);//@"Data Source=.\SQLEXPRESS;AttachDbFilename=E:\PRJ\JobPortal\JobPortal\App_Data\JobportalDB.mdf;Integrated Security=True;User Instance=True");
con.Open();
string query = "";
adp = new SqlDataAdapter(query, con);
DataSet ds = new DataSet();
adp.Fill(ds);
ddlarea.DataSource = ds.Tables[0];
ddlarea.DataTextField = "area_name";
ddlarea.DataValueField = "area_id";
ddlarea.DataBind();
ddlarea.Items.Insert(0, new ListItem("select", "0"));
con.Close();
}
protected void Button4_Click(object sender, EventArgs e)
{
Multiview1.SetActiveView(view2);
}
protected void ddlarea_SelectedIndexChanged(object sender, EventArgs e)
{
area();
}
protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e)
{
if(e.CommandName.Equals("select"))
{
GridView gvr = (GridView)GridView1.NamingContainer.;
}
}
protected void GridView1_SelectedIndexChanged(object sender, EventArgs e)
{
try
{
GridView1.SelectedIndex = e.NewSelectedIndex;
foreach (GridViewRow gr in GridView1.Rows)
{
if (gr.RowIndex == GridView1.SelectedIndex)
{
recruiter.JobID = gr.Cells[1].Text;
recruiter.OrgName = gr.Cells[2].Text;
Response.Redirect("~/JobSeeker/SearchJobs/frmFullSelectedJobDetail.aspx?JobId=" + recruiter.JobID + "&OrgName=" + recruiter.OrgName);
}
}
}
catch (Exception)
{
throw;
}
}
}
}
ASPDevloper
19-Oct-15 6:26am
View
I will use Multiview to display tab content and for tab use aspbutton but i dont know how to find out index of tab ...plz give solution..
thnkx.........
ASPDevloper
14-Oct-15 1:25am
View
kk
ASPDevloper
13-Oct-15 7:30am
View
TemplateField
ASPDevloper
13-Oct-15 7:27am
View
<asp:TemplateField HeaderText="">
<itemtemplate>
<asp:LinkButton ID="lnkbtnselect" runat="server" Text="Select" CommandArgument='<%# Eval("tcode") %>' CommandName="SelectRecord" OnClick="lnkbtnselect_Click" >
ASPDevloper
13-Oct-15 6:24am
View
String sdesc = row.Cells[3].Text;
this use after that assign .
ASPDevloper
13-Oct-15 6:20am
View
only return blank value..
ASPDevloper
13-Oct-15 6:20am
View
ya ....not give any value of cell.
ASPDevloper
13-Oct-15 5:28am
View
thnkx
ASPDevloper
13-Oct-15 4:41am
View
i will try this form but not work ....
ASPDevloper
13-Oct-15 1:39am
View
i also check it para value ,value assign or proper run but empty set is return or when this Qury put in Sqladapter then it will run and give results but when in Store procedur call then not give result
ASPDevloper
12-Oct-15 7:15am
View
thnkx ...it will work...btw Autopostback="true" is missing ....
ASPDevloper
12-Oct-15 2:49am
View
hey it will work actually i cant pass parameter thts y error ocur...?
btw thnkx..
ASPDevloper
9-Oct-15 7:59am
View
Thnku so much...it will work.
ASPDevloper
9-Oct-15 4:42am
View
Thanku so much....dashing Dash
ASPDevloper
9-Oct-15 3:43am
View
hey ...i know this but i want actually code u know about SqlConnection Code like as SqlCommand,adapter,dataset means how to access in others file when declare in one class ...Actually i want code..
ASPDevloper
9-Oct-15 3:15am
View
like as SqlConnection related...
Means how to integrate in this one file which access in others file
ASPDevloper
9-Oct-15 3:09am
View
hey...hiii,
can u help me about how to create common connection class file in c#.net
And how to use it in project(means Access)
Thankx
ASPDevloper
9-Oct-15 2:55am
View
Deleted
Ok..
ASPDevloper
9-Oct-15 2:37am
View
ok...thnkx
ASPDevloper
9-Oct-15 1:29am
View
Deleted
How to Update & insert operation Perform On Same Submitbutton Click ..
eg Operation Perform On Gridview
ASPDevloper
9-Oct-15 0:54am
View
How to Retrive Data from Gridview cell when clicking on linkbutton on purticular row...eg Select click nd i want record from current row which i have selectes nd cell data...
Thank You
ASPDevloper
9-Oct-15 0:50am
View
Thnkx
Show More