Click here to Skip to main content
15,885,366 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questioncustom pagging with dataset and updatepannel Pin
bikash pattanayak13-Mar-09 20:23
bikash pattanayak13-Mar-09 20:23 
AnswerRe: custom pagging with dataset and updatepannel Pin
Abhijit Jana13-Mar-09 21:38
professionalAbhijit Jana13-Mar-09 21:38 
GeneralRe: custom pagging with dataset and updatepannel Pin
bikash pattanayak15-Mar-09 21:48
bikash pattanayak15-Mar-09 21:48 
QuestionHow to open a new window using server.transfer method. [modified] Pin
Radiv Jeshya13-Mar-09 20:15
Radiv Jeshya13-Mar-09 20:15 
QuestionHigri Calander - Valid values are between 1 and 9666, inclusive.Parameter name: year Pin
Mohamed Ibrahim Omar13-Mar-09 20:13
Mohamed Ibrahim Omar13-Mar-09 20:13 
AnswerRe: Higri Calander - Valid values are between 1 and 9666, inclusive.Parameter name: year Pin
hamzahudwan26-Aug-09 0:52
hamzahudwan26-Aug-09 0:52 
GeneralRe: Higri Calander - Valid values are between 1 and 9666, inclusive.Parameter name: year Pin
Mohamed Ibrahim Omar26-Aug-09 1:11
Mohamed Ibrahim Omar26-Aug-09 1:11 
QuestionError when clicking a link ... Pin
muhammadafsal13-Mar-09 20:00
muhammadafsal13-Mar-09 20:00 
Error when clicking a link ,
before applying session id on login page there was no link error .
how can i remove this link error , can someone please help me...,

here is the 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;



}

protected void Button1_Click(object sender, EventArgs e)
{
Response.Write("<script language=javascript>var wnd=window.open('','newWin','height=1,width=1,left=900,top=700,status=no,toolbar=no,menubar=no,scrollbars=no,maximize=false,resizable=1');</script>");
Response.Write("<script language=javascript>wnd.close();</script>");
Response.Write("<script language=javascript>window.open('Login.aspx','_parent',replace=true);</script>");
Session.Abandon();

}




protected void Button7_Click(object sender, EventArgs e)
{
adp = new SqlDataAdapter("select country,date,title,url, description, author, city from postupdation where languages='"+DropDownList1.SelectedItem.Text+"'", con);
adp.Fill(ds);
GridView1.DataSource = ds;
GridView1.DataBind();
}
protected void Button2_Click(object sender, EventArgs e)
{
adp = new SqlDataAdapter("select country,date,url,title, description, author, city from postupdation where categories='" + DropDownList2.SelectedItem.Text + "'", con);
adp.Fill(ds);
GridView1.DataSource = ds;
GridView1.DataBind();

}
protected void LinkButton7_Click(object sender, EventArgs e)
{

Response.Redirect("postupdation.aspx?a=" + TextBox1 .Text );
}
protected void LinkButton6_Click(object sender, EventArgs e)
{

Response.Redirect("postupdation.aspx?a=" + TextBox1.Text);
}
protected void LinkButton6_Click1(object sender, EventArgs e)
{
Response.Redirect("usersforum.aspx?a=" + TextBox1.Text);
}
protected void LinkButton1_Click(object sender, EventArgs e)
{
Response.Redirect("member.aspx?a=" + TextBox1.Text);
}
protected void LinkButton2_Click(object sender, EventArgs e)
{

}
protected void LinkButton8_Click(object sender, EventArgs e)
{
Response.Redirect("commentbox.aspx?a=" + TextBox1.Text);
}
protected void LinkButton3_Click(object sender, EventArgs e)
{

}

....


<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
</head>
<body text="#e00000" bgcolor="#ccccff">
<form id="form1" runat="server">
<div>
<asp:LinkButton ID="LinkButton1" runat="server" Style="z-index: 100; left: 203px;
position: absolute; top: 237px" Width="74px" Font-Size="13pt" BorderStyle="None" BorderWidth="15px" Font-Bold="True" Font-Italic="False" ForeColor="Yellow" Height="20px" BorderColor="DarkRed" Font-Names="Courier New" PostBackUrl="~/member.aspx" Font-Underline="False" OnClick="LinkButton1_Click">Members</asp:LinkButton>
<asp:LinkButton ID="LinkButton2" runat="server" Style="z-index: 101; left: 285px;
position: absolute; top: 238px" Font-Size="13pt" BorderStyle="None" BorderWidth="15px" Font-Bold="True" Font-Italic="False" ForeColor="Yellow" Height="22px" Width="78px" BorderColor="DarkRed" Font-Names="Courier New" Font-Underline="False" OnClick="LinkButton2_Click" PostBackUrl="~/blogs.aspx">Blogs</asp:LinkButton>
<asp:LinkButton ID="LinkButton3" runat="server"
Style="z-index: 102; left: 81px; position: absolute; top: 236px" Font-Size="13pt" Height="20px" Width="118px" BorderStyle="None" BorderWidth="15px" Font-Bold="True" Font-Italic="False" ForeColor="Yellow" BorderColor="DarkRed" Font-Names="Courier New" Font-Underline="False" PostBackUrl="~/displayprofile.aspx" OnClick="LinkButton3_Click">My profile</asp:LinkButton>
<asp:LinkButton ID="LinkButton4" runat="server" PostBackUrl="~/Homepage.aspx" Style="z-index: 103;
left: 20px; position: absolute; top: 236px" Font-Size="13pt" BorderStyle="None" BorderWidth="15px" Font-Italic="False" ForeColor="Yellow" Height="15px" Width="55px" BorderColor="DarkRed" Font-Bold="True" Font-Names="Courier New" Font-Underline="False">Home</asp:LinkButton>
    
<asp:Label ID="Label1" runat="server" Font-Size="25pt" Style="z-index: 104; left: 382px;
position: absolute; top: 337px" Text=" Recently Updated" Width="392px" Font-Bold="True" Font-Names="Andalus" Font-Italic="False" Font-Underline="False"></asp:Label>
          
<asp:LinkButton ID="LinkButton7" runat="server" Font-Bold="True" Font-Size="13pt"
PostBackUrl="~/postupdation.aspx" Style="z-index: 105; left: 501px; position: absolute;
top: 240px" BorderStyle="None" BorderWidth="15px" Font-Italic="False" ForeColor="Yellow" Height="20px" Width="65px" BorderColor="DarkRed" Font-Names="Courier New" Font-Underline="False" OnClick="LinkButton7_Click">SUBMIT</asp:LinkButton>
          
<asp:Label ID="Label4" runat="server" ForeColor="#C00000" Style="z-index: 106; left: 10px;
position: absolute; top: 311px" Text="Search by"></asp:Label>
<asp:DropDownList ID="DropDownList1" runat="server" Height="43px" Style="z-index: 107;
left: 77px; position: absolute; top: 311px" Width="132px" BackColor="#CCCCFF">
<asp:ListItem>Languages</asp:ListItem>
<asp:ListItem>English</asp:ListItem>
<asp:ListItem>Malayalam</asp:ListItem>
<asp:ListItem>Tamil</asp:ListItem>
<asp:ListItem>Telugu</asp:ListItem>
<asp:ListItem>Kannada</asp:ListItem>
</asp:DropDownList>
<asp:Button ID="Button7" runat="server" Style="z-index: 108; left: 218px; position: absolute;
top: 311px" Text="Go" OnClick="Button7_Click" />
        
<asp:LinkButton ID="LinkButton5" runat="server" Font-Bold="True" Font-Size="13pt"
ForeColor="Yellow" PostBackUrl="~/Search.aspx" Style="z-index: 109; left: 930px;
position: absolute; top: 236px">Search</asp:LinkButton>
   
<asp:LinkButton ID="LinkButton8" runat="server" Font-Bold="True" ForeColor="Yellow"
Height="21px" Style="z-index: 110; left: 372px; position: absolute; top: 239px" Font-Names="Courier New" Font-Size="13pt" Width="112px" PostBackUrl="~/Commentbox.aspx" OnClick="LinkButton8_Click">Comment Box</asp:LinkButton>
       
       
<asp:Button ID="Button1" runat="server" BackColor="#CCCCFF" Font-Size="12pt"
ForeColor="Maroon" OnClick="Button1_Click" Style="z-index: 111; left: 895px;
position: absolute; top: 24px" Text="Logout" BorderColor="White" />
 
<asp:LinkButton ID="LinkButton6" runat="server" Font-Bold="True" Font-Names="Courier New"
Font-Size="12pt" ForeColor="Yellow" PostBackUrl="~/usersforum.aspx" Style="z-index: 112;
left: 579px; position: absolute; top: 240px" Width="181px" OnClick="LinkButton6_Click1">Discussion forum</asp:LinkButton>
<asp:LinkButton ID="LinkButton9" runat="server" Font-Bold="True" Font-Size="12pt"
ForeColor="Yellow" Style="z-index: 113; left: 777px; position: absolute; top: 239px"
Width="50px">Help</asp:LinkButton>
   
<asp:DropDownList ID="DropDownList2" runat="server" BackColor="#C0C0FF" Style="z-index: 114;
left: 803px; position: absolute; top: 306px" Width="126px">
<asp:ListItem>Categories</asp:ListItem>
<asp:ListItem>stories</asp:ListItem>
<asp:ListItem>poems</asp:ListItem>
<asp:ListItem>History</asp:ListItem>
<asp:ListItem>relegions</asp:ListItem>
<asp:ListItem>films</asp:ListItem>
<asp:ListItem>others</asp:ListItem>
<asp:ListItem>photos</asp:ListItem>
<asp:ListItem>arts</asp:ListItem>
<asp:ListItem>education</asp:ListItem>
<asp:ListItem>news</asp:ListItem>
</asp:DropDownList>
<asp:Label ID="Label2" runat="server" Style="z-index: 115; left: 735px; position: absolute;
top: 306px" Text="Search by " ForeColor="#C00000"></asp:Label>
<asp:Button ID="Button2" runat="server" OnClick="Button2_Click" Style="z-index: 116;
left: 937px; position: absolute; top: 307px" Text="Go" />
<asp:TextBox ID="TextBox1" runat="server" BackColor="#CCCCFF" BorderStyle="None"
Font-Bold="True" Font-Size="14pt" ForeColor="Maroon" Style="z-index: 117; left: 56px;
position: absolute; top: 87px"></asp:TextBox>
 

</div>
<asp:Label ID="Label3" runat="server" Font-Size="14pt" ForeColor="Maroon" Style="z-index: 118;
left: 23px; position: absolute; top: 93px" Text="Hii,"></asp:Label>
    
<img src="Picturs/a10001.jpg" style="z-index: 99; left: -13px; width: 1008px; position: absolute;
top: 155px; height: 141px" />
<asp:Label ID="Label5" runat="server" Font-Bold="True" Font-Italic="False" Font-Names="Simplified Arabic Fixed"
ForeColor="Purple" Style="z-index: 119; left: 432px; position: absolute; top: 108px"
Text=" Blogagregatore" Font-Size="13pt"></asp:Label>
 
<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>
</form>
</body>
</html>
AnswerRe: Error when clicking a link ... Pin
Abhijit Jana13-Mar-09 21:32
professionalAbhijit Jana13-Mar-09 21:32 
QuestionIs it possible to search dynamic content which is generated by querystring Pin
cooolguymca13-Mar-09 18:38
cooolguymca13-Mar-09 18:38 
AnswerRe: Is it possible to search dynamic content which is generated by querystring Pin
Christian Graus13-Mar-09 18:40
protectorChristian Graus13-Mar-09 18:40 
QuestionAdding a custom config file to a website. Pin
Steve Holdorf13-Mar-09 10:44
Steve Holdorf13-Mar-09 10:44 
AnswerRe: Adding a custom config file to a website. Pin
N a v a n e e t h13-Mar-09 16:53
N a v a n e e t h13-Mar-09 16:53 
QuestionFile (PDF *.Doc) Display with ASP.NET Pin
ffowler13-Mar-09 8:53
ffowler13-Mar-09 8:53 
AnswerRe: File (PDF *.Doc) Display with ASP.NET Pin
Christian Graus13-Mar-09 17:18
protectorChristian Graus13-Mar-09 17:18 
QuestionDisable save as from File menu Pin
hemant.kaushal13-Mar-09 4:26
hemant.kaushal13-Mar-09 4:26 
AnswerRe: Disable save as from File menu Pin
Rutvik Dave13-Mar-09 6:58
professionalRutvik Dave13-Mar-09 6:58 
AnswerRe: Disable save as from File menu Pin
Vasudevan Deepak Kumar13-Mar-09 22:24
Vasudevan Deepak Kumar13-Mar-09 22:24 
QuestionQuery on page tracking Pin
MT_shyama13-Mar-09 3:29
MT_shyama13-Mar-09 3:29 
AnswerRe: Query on page tracking Pin
Rutvik Dave13-Mar-09 6:52
professionalRutvik Dave13-Mar-09 6:52 
QuestionUsing asp.net website and its associated class library through visual source safe. Pin
hozsam13-Mar-09 2:46
hozsam13-Mar-09 2:46 
AnswerRe: Using asp.net website and its associated class library through visual source safe. Pin
hemant.kaushal13-Mar-09 4:41
hemant.kaushal13-Mar-09 4:41 
GeneralRe: Using asp.net website and its associated class library through visual source safe. Pin
hozsam13-Mar-09 17:49
hozsam13-Mar-09 17:49 
QuestionSharePoint And Calendar Control: cannot select anything Pin
Denis Sabic13-Mar-09 2:27
Denis Sabic13-Mar-09 2:27 
Questionhow to add sms gateway and its webservices to an asp.net application Pin
premprakashbhati13-Mar-09 2:05
premprakashbhati13-Mar-09 2:05 

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.