Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
P

Prabs frm PGP

@Prabs frm PGP
About
Posts
35
Topics
17
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Datagrid Paging....
    P Prabs frm PGP

    Hi! Simply my prob is: For Datagrid i used 3 events: ItemCommand,Databound & PAgeindexchanged.. Here that Page index changed wnt work, Instead of that it redirects the page where i mentioned in the itemcommand event, this event takes the more preference than page index, How can we solve..? If u need more explanation: I hv the datagrid name as dg. i want to do paginng in that dg control. I am using c#. I fetched the imagebutton control name as img to the dg. If we clicks that img it has to go another form(Models.aspx). For this i used: dg_itemdatabound event for find the control (img) dg_itemcommand event for redirects to next page(Models.aspx) Now i used 3rd event for the same dg control: dg_Pageindexchanged event for paging. Problem is: I got the Prev & Next Buttons in the dg but if i clicks that one it redirects the page to Models.aspx (which is i mentioned in the itemcommand event) I am displaying the next form based on the click of the imagebutton dynamically.. instead of that it has to display the remaining values... I hope u got my problem.., How can we solve this one? Prabu.T

    ASP.NET csharp database help question

  • Error Occurs while Paging in Datagrid!.......
    P Prabs frm PGP

    Hi I want to do paging in the datalist. For that i wrote the code: public int intStart=0; private void Page_Load(object sender, System.EventArgs e) { if(!IsPostBack) { ViewState ["Start"]= 0; list(); } } public void list() { conn.Open(); SqlDataAdapter sda = new SqlDataAdapter("select name from sampledatagrid",conn); DataSet ds1 = new DataSet(); intStart = (int) ViewState["Start"]; ViewState ["PageSize"]=7; sda.Fill(ds1,intStart,(int)ViewState["PageSize"],"sampledatagrid"); dlistSample.DataSource=ds1.Tables[0].DefaultView; dlistSample.DataBind(); conn.Close(); } private void lnkPrevious_Click(object sender, System.EventArgs e) { intStart = (int) ViewState["Start"] -(int) ViewState["pageSize"]; ViewState["Start"] = intStart; if (intStart <= 0 ) { ViewState["Start"] = 0; } list(); } private void lnkNext_Click(object sender, System.EventArgs e) { int dlistcount = dlistSample.Items.Count; intStart = (int)ViewState["Start"] + (int)ViewState["pageSize"]; ViewState["Start"] = intStart; if ( dlistcount < (int)ViewState["pageSize"] ) { ViewState["Start"] = (int)ViewState["Start"] - (int)ViewState["pageSize"]; } list(); } } Here the values are displayed correctly in the Datalist., But If i cliks the Next or previus linkbutton(<< or >>) at the time it shows the error: Object reference not set to an instance of an object. Error occured in this line: intStart = (int)ViewState["Start"] + (int)ViewState["pageSize"]; How can we solve this one? Prabu.T

    ASP.NET help question

  • Datagrid Paginng....
    P Prabs frm PGP

    Hi! I hv the datagrid name as dg. i want to do paginng in that dg control. I am using c#. I fetched the imagebutton control name as img to the dg. If we clicks that img it has to go another form(Models.aspx). For this i used: dg_itemdatabound event for find the control (img) dg_itemcommand event for redirects to next page(Models.aspx) Now i used 3rd event for the same dg control: dg_Pageindexchanged event for paging. Problem is: I got the Prev & Next Buttons in the dg but if i clicks that one it redirects the page to Models.aspx (which is i mentioned in the itemcommand event) instead of that it has to display the remaining values... I hope u got my problem.., How can we solve this one? Another one: How to Paging in DataList? Prabu.T

    ASP.NET csharp help tutorial question

  • Error Occurs in Datagrid Paging!.......
    P Prabs frm PGP

    Hi! I want to do the Paging in the datagrid., I used data item command event also this is for if we clicks the link button in that grid., it has to redirects to another page., In that data grid, If i clicks the Next it shows the next form(which is i denotes in the item command., ) instead of the next datagrid page... The same code i used for this one is working properly in the other project there i didn't use any item command event... How can we solve this one..? Prabu.T

    ASP.NET css help question

  • Basics About COM.....
    P Prabs frm PGP

    Thanks yar....

    COM question csharp com

  • Text should go across(Marquee)... [modified]
    P Prabs frm PGP

    Hi Apurva., Thanks for ur efforts yar., I got that one.. T.Prabu

    ASP.NET html database question

  • Text should go across(Marquee)... [modified]
    P Prabs frm PGP

    Hi Thomas, Thanks yar., Now its working properly., If u free., Can you explain the coding what u sent to me..? T.Prabu

    ASP.NET html database question

  • Text should go across(Marquee)... [modified]
    P Prabs frm PGP

    Hi Apurva! I already i tried like that yar., But I didn't get.., I used like this only: marquee asp:Label id="lblCopy1" style="Z-INDEX: 106; LEFT: 264px; POSITION: absolute; TOP: 319px" runat="server" Height="276px" Width="129px"> /asp:Label /marquee T.Prabu -- modified at 1:26 Thursday 17th August, 2006

    ASP.NET html database question

  • Basics About COM.....
    P Prabs frm PGP

    Hi! I am a newer., What is COM? Why we relates this one to .net..? If i want to know basics abt the COM Can you refer any good site..? T.Prabu

    COM question csharp com

  • Paging in Datalist....
    P Prabs frm PGP

    Hi! Can any one send me the sample code for paging in DataList? Prabu.T

    .NET (Core and Framework) question

  • Paging in DataList?
    P Prabs frm PGP

    Hi! Can any one send me the sample coding for the Paging in DataList..? Prabu.T

    ASP.NET question

  • Text should go across(Marquee)... [modified]
    P Prabs frm PGP

    Hi! I am retrieving the value from the DB and display that value in the label box & Text box that values should be go across... I tried marquee tag in HTML before that controls & inside that control near text .... but i couldn't ge.. How can we get that one..? T.Prabu -- modified at 0:56 Thursday 17th August, 2006

    ASP.NET html database question

  • paging in DataGrid:
    P Prabs frm PGP

    Hi Satips! Thanks for ur response... I vl go through that link., If i hv any doubt i vl let u know., Bye., T.Prabu

    ASP.NET

  • paging in DataGrid:
    P Prabs frm PGP

    Hi Satips! As i told earlier., I got the values in the grid, and that page no s also.. It shows the first page, If i clicks the 2 nd page no ., it redirects to another page (instead of displaying remaining data...) If u want to chk my code let me know i vl send u.... And then, How can v achieve the pagiong in data list..? T.Prabu

    ASP.NET

  • Paging in
    P Prabs frm PGP

    Hi! I have to do paging in thr datagrid., for that I wrote the code : private void DataGrid1_PageIndexChanged(object source, System.Web.UI.WebControls.DataGridPageChangedEventArgs e) { DataGrid1.CurrentPageIndex=e.NewPageIndex; models(); } In models() Func... I retrieve the value from the DB. It shows the value and that the Page no also: 1,2,3.... Bur if i clicks the 2nd page.. It goes to next form.. it doesn't show the values... How can we solve this one..? How can we do the paging in the DataList..? T.Prabu

    ASP.NET database design question

  • paging in DataGrid:
    P Prabs frm PGP

    I want to do

    ASP.NET

  • Text has to go across...
    P Prabs frm PGP

    Hi! I retrieve a value from db in a textbox., That value has to go across., I tried that marquee in HTML I use this tag in that text box i couldn't get., How can we do this one..? T.Prabu

    ASP.NET html database question

  • Pass the value from one page to another page.....
    P Prabs frm PGP

    Hi! Thanks Apurva... I got the solution with the help of u.. Thanks., Bye..., T.Prabu

    ASP.NET question

  • Pass the value from one page to another page.....
    P Prabs frm PGP

    Hi Apurva., I am newer. i want toretrieve that imagebutton's imageurl wheich is in the datagrid. I can retrieve that value only in databound event using datarowview... I want to pass this value to next page... In item command event only i can use response.redirect... with the query string.. I tried as u say, commandargument in itemcommand event it shows only the null value.., If possible send me the sample coding..., And also for the Paging in datalist also... Thanks & Regards!.. T.Prabu

    ASP.NET question

  • Pass the value from one page to another page.....
    P Prabs frm PGP

    Can you let me know abt that command argument?...

    ASP.NET question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups