Click here to Skip to main content
15,907,001 members
Home / Discussions / C#
   

C#

 
Questionhow to cause current application to close upon arrival of new updated application ? Pin
shabya14-Mar-09 3:14
shabya14-Mar-09 3:14 
AnswerRe: how to cause current application to close upon arrival of new updated application ? Pin
Navneet Hegde14-Mar-09 8:59
Navneet Hegde14-Mar-09 8:59 
GeneralRe: how to cause current application to close upon arrival of new updated application ? Pin
shabya14-Mar-09 9:31
shabya14-Mar-09 9:31 
GeneralRe: how to cause current application to close upon arrival of new updated application ? Pin
Navneet Hegde15-Mar-09 0:13
Navneet Hegde15-Mar-09 0:13 
GeneralRe: how to cause current application to close upon arrival of new updated application ? Pin
shabya15-Mar-09 11:27
shabya15-Mar-09 11:27 
QuestionSize of Color struct? Pin
Mohammad Dayyan14-Mar-09 3:04
Mohammad Dayyan14-Mar-09 3:04 
AnswerRe: Size of Color struct? [modified] Pin
Luc Pattyn14-Mar-09 3:15
sitebuilderLuc Pattyn14-Mar-09 3:15 
GeneralRe: Size of Color struct? Pin
Mohammad Dayyan14-Mar-09 3:19
Mohammad Dayyan14-Mar-09 3:19 
GeneralRe: Size of Color struct? Pin
Luc Pattyn14-Mar-09 3:26
sitebuilderLuc Pattyn14-Mar-09 3:26 
GeneralRe: Size of Color struct? Pin
#realJSOP14-Mar-09 3:31
professional#realJSOP14-Mar-09 3:31 
GeneralRe: Size of Color struct? Pin
DaveyM6914-Mar-09 4:09
professionalDaveyM6914-Mar-09 4:09 
GeneralRe: Size of Color struct? Pin
Luc Pattyn14-Mar-09 4:30
sitebuilderLuc Pattyn14-Mar-09 4:30 
GeneralRe: Size of Color struct? [modified] Pin
DaveyM6914-Mar-09 5:44
professionalDaveyM6914-Mar-09 5:44 
GeneralRe: Size of Color struct? Pin
DaveyM6914-Mar-09 6:11
professionalDaveyM6914-Mar-09 6:11 
GeneralRe: Size of Color struct? Pin
Luc Pattyn14-Mar-09 4:51
sitebuilderLuc Pattyn14-Mar-09 4:51 
AnswerRe: Size of Color struct? Pin
Luc Pattyn14-Mar-09 4:48
sitebuilderLuc Pattyn14-Mar-09 4:48 
GeneralRe: Size of Color struct? Pin
Xmen Real 14-Mar-09 5:48
professional Xmen Real 14-Mar-09 5:48 
GeneralRe: Size of Color struct? Pin
Luc Pattyn14-Mar-09 6:03
sitebuilderLuc Pattyn14-Mar-09 6:03 
GeneralRe: Size of Color struct? Pin
Xmen Real 14-Mar-09 6:10
professional Xmen Real 14-Mar-09 6:10 
GeneralRe: Size of Color struct? Pin
Luc Pattyn14-Mar-09 6:43
sitebuilderLuc Pattyn14-Mar-09 6:43 
QuestionHow to load the right Interop Assembly in runtime ? Pin
Yanshof14-Mar-09 2:34
Yanshof14-Mar-09 2:34 
QuestionGridview updation problem Pin
muhammadafsal14-Mar-09 1:52
muhammadafsal14-Mar-09 1:52 
How to retrieve data from sqldatabase to gridview's top row.
now i can display data from databse to gridview,but i need to retreve last updated data from database to gridview's top row.

source code:
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" Style="z-index: 120;
left: 59px; position: absolute; top: 457px" CellPadding="4" ForeColor="#333333" GridLines="None" Height="170px" Width="890px" AllowSorting="True" BorderWidth="2px" CellSpacing="5">
<Columns>
<asp:BoundField DataField="date" HeaderText="Date" InsertVisible="False" />
<asp:BoundField DataField="description" HeaderText="Description" />
<asp:HyperLinkField DataNavigateUrlFields="url" DataTextField="title" HeaderText="Click here to read more"
NavigateUrl="url" Target="_parent" />
<asp:BoundField DataField="country" HeaderText="Country" />
<asp:BoundField DataField="city" HeaderText="City" />
<asp:BoundField DataField="author" HeaderText="Author" />
</Columns>
<FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
<RowStyle BackColor="#CCCCFF" ForeColor="#333333" />
<SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
<PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" />
<HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
<AlternatingRowStyle BackColor="White" />
</asp:GridView>



c# code:
protected void Page_Load(object sender, EventArgs e)
{

string m;
m = Request.QueryString["a"].ToString();

TextBox1.Text = m;

if (!IsPostBack)
show();


}
private void show()
{
adp = new SqlDataAdapter("select date ,title ,url ,description, author, city,country from postupdation ", con);
adp .Fill (ds);
GridView1.DataSource = ds;
GridView1.DataBind();
// GridView2.Visible = true;



}


can any one pls help me
AnswerRe: Gridview updation problem Pin
Blue_Boy14-Mar-09 2:33
Blue_Boy14-Mar-09 2:33 
QuestionIdle processing in windows forms Pin
saksp14-Mar-09 1:19
saksp14-Mar-09 1:19 
AnswerRe: Idle processing in windows forms Pin
dataminers14-Mar-09 1:41
dataminers14-Mar-09 1:41 

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.