|
|
There is excellent tool named as fancybox.
Click Here to get details.
I have used this its really great.
Cheers!!
Brij
|
|
|
|
|
hello brother
Just i want to know
Page 1 of 66 [1 2 3 4 5 6 7 8 9 10 ]First · Prev · Next
this above line is there right tell me how can i do same in bottom of gridview
Some Thing need 2 do NEW
|
|
|
|
|
Good Day Rajeshwar
I really dont undestand you well, i think you mean you know to know how to do paging in ASp.net ?
here is how its done
Paging without a wizard (SqldataSource control) [^]
Hope it Helps
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.somee.com
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
Thanks brother ,
i used code what is there in ur article , in VS 2008 what code i use for paging.
Some Thing need 2 do NEW
|
|
|
|
|
You are Welcome
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.somee.com
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
why dont you use
<asp:DataPager ID="dpage" runat="server">
<Fields>
<asp:NumericPagerField />
</Fields>
</asp:DataPager>
Easy isnt it?
|
|
|
|
|
plz tel me how to resolve that error
my code is
<asp:GridView ID="gridView" runat="server" Style="position: relative; left: 299px; top: 69px;" PageSize="5" OnRowCommand="gridView_OnRowCommand" AllowPaging="True" OnSelectedIndexChanged="gridView_SelectedIndexChanged1" >
<PagerTemplate>
<% if (gridView.PageIndex > 0)
{ %>
<asp:ImageButton ID="imgBtnPrevious" runat="server" Style="vertical-align: middle;" ImageUrl="pre.jpg" OnClick="click1"
CommandArgument="Prev" CommandName="Page" />
<% } %>
<%=(gridView.PageIndex * 5) + 1%> <%=(gridView.PageIndex * 5) + gridView.Rows.Count%>
<% if (gridView.PageIndex != (gridView.PageCount - 1))
{ %>
<asp:ImageButton ID="imgBtnNext" runat="server" Style="vertical-align: middle;" ImageUrl="next.jpg" OnClick="click" CommandArgument="Next" CommandName="Page" />
<% } %>
<%--<asp:ImageButton ID="imgBtnNext" runat="server"
Style="vertical-align: middle;" ImageUrl="next.jpg"
CommandArgument='<%# Eval("Next")%>' OnClick="click" CommandName="Page" />--%>
</PagerTemplate>
</asp:GridView>
</asp:Panel>
<%--<%=(gridView.PageIndex * 5) + 1%> <%=(gridView.PageIndex * 5) + gridView.Rows.Count%> --%>
<% if (gridView.PageIndex != (gridView.PageCount - 1))
{ %>
<asp:ImageButton ID="imgBtnNext" runat="server" Style="vertical-align: middle;" ImageUrl="next.jpg" OnClick="click" CommandArgument="Next" CommandName="Page" />
<% } %>
<%--<asp:ImageButton ID="imgBtnNext" runat="server"
Style="vertical-align: middle;" ImageUrl="next.jpg"
CommandArgument='<%# Eval("Next")%>' OnClick="click" CommandName="Page" />--%>
</PagerTemplate>
</asp:GridView>
and code behind is
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
DataSet ds = new DataSet();
SqlDataAdapter adapPaging = new SqlDataAdapter("select * from customer", "Data Source=OPWFMS-7KYGZ7SB;Initial Catalog=Mayank;User ID=sa;Password=sa");
adapPaging.Fill(ds);
gridView.DataSource = ds;
gridView.DataBind();
}
public void click1(object send, ImageClickEventArgs e)
{
GridViewPageEventArgs obj = new GridViewPageEventArgs(gridView.PageIndex - 1);
gridView.PageIndex = obj.NewPageIndex;
LinkButton exmp = new LinkButton();
exmp.Text = "exmp";
Panel1.Controls.Add(exmp);
}
public void click(object send, ImageClickEventArgs e)
{
GridViewPageEventArgs obj = new GridViewPageEventArgs(gridView.PageIndex+1);
gridView.PageIndex = obj.NewPageIndex;
}
}
|
|
|
|
|
Seriously your code is not readable. Please post it in proper Format
As For Example :
protected void Page_Load(object sender, EventArgs e)
{
DataSet ds = new DataSet();
SqlDataAdapter adapPaging = new SqlDataAdapter("select * from customer", "Data Source=OPWFMS-7KYGZ7SB;Initial Catalog=Mayank;User ID=sa;Password=sa");
adapPaging.Fill(ds);
gridView.DataSource = ds;
gridView.DataBind();
}
so that every body can easily understand the code and give you a quick solution.
pupilstuff wrote: Subject: error : panel1 does not exits in correct context
It clearly saying that Panel1 does not exist
|
|
|
|
|
I am not able to see the panel on the page.where is it?
Cheers!!
Brij
|
|
|
|
|
It is very hard to understand code blocks when there are lots of Server Tags and even most of them are Commented out.
I can see in designer of your html most of the codes are commented out using
<%-- --%>
and also if you have placed a Panel1 in html, please let us see the control in designer.
If you need to use a control Panel1 you need to add
<asp:panel id="Panel1" runat="server">
in your designer, also this shouldnt be within <%-- --%> tag
|
|
|
|
|
hiii
i have created a menu dynamically.i have populated the menuitems from data base.
Now i want that whenever user clicks particular menu item it gets redirect to particular page.
can any body guide me regarding this matter.........
thanks....
|
|
|
|
|
Are you using Asp:Menu, if so use
MenuItem item = new MenuItem("MyItem");
item.NavigateUrl = "yoururl.aspx";
If you are generating the HTML dynamically for menu, just place OnClick attribute for the LI/div item
|
|
|
|
|
pariofshona wrote: Now i want that whenever user clicks particular menu item it gets redirect to particular page.
User MenuItem.NavigateURL
|
|
|
|
|
|
Hi all ,
I'm using asp.net and crystal report
I'd like to view all pages of the crystal report in the web page without using crystal toolbar to navigate the pages ..
can I do that ?
jooooo
|
|
|
|
|
Any type of reporting engine I think renders an HTML, to place it inside a browser.
So If you somehow know the request path for the handler that creates the HTML for you, you can place it in any html container you want.
Check out which request it generates for your report.
|
|
|
|
|
Thanks for reply,
I'm designing a report which contain alot of component in addition to CrystalReportViewer1 ,,
then i'd like to view all pages of the report as html ,
I hope I can do it
jooooo
|
|
|
|
|
so thanks i found it
CrystalReportViewer1.SeparatePages = false;
jooooo
|
|
|
|
|
|
tell me what is assigned to
regSerNo.ControlToValidate
??
|
|
|
|
|
hi,
any one help me,
How to pass values from textboxes on one page to a "another page" using session.
I have the follwing code but it shows an error msg.
public string PassingSession ;
Session["strPharmacyId"] = txtPharmacyId.Text.Trim();
Session["strStoreName"] = txtStoreName.Text.Trim();
Session["strAddress1"] = txtAddress.Text.Trim();
Session["strCity"] = txtCity.Text.Trim();
Session["strState"] = txtState.Text.Trim();
PassingSession = PassingSession + Session["strPharmacyId"];
PassingSession = PassingSession + Session["strStoreName"];
PassingSession = PassingSession + Session["strAddress1"];
PassingSession = PassingSession + Session["strCity"];
PassingSession = PassingSession + Session["strState"];
Session["Pharmacy"] = PassingSession;
dtSession = (DataTable)Session["Pharmacy"];
msg: "can't convert string to datatable";
|
|
|
|
|
Vijay.RG wrote: dtSession = (DataTable)Session["Pharmacy"];
What you are doing over here?
|
|
|
|
|
Passing the session value to datatable object.
DataTable dtSession=new DataTable();
dtSession ==> Datatable object.
|
|
|
|
|
I think you have already got the answer from Manas Post.
Vijay.RG wrote: Passing the session value to datatable object.
Never do like that. It will cause very performance issue.
|
|
|
|