Click here to Skip to main content
15,889,034 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Re-using usercontrol into a different project. Pin
Rajeesh MP11-Mar-09 19:17
Rajeesh MP11-Mar-09 19:17 
AnswerRe: Re-using usercontrol into a different project. Pin
Juvil John12-Mar-09 13:20
Juvil John12-Mar-09 13:20 
QuestionSQL Server Express, Authentication, Visual Studio, and a Web Host that doesn't support SQL Server:( Pin
rmterenz11-Mar-09 17:46
rmterenz11-Mar-09 17:46 
AnswerRe: SQL Server Express, Authentication, Visual Studio, and a Web Host that doesn't support SQL Server:( Pin
Rajeesh MP11-Mar-09 19:26
Rajeesh MP11-Mar-09 19:26 
Questionset a page as the main page Pin
prasadbuddhika11-Mar-09 17:44
prasadbuddhika11-Mar-09 17:44 
AnswerRe: set a page as the main page Pin
Abhijit Jana11-Mar-09 18:43
professionalAbhijit Jana11-Mar-09 18:43 
QuestionModify the SqlDataSource without altering the gridview Pin
TerRO_GirL11-Mar-09 11:43
TerRO_GirL11-Mar-09 11:43 
QuestionGridview SqlDataSource SelectCommand Pin
Tomb42111-Mar-09 10:29
Tomb42111-Mar-09 10:29 
In an ASP.Net Visual Studio 2005, How can you edit the string value for a Gridview SqlDataSource SelectCommand?

For example, I need to replace SelectCommand="Select * from [Table1]" with SelectCommand="Select * from [Table2]"

Code snippet Example:


<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
 <asp:GridView ID="GridView1" runat="server" AllowSorting="True" AutoGenerateColumns="False"
DataSourceID="SqlDataSource1">
<Columns>
<asp:TemplateField HeaderText="Office Number" SortExpression="O Number">

.... etc..

<asp:BoundField DataField="Status" HeaderText="Status" SortExpression="Status">
<HeaderStyle BackColor="#EBFFEB" />
</asp:BoundField>

.... etc..

</Columns>
</asp:GridView>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="Data Source=(serverName);Initial Catalog=(databaseName);Integrated Security=True" SelectCommand="Select * from [Table1]"></asp:SqlDataSource>
AnswerRe: Gridview SqlDataSource SelectCommand Pin
Tomb42111-Mar-09 11:16
Tomb42111-Mar-09 11:16 
GeneralRe: Resolved: Gridview SqlDataSource SelectCommand Pin
Tomb42117-Mar-09 9:23
Tomb42117-Mar-09 9:23 
QuestionHow to send the ID field of a datalist to another page? Pin
Arroci11-Mar-09 9:17
Arroci11-Mar-09 9:17 
AnswerRe: How to send the ID field of a datalist to another page? Pin
Christian Graus11-Mar-09 9:33
protectorChristian Graus11-Mar-09 9:33 
AnswerRe: How to send the ID field of a datalist to another page? Pin
Yusuf11-Mar-09 9:50
Yusuf11-Mar-09 9:50 
GeneralRe: How to send the ID field of a datalist to another page? Pin
Christian Graus11-Mar-09 9:54
protectorChristian Graus11-Mar-09 9:54 
AnswerRe: How to send the ID field of a datalist to another page? Pin
Arroci11-Mar-09 11:18
Arroci11-Mar-09 11:18 
GeneralRe: How to send the ID field of a datalist to another page? Pin
Christian Graus11-Mar-09 12:25
protectorChristian Graus11-Mar-09 12:25 
GeneralRe: How to send the ID field of a datalist to another page? Pin
Yusuf11-Mar-09 12:58
Yusuf11-Mar-09 12:58 
GeneralRe: How to send the ID field of a datalist to another page? Pin
Arroci11-Mar-09 13:19
Arroci11-Mar-09 13:19 
GeneralRe: How to send the ID field of a datalist to another page? Pin
Yusuf11-Mar-09 13:48
Yusuf11-Mar-09 13:48 
GeneralRe: How to send the ID field of a datalist to another page? Pin
Arroci11-Mar-09 14:15
Arroci11-Mar-09 14:15 
GeneralRe: How to send the ID field of a datalist to another page? Pin
Yusuf11-Mar-09 15:12
Yusuf11-Mar-09 15:12 
GeneralRe: How to send the ID field of a datalist to another page? Pin
Christian Graus11-Mar-09 15:46
protectorChristian Graus11-Mar-09 15:46 
GeneralRe: How to send the ID field of a datalist to another page? [modified] Pin
Arroci11-Mar-09 18:19
Arroci11-Mar-09 18:19 
GeneralRe: How to send the ID field of a datalist to another page? Pin
Arroci12-Mar-09 10:26
Arroci12-Mar-09 10:26 
QuestionHow to display a jpg on a web page Pin
scjsb11-Mar-09 4:57
scjsb11-Mar-09 4:57 

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.