Click here to Skip to main content
15,904,416 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: call function from jscript file to .aspx inline code Pin
ncsubbu14-Sep-08 19:44
professionalncsubbu14-Sep-08 19:44 
AnswerRe: call function from jscript file to .aspx inline code Pin
Sandeep Akhare14-Sep-08 19:47
Sandeep Akhare14-Sep-08 19:47 
QuestionSearch Enginee for my database [modified] Pin
ncsubbu14-Sep-08 18:57
professionalncsubbu14-Sep-08 18:57 
AnswerRe: Search Enginee for my database Pin
Sandeep Akhare14-Sep-08 20:12
Sandeep Akhare14-Sep-08 20:12 
QuestionClick event of dynamic Image buuton ? Pin
Masood Kochi,SSF14-Sep-08 18:49
Masood Kochi,SSF14-Sep-08 18:49 
AnswerRe: Click event of dynamic Image buuton ? Pin
Sandeep Akhare14-Sep-08 20:09
Sandeep Akhare14-Sep-08 20:09 
AnswerRe: Click event of dynamic Image buuton ? Pin
balaji.t14-Sep-08 20:40
balaji.t14-Sep-08 20:40 
Questionget the datafield from Gridview and visible them Pin
Member 243361614-Sep-08 17:24
Member 243361614-Sep-08 17:24 
I created a search page(search.aspx) to get the column name the user want to display and pass them as query string to detail list page(detail.aspx).



In the detail list page, I created a gridview to display those columns. At first, when I created the gridview, I invisible them.

<asp:content id="Content1" contentplaceholderid="phMain" runat="Server" xmlns:asp="#unknown">
<asp:gridview id="GridView1" runat="server" autogeneratecolumns="False">
DataKeyNames="autoid" DataSourceID="SqlDataSource1">
<columns> <asp:boundfield datafield="autoid" headertext="ID" insertvisible="False">
ReadOnly="True" SortExpression="autoid" />
<asp:boundfield datafield="name" headertext="Name" sortexpression="name" visible="False">
<asp:boundfield datafield="description" headertext="Description" visible="False">
SortExpression="description" />
<asp:boundfield datafield="typeid" headertext="Type" visible="False">
SortExpression="typeid" />
<asp:boundfield datafield="daterequested" headertext="Date Requested" visible="False">
SortExpression="daterequested" DataFormatString='{0:dd/MMM/yy}"' />
<asp:boundfield datafield="requiredby" headertext="Required By" visible="False">
SortExpression="requiredby" DataFormatString='{0:dd/MMM/yy}"' />
<asp:boundfield datafield="lastupdated" headertext="Last Updated" visible="False">
SortExpression="lastupdated" DataFormatString='{0:dd/MMM/yy}"'/>
<asp:boundfield datafield="lastcomment" headertext="Comment" visible="False">
SortExpression="lastcomment" />
<asp:boundfield datafield="lastupdateby" headertext="Last Update By" visible="False">
SortExpression="lastupdateby" />

<asp:sqldatasource id="SqlDataSource1" runat="server">
ConnectionString="<%$ ConnectionStrings:ConnectionString1 %>"
SelectCommand="SELECT * FROM [tbldetail]





Then, in the Page_Load, I want to visible particular column which pass the string from page before (search.aspx)

protected void Page_Load(object sender, EventArgs e)
{

String selectcolumn = this.Request.QueryString["Selected"];

string[] columnID = commaStringToArray(selectcolumn);

// how to find the datafield of each column and visible them.

}

private string[] commaStringToArray(string strComma)
{
string [] strArray;
strArray = strComma.Split(new char[] {','});
return strArray;
}



In the web, they were all searching the headertext. But, I want to do the datafield.



work
Questionhow to retain the value of the html textbox control when server side dropdownlist changes?? Pin
dayakar_dn14-Sep-08 6:57
dayakar_dn14-Sep-08 6:57 
AnswerRe: how to retain the value of the html textbox control when server side dropdownlist changes?? Pin
Manas Bhardwaj14-Sep-08 7:08
professionalManas Bhardwaj14-Sep-08 7:08 
QuestionRe: how to retain the value of the html textbox control when server side dropdownlist changes?? Pin
sarala.s14-Sep-08 20:15
sarala.s14-Sep-08 20:15 
AnswerRe: how to retain the value of the html textbox control when server side dropdownlist changes?? Pin
Sandeep Akhare14-Sep-08 20:26
Sandeep Akhare14-Sep-08 20:26 
QuestionCreating Bin Folder in Asp.Net 2.0 Pin
Milind Panchal14-Sep-08 3:50
Milind Panchal14-Sep-08 3:50 
AnswerRe: Creating Bin Folder in Asp.Net 2.0 Pin
Manas Bhardwaj14-Sep-08 7:06
professionalManas Bhardwaj14-Sep-08 7:06 
AnswerRe: Creating Bin Folder in Asp.Net 2.0 Pin
Sandeep Akhare14-Sep-08 20:28
Sandeep Akhare14-Sep-08 20:28 
QuestionPrinting using reportviewer Pin
IamAmit14-Sep-08 1:53
IamAmit14-Sep-08 1:53 
QuestionThis probabaley has been asked before but not getting the solution (DropDownlist Problem) Pin
Rameez Raja13-Sep-08 19:26
Rameez Raja13-Sep-08 19:26 
AnswerRe: This probabaley has been asked before but not getting the solution (DropDownlist Problem) Pin
Blue_Boy13-Sep-08 20:09
Blue_Boy13-Sep-08 20:09 
QuestionASP.NET ChangePassword Server control Pin
Ray Cassick13-Sep-08 14:59
Ray Cassick13-Sep-08 14:59 
QuestionJavascript Alert Box does not Display Pin
Vimalsoft(Pty) Ltd13-Sep-08 12:49
professionalVimalsoft(Pty) Ltd13-Sep-08 12:49 
AnswerRe: Javascript Alert Box does not Display Pin
Guffa13-Sep-08 13:20
Guffa13-Sep-08 13:20 
AnswerRe: Javascript Alert Box does not Display Pin
ncsubbu14-Sep-08 19:12
professionalncsubbu14-Sep-08 19:12 
GeneralRe: Javascript Alert Box does not Display Pin
Vimalsoft(Pty) Ltd14-Sep-08 20:44
professionalVimalsoft(Pty) Ltd14-Sep-08 20:44 
AnswerRe: Javascript Alert Box does not Display Pin
Sandeep Akhare14-Sep-08 20:04
Sandeep Akhare14-Sep-08 20:04 
AnswerRe: Javascript Alert Box does not Display Pin
Vimalsoft(Pty) Ltd14-Sep-08 20:42
professionalVimalsoft(Pty) Ltd14-Sep-08 20:42 

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.