|
To be a little more specific, it is not a HttpApplication but a Windows Forms Application calling the web service. Maybe i better posted it in another message board. But because i am not sure the problem resides on the Client side, and it's includes ASP.NET, i posted it here.
It feels good to learn and achieve
|
|
|
|
|
Hi All,
I am trying to bind a GridView with an user defined object it is binding fine when I dont use AlloPaging="false" but is giving exception when I try to implement paging in it.
It is giving Datasource doesnt allow serverside paging.
Can anybody please advice me how can I achieve paging in GRidView when I bind it with an object.
Any code snippet or any links are verymuch usefull.
Thanks,
Md. Abdul Aleem.
Thanks & Regards,
Md. Abdul Aleem
NIIT technologies
|
|
|
|
|
Check this
Paging without a wizard (SqldataSource control) [^]
Hope it Helps
Vuyiswa Maseko
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.tiyaneProperties.co.za
vuyiswa@its.co.za
www.ITS.co.za
|
|
|
|
|
|
Let us See your Code and we will tell when you have gone wrong. Another thing you say you have set
AlloPaging="false"
that is not Correct its
AllowPaging="false"
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.tiyaneProperties.co.za
vuyiswa@its.co.za
www.ITS.co.za
|
|
|
|
|
Ok spelling mistake but it is not the problem in the real code
Thanks & Regards,
Md. Abdul Aleem
NIIT technologies
|
|
|
|
|
Do you still have a Problem ? if so please Post your Code. i see your work for NIIT, which Country ?
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.tiyaneProperties.co.za
vuyiswa@its.co.za
www.ITS.co.za
|
|
|
|
|
hi all
I am trying to create a web farm in iis6. I have set session mode=stateserver.
But the session expires frequently .please guide on this
Tejesh
|
|
|
|
|
tejesh123 wrote:
But the session expires frequently .please guide on this
Be more specific. Does it time out? Does it simply lose the session when it transfers to another machine in the farm?
Have you synchronised the machine key across the servers? Have you ensured that the IIS Identfier is the same for the website across all servers? Can each of the web servers see the state server?
|
|
|
|
|
|
tejesh123 wrote: Thx for the Soln
That shows either you did not read the reply or you're too ignorant to differentiate between question and comment. If you can not understand such simple reply, I wonder how you will resolve your issue?
You could have simply thanked for the reply and mentioned you look into it, or get back to him later, which shows your gratitude and comprehension.
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
|
Thx Abhijit a very nice article on Session state management..
Well i am testing the same for the Web garden getting session timeout.
I also edited the machine.config file for webgarden=true and also set the appropriate cpu mask..
Am i missing something
|
|
|
|
|
Did you gone through the all question that asked by colin?
Does you State Server Process Is running? Database is configure properly ?
cheers,
Abhijit
CodeProject MVP
|
|
|
|
|
Sorry to frame wrong question.
My session expires when it tries to jump among CPU's .Yes the state server is configures properly and the database is also working properly.
No issues when no of worker processes set to 1,but soon they are increased it times out.
I have already added state server in web.config and webgarden also set to true in machine.config
It seems to be I am missing out some step ,cant get exactly where..?
|
|
|
|
|
hi,
i have a txt file which is getting updated with records on a server. I am reading the file using a streamreader and filestream, by mapping the drive of the server where the file is getting appended, using asp.net 2005. i am using the following code:
StreamReader reader= new StreamReader(new FileStream(sfilepath, FileMode.Open, FileAccess.Read, FileShare.ReadWrite, 8, FileOptions.Asynchronous));
reader is then passed to a bulkinsert method which inserts the records one by one in the database.
Problem is, sometime duplicate entries gets inserted in the database, but actualy the txt file does not contain duplicate entries.
Sandeep Kumbhar
|
|
|
|
|
Is this being done as a transaction or just row by row inserts?
You could always try to run a select for that record in the db before you decide to insert it.
|
|
|
|
|
no its a row by row insert. the file is getting appended continuously. i am reading it with a streamreader. i am continuing reading from the file with the help of a byte count.
Sandeep Kumbhar
|
|
|
|
|
I have a peculiar issue.
In my form, there is a tree view which is populating correctly. There is also a link button which will be visible only when any of the node in tree view is clicked. So I made LinkButton1.Visible = false on page loading and made as true on SelectedNodeChanged event.
Treeview updation and Selected node change event are all happening inside the Update Panel.
The issue is the linkbutton is not displaying while clicking on selected node. It displays only on buttonclick event. I need to display it while clicking on selected node. Any idea what's happening?
I don't know how to fix this. Please help.
Thanks in advance.
meeram395.
Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.
|
|
|
|
|
Is the link button also present in the update panel ?
"Don't worry if it doesn't work right. If everything did, you'd be out of a job." (Mosher's Law of Software Engineering)
|
|
|
|
|
hello,
how to gridview data export to excel and it should save as zip file??
plz give me complete source code??
its urgent...
chotachetan
|
|
|
|
|
Take one image..on clcik of tht right following code
its save gridview data as .xls
not in zip file
protected void imgBtnExport_Click(object sender, ImageClickEventArgs e)
{
System.IO.StringWriter stringWrite = new System.IO.StringWriter();
System.Web.UI.HtmlTextWriter htmlWrite = new System.Web.UI.HtmlTextWriter(stringWrite);
try
{
DateTime dtFromDate, dtToDate;
dtFromDate = Convert.ToDateTime(txtFromDate.Text);
dtToDate = Convert.ToDateTime(txtToDate.Text);
Response.Clear();
Response.AddHeader("content-disposition", "attachment;filename=ExcelName.xls");
Response.Charset = "";
// If you want the option to open the Excel file without saving then
// comment out the line below
Response.Cache.SetCacheability(System.Web.HttpCacheability.NoCache);
Response.ContentType = "application/vnd.xls";
this.EnableViewState = false;
GridView grdExp = new GridView();
grdExp.AllowPaging = false;
grdExp.AllowSorting = false;
DataSet dsRawProd = objReportBL.GetRawProductivityData(dtFromDate.ToShortDateString(), dtToDate.ToShortDateString(), 0, 0);
if (dsRawProd.Tables.Count > 0 && dsRawProd.Tables[0].Rows.Count > 0)
{
DataTable dtRowPrd = dsRawProd.Tables[0];
DataView dv = new DataView(dtRowPrd);
grdExp.DataSource = dv;
grdExp.DataBind();
//grdExp.Columns.
grdExp.RenderControl(htmlWrite);
}
}
catch (Exception)
{
}
Response.Write(stringWrite.ToString());
Response.End();
}
|
|
|
|
|
But i want i should save as zip format...
it should be save as zip format omly...
|
|
|
|
|
anujchetan wrote: plz give me complete source code??
that would cost you One Lakh Crore
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
hi all,
I am binding a gridview with 18 to 30 thousand records and I have implimented datagrids defult paging concept.But during binding it doesnot give any error where as while rendering the page system hangs for some time and then giveng an error like :
System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
[OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.]
System.IO.MemoryStream.set_Capacity(Int32 value) +59
System.IO.MemoryStream.EnsureCapacity(Int32 value) +47
System.IO.MemoryStream.Write(Byte[] buffer, Int32 offset, Int32 count) +121
System.IO.BinaryWriter.Write(Byte[] buffer, Int32 index, Int32 count) +25
System.Web.UI.ObjectStateFormatter.SerializeValue(SerializerBinaryWriter writer, Object value) +4549
[ArgumentException: Error serializing value 'System.Data.DataSet' of type 'System.Data.DataSet.']
System.Web.UI.ObjectStateFormatter.SerializeValue(SerializerBinaryWriter writer, Object value) +4857
System.Web.UI.ObjectStateFormatter.Serialize(Stream outputStream, Object stateGraph) +140
System.Web.UI.ObjectStateFormatter.Serialize(Object stateGraph) +93
System.Web.UI.ObjectStateFormatter.System.Web.UI.IStateFormatter.Serialize(Object state) +30
System.Web.UI.Util.SerializeWithAssert(IStateFormatter formatter, Object stateGraph) +52
System.Web.UI.HiddenFieldPageStatePersister.Save() +125
System.Web.UI.Page.SavePageStateToPersistenceMedium(Object state) +148
System.Web.UI.Page.SaveAllState() +979
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5018
I am using asp.net 2.0 with vb.net. Please provide some solutions it's urgent.Is there any setting in default pagging so that it will work fine for large data also.
regards
bikash
modified on Wednesday, April 15, 2009 7:19 AM
|
|
|
|