|
Not sure if you are trying to attach the file from a web interface or if the file is located on the server.
If you are having the user upload the file as attachment then you might have to override the httpRuntime's maxRequestLength value in the web.config file.
By default ASP.NET only allows files with size 4MB [4096 KB] or less to be uploaded but you can change it like this:
<httpRuntime maxRequestLength="8192" />
|
|
|
|
|
Thanks a lot for your response..Actually the file is located on the server. Is there anything else I should change??
|
|
|
|
|
If file is located on the server then I would first check for common things like for instance if the file is locked or not, read access, other error handling code that might cause an infinite loop etc.
Post your code so we can see exactly how you are trying to attach the file. Thanks.
HTH
Robert
|
|
|
|
|
Thanks again Robert.
Actually I create a PDF file in the code,the file is placed on the server but after it is created,it's added automatically to source control..This doesn't happen in VS 2003 though I didn't change anything when converting the project to VS 2005 so I just want to remove a specific folder in the project from the source conttrol (Visual Source Safe) How can I do that??
|
|
|
|
|
You can do the following:
Goto File > Source Control > Exclude "MyFileOrFolderName" from Source Control
You can also exclude that folder from your VS2005 project if it is not directly used in the project that will also take care of the VSS problem.
Hope that helps
Robert
|
|
|
|
|
Thanks again Robert
|
|
|
|
|
You are welcome, hope your problem is fixed
|
|
|
|
|
I am attempting to create a web service that will send and received XML messages via SOAP. I am not certain which way to go on creating my client app. Ultimately , i have an application written in C++ that will have to ultimately receive the message, but is using C++ as a client much more difficult to code than using C#? Any advice or direction is appreciated.
Thanks,
|
|
|
|
|
If you know managed C++, it's not much different.
|
|
|
|
|
I was creating an web app using vs2005 in Vista when I encountered this problem.
The default setting of the password recovery control in the vs2005 only send password through smtp which doesn't require SLL. but what if that smtp,say, smtp.gmail.com, requires SSL?
Is there any solution besides hard coding the "Password Recovery Control" to enable SSL?
Is there any way to modify the code of the "password recovery control"
THanks~
|
|
|
|
|
some times this error was occured in our webserver. whem i made a direct request for a page then it goes to default error page . but again i refresh the page by using browser's refresh button it shows the page correctly. what is the reason behind this case. I thing it related to the server issues. Because other times my codings are running perfectly. if anybody is having same kind of problems then give me your ideas.
Thanks in advance.
|
|
|
|
|
You should catch and log the exception that is being thrown. This will give you a better idea of what is happening. Otherwise it's a bit hard to track down.
|
|
|
|
|
Thanks Paddy Boyd
In our project we are implementing log4net based logging system but in the above case , nothing has to be logged . So i am very much confused. Any other ideas.
|
|
|
|
|
i have a page developed in ASP.NET... i have a function that sometimes take to long to finish and i get a time out for the conection in the proxy...
theres any quick way to make a request in the browser to the server and wait for the result in an assyncronos way??
thanks in advance
|
|
|
|
|
I believe that your problem can be solved by setting a property in the web config. This is what my web config looks like for a site that has a file large upload and long time out for processing:
<!-- The httpRuntime mamRequestLength defaults to 4096 which allows users to upload files that are 4MB or smaller. My site needs up to 5MB for uploading files, so this value needs to be set to 5120. <br />
<br />
The executionTimeout is set to override the default, since some pages will take a much longer time to load. (I believe this is measured in seconds) --> <br />
<httpRuntime maxRequestLength="5120" executionTimeout="900"/>
Hope this helps.
|
|
|
|
|
Respected Gurus
I have 3 web pages
1.frmShowallproducts --Shows all product's records
2.frmCondition--Is a modal dialog box(Retrieves the Product's name)
3.frmShowSearchedProducts--Shows the records of the selected product)
As 2nd one is a modal dialog.On click of a button i want to close it as well as 1st one and redirect to the third one.
As after opening the modal box rest of the pages are coming in the same height and width......
How to do that
Am i going right..
If there is any other way through which i can successfully search my products..
Plz help me...
Ajay
|
|
|
|
|
Are you searching the product or record ?
On what basis do you want to search i.e name,id ?
is it stored in the database ?
What type of query you have written ?
<l>Thanks and Regards
Sandeep
|
|
|
|
|
i m using a like query on the product name
i m using the Stored Procedure.
Here is my procedure...
ALTER proc spr_getSelectedProducts
@Name varchar(100)=null
as
begin
declare @prod_name varchar(110)
set @prod_name=@Name + '%'
select det.Id,mast.name as Name,det.Type,det.Dia,det.Length,det.Laminate_Type,det.Varnish_Type,det.Colour1,
det.Colour2,det.Colour3,det.Colour4,det.Colour5,det.Colour6
from product_mast mast inner join product_det det on mast.id=det.product_mast_id
where mast.name like @prod_name
end
Sir basically i have the problem of flow of pages..
This stored procedure is giving me the desired result.
-- modified at 8:25 Monday 12th February, 2007
|
|
|
|
|
This is wrong i think you should have unique product id as promary key in the database and retrive the data using that ...........
Again i am not clear of your question means What actually you want stored procedure,query or modal dialog box related something ?
<l>Thanks and Regards
Sandeep
|
|
|
|
|
Sir I have two tables Product_mast and Product_Det
Both the tables have a common field Product_Id.Also Product_Id is the primary key in the Product_Mast table.
Now more than one products may have same name(like Colgate100Gms,Colgate200Gms).When i Will write Colgate and search,it will show me the details of both products in a Htmltable
and i can update any of them because i have a edit button in last column of every row.
Upto this i have done.
Problem arises when i m clicking on the search button.
On click of the search button a i have called a javascript function
btnSearch.Attributes.Add("onclick", "poponload();")
poponload() is a javascript function.Which opens the modal page.
function poponload()
{
testwindow= window.open ("frmSearchProdCondition.aspx", "mywindow","location=1,status=1,scrollbars=1,width=950,height=400");
testwindow.moveTo(40,170);
}
Now in frmSearchProdCondition.aspx page i m receiving the name of the product in a textbox and sending it to the next page where i want to show the result in a htmltable.
on click of OK button in modal i m closing the current modal and redirects to the next page which is showing me the result..
The size of my modal is width=950,height=400...............
funny thing happens when i m closing the modal and redirecting to the next page
it opens in the same height and width......
I want to close the modal and open a normal window...
Hope now u understand my problem..
|
|
|
|
|
Hi all,
Here is what i want 2 do...
I have a datagrid which displays employee information with empid as primary key.This info is populated from Employee table. I have another table Book which contains empid,date and no of free slots for that date. I need to create an template column in the datagrid with an image in each row and onmouseover of that image should display the no of slots for current month for that employee.
If this is difficult 2 answer just tell me how do i assign different attributes to different rows depending upon the empid.
|
|
|
|
|
Try this:
<asp:TemplateColumn SortExpression="Name" HeaderText="Name">
<HeaderStyle ForeColor="Black" Font-Bold="True"></HeaderStyle>
<ItemStyle Width="30%"></ItemStyle>
<ItemTemplate>
<img src="../Images/User01.gif">
<asp:LinkButton runat="server" CssClass="GridItemLink" CommandName="Select" Text='<%# DataBinder.Eval ( Container.DataItem, "Name" ) %>' />
</ItemTemplate>
</asp:TemplateColumn>
and add href for the same.
|
|
|
|
|
what is active directory ???
|
|
|
|
|
|