Click here to Skip to main content
15,919,879 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Ajax not working Pin
Abhijit Jana5-Aug-09 9:58
professionalAbhijit Jana5-Aug-09 9:58 
GeneralRe: Ajax not working Pin
Ersan Ercek5-Aug-09 9:59
Ersan Ercek5-Aug-09 9:59 
Questionrelease dates of WCF,AJAX,.. Pin
suni_dotnet5-Aug-09 6:56
suni_dotnet5-Aug-09 6:56 
AnswerRe: release dates of WCF,AJAX,.. Pin
Abhijit Jana5-Aug-09 8:03
professionalAbhijit Jana5-Aug-09 8:03 
QuestionHow to enable folder rw rights in IIS 7.0 for ASP.NET web app? Pin
Chesnokov Yuriy5-Aug-09 4:14
professionalChesnokov Yuriy5-Aug-09 4:14 
AnswerRe: How to enable folder rw rights in IIS 7.0 for ASP.NET web app? Pin
Muhammad Mazhar5-Aug-09 4:29
Muhammad Mazhar5-Aug-09 4:29 
Questiondisplaying column from different tables Pin
srikantha_nagaraj5-Aug-09 4:06
srikantha_nagaraj5-Aug-09 4:06 
AnswerRe: displaying column from different tables Pin
Muhammad Mazhar5-Aug-09 4:40
Muhammad Mazhar5-Aug-09 4:40 
It should be simple, one possible solution could be write some wrapper class with two fields having compatible types to corrosponding database columns. For example
public class MyWraper
{
private string _column1
public string Column1
{
get{return _column1;}
set{_column1 = value}
}

private string _column2
public string Column2
{
get{return _column2;}
set{_column2 = value}
}
}

Now write some query that return data from both tables. Now depending upon those columns returned by query create for each record create a new wrapper object, populate its data from respective column values and finally add it some list. Now finally bind your grid to that list.
List<MyWraper> myList = new List<MyWraper>;
while(dataReader.Read())
{
MyWraper w = new MyWraper();
w.Column1 = dataReader["C1"].ToString();
w.Column2 = dataReader["C2"].ToString();
myList.Add(w);
}
gridView1.DataSource = myList;
gridView1.DataBind();


Share your experience with others
Check my Blog...

QuestionRe: displaying column from different tables Pin
srikantha_nagaraj5-Aug-09 19:57
srikantha_nagaraj5-Aug-09 19:57 
Questionsearch method Pin
thejakl555-Aug-09 3:50
thejakl555-Aug-09 3:50 
AnswerRe: search method Pin
Muhammad Mazhar5-Aug-09 4:49
Muhammad Mazhar5-Aug-09 4:49 
QuestionGet ID's Of All Textboxes into an Array? Pin
Pawan Kiran5-Aug-09 2:39
Pawan Kiran5-Aug-09 2:39 
AnswerRe: Get ID's Of All Textboxes into an Array? Pin
Arun Jacob5-Aug-09 2:41
Arun Jacob5-Aug-09 2:41 
GeneralRe: Get ID's Of All Textboxes into an Array? Pin
Pawan Kiran5-Aug-09 3:06
Pawan Kiran5-Aug-09 3:06 
GeneralRe: Get ID's Of All Textboxes into an Array? Pin
Blue_Boy5-Aug-09 3:09
Blue_Boy5-Aug-09 3:09 
AnswerRe: Get ID's Of All Textboxes into an Array? Pin
Arun Jacob5-Aug-09 3:10
Arun Jacob5-Aug-09 3:10 
GeneralRe: Get ID's Of All Textboxes into an Array? Pin
Abhijit Jana5-Aug-09 3:12
professionalAbhijit Jana5-Aug-09 3:12 
JokeRe: Get ID's Of All Textboxes into an Array? Pin
Manas Bhardwaj5-Aug-09 3:43
professionalManas Bhardwaj5-Aug-09 3:43 
Questionlocation in x,y of a controlin web form Pin
shankbond5-Aug-09 2:07
shankbond5-Aug-09 2:07 
AnswerRe: location in x,y of a controlin web form Pin
Not Active5-Aug-09 2:13
mentorNot Active5-Aug-09 2:13 
Questionbased on the session modalpopup extrender have to show Pin
Member 38798815-Aug-09 1:58
Member 38798815-Aug-09 1:58 
AnswerRe: based on the session modalpopup extrender have to show Pin
Sundeep Ganiga5-Aug-09 2:17
Sundeep Ganiga5-Aug-09 2:17 
AnswerRe: based on the session modalpopup extrender have to show Pin
Jay Royall5-Aug-09 2:19
Jay Royall5-Aug-09 2:19 
QuestionIFrame Pin
Ersan Ercek5-Aug-09 1:09
Ersan Ercek5-Aug-09 1:09 
AnswerRe: IFrame Pin
Christian Graus5-Aug-09 1:14
protectorChristian Graus5-Aug-09 1:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.