|
|
|
|
I have a report viewer on a asp.net 2.0 page. This page uses a master page which contains: "DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd" ".
I am having this problem where the control is taking up the page appropriately, however, the report is not taking up the control. The report seems to only put 20 characters to a line with of course plenting of space to the right to grow. If you export the report, it looks fine, it is just in the display inside the report viewer.
|
|
|
|
|
Hi Geeks,
Can some pls help me in this problem ?
My Web application has timeout set to 90 sec(which is default) and the DB commandtimeout changed to 90 sec (default is 30 sec) , if my application runs more than 90 sec i get the Timout error from DB, so i increased the DB timeout to 200 sec, now the query works fine, but what is the purpose of the web request timeout which is 90 sec ?
Actally speaking when the request takes more than 90 sec it shd through me an error ? right ?
Note : The application is publised and not in debuig mode.
|
|
|
|
|
You can set your aspscript timeout here:
IIS->your website->right click->properties->home directory->configuration->Option
set Asp Script Timeout
if your error still exists, paste your error exactly here
Human knowledge belongs to the world
|
|
|
|
|
Thanks for your timely reply..
I dont want to change the timeout, i want to knw why does the request still exists even after 90 secs of its default timeout
|
|
|
|
|
Database - Connection TimeOut :
When you cannot connect to the "Database Server" within specific time period, it will give you error.
Database - Command TimeOut :
When you cannot retrive data from the "Database Server" within specific time period, it will give you error.
Request TimeOut :
When you cannot Request the Page/Data from the "Web Server" within specific time period, it will give you error.
Session TimeOut :
When your Page is not postback (or no trasfer activity) to the "Web Server" for specific time period, it will destroy the session object.
|
|
|
|
|
|
Muruvet Kaplan wrote: cannot be serialized because it does not have a parameterless constructor.
That error message is clear right?
|
|
|
|
|
Hi,
as the error message is saying it, the FileInfo cannot be serialized/deserialized because the deserialization needs a constructor without parameters. So what you could do is to build your own FileInfo/DirectoryInfo class.
Also you could try to customize the deserialization process, but i'm not sure if this is possible.
Regards
Sebastian
|
|
|
|
|
http://www.dalepreston.com/Blog/2005/02/returning-custom-classes-from-web.html[^]
I want todo returning FileInfo type because i tried to file reading from server, but these files are encrypted and needed to be open from special project then read. the files are in server and size is out of 1 GB. my question is about a method to be able to read file from service and returning to the project...
Thanks for replies.
mkn
|
|
|
|
|
If you need infos about the file from the server, you have to create your own FileInfo-class containing the properties you need.
<br />
public class MyFileInfoClass {<br />
<br />
public Name { get; set; }<br />
public FullName {get; set; }<br />
<br />
}<br />
Just create this object before you return the result of your method and fill the properties using the FileInfo on your server.
Btw. if you want to read the content of the file you have to transfer the file and not the FileInfo.
Regards
Sebastian
|
|
|
|
|
the way you suggest, didn't solve my problem, if possible, please give me another solution
i defined the class MyFileInfo and as member used FileInfo member to get the variable type but same error occured
FileInfo in MyFileInfo cannot be serialized
mkn
|
|
|
|
|
You can not use FileInfo in your result because it is not deserializable. What I suggested was that you create your class containing some properties of FileInfo you want to transport through the wire. But pls do not use the FileInfo-Type within the result, it will not work.
|
|
|
|
|
i need a rich text editor in asp.net application which has master page too.
please can you give me some link for this.
thanks
|
|
|
|
|
bhavna4321 wrote: rich text editor in asp.net application which has master page too.
Rich text editor and master page?
ASP.NET has nothing to do with a rich text editor. Checkout free products like tinymce[^]
|
|
|
|
|
bhavna4321 wrote: i need a rich text editor in asp.net application which has master page too.
First of all there is nothing relation with Rich Editor control and master page. It can be placed in any content pages , so can easily displayed on master page.
You can Check for
fckeditor[^]
Or even if you search in Codeproject , there are some Excellent Java Script Editors available.
|
|
|
|
|
Hi,
I am working on sharepoin - infopath and asp.net application.
on one of the screen user can open the infopath form and enter data, on click on save button (designed on the from) it should save the form in a infopath library on a sharepoint portal.
But when i click on the button Save it throws following exception-
Request for the permission of type System.Security.Permissions.FileIOPermission, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 failed.
at System.Security.CodeAccessSecurityEngine.CheckHelper(PermissionSet grantedSet, PermissionSet deniedSet, CodeAccessPermission demand, PermissionToken permToken)
at System.Security.CodeAccessSecurityEngine.Check(PermissionToken permToken, CodeAccessPermission demand, StackCrawlMark& stackMark, Int32 checkFrames, Int32 unrestrictedOverride)
at System.Security.CodeAccessSecurityEngine.Check(CodeAccessPermission cap, StackCrawlMark& stackMark)
at System.Security.CodeAccessPermission.Demand()
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean useAsync, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize)
at System.IO.StreamWriter.CreateFile(String path, Boolean append)
at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize)
at System.IO.StreamWriter..ctor(String path)
at TradeNetTCM_InfopathForm.TradeNetTCM_InfopathForm.CheckOutCheck()
at TradeNetTCM_InfopathForm.TradeNetTCM_InfopathForm.CTRL6_7_OnClick(DocActionEvent e)
at Microsoft.Office.Interop.InfoPath.SemiTrust._ButtonEventSink_SinkHelper.OnClick(DocActionEvent pEvent)
can any one help?
Dipak
|
|
|
|
|
Hi,
sounds like the user does not have the permission to save the file. Check which user is editing the form and if this user has write-permissions in sharepoint.
Regards
Sebastian
|
|
|
|
|
I am ADMIN of the site and i have full access on it.
And I have created a service account which is used to impersonate the users, hence its not necessary that user has write access or not.
|
|
|
|
|
Well, maybe the service account is used to store the file. Where will the file be stored: at the server or at the client pc? Did you checked the event log (security and application)? The description of the error in the event log will contain the user who will be used to store the file.
|
|
|
|
|
Is it possible to split a Gridview column into multiple columns.
That is one data column arranged into multi columns.
Say my data is AAA BBB CCC DDD EEE FFF GGG HHH III and I want it arranged
as so
AAA DDD GGG
BBB EEE HHH
CCC FFF III
instead of
AAA
BBB
CCC
DDD
EEE
FFF
GGG
HHH
III
as automatically produced.
|
|
|
|
|
I think rather than GridView , Use Repeater Control .
|
|
|
|
|
Questions: Are there always nine columns or fields? Do you always need them in a 3x3 pattern? If so, I would not use a GridView. Assuming the data comes one row at a time from an ADO dataset or datareader, I would fill an asp:table dynamically, copying the data into dynamically created labels.
Someone's gotta be the last to know, but why is it always me?
|
|
|
|