|
Import an XML file from where ? Have you put a breakpoint in page load to see if any of your code is run ? What if you refresh the page when it fails ?
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
When the Page load the the Break point works and when i click the Button, it gave that strange page. When i refresh the page, it goes back.
Vuyiswa Maseko,
Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
That is the First thing i did when i got this problem. I have resolved the Problems. The File that i wanted to import when that button is Clicked was too big. So i have resolved this by adding the Following entry in the web config in the System.web Section
< httpRuntime maxRequestLength="102400" />
Thanks once more time
Vuyiswa Maseko,
Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
Are you submitting the page to a location using form action
or have you manually modified your form onsubmit event ?
|
|
|
|
|
here is my page definition am not sure what is wrong this works on other machines
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="ImportTimetable.aspx.cs" Inherits="ImportTimetable" Title="o!Booking Version 3" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<span>
<br />
<table border="0" cellpadding="2" cellspacing="0" style="font-family: Verdana">
<tr>
<td style="width: 72px">
<asp:Image ID="Image1" runat="server" Height="72px" ImageUrl="~/Images/CDICons/timetable72.png"
Style="behavior: url(PngBehaviour.htc)" Width="72px" /></td>
<td>
</td>
<td style="width: 600px">
<span style="font-size: 13pt"><strong>Import Timetables<br />
</strong><span style="font-size: 8pt">Perform bulk bookings for class and/or exam timetables.
For a description of the file formats, see the online help.</span></span></td>
</tr>
</table>
<span style="font-family: Verdana">
<hr align="left" width="800" />
<br />
</span></span>
<table border="0" cellpadding="0" cellspacing="0" style="font-size: 10pt; width: 82%;
font-family: Verdana">
<tr>
<td style="width: 195px; height: 22px;" valign="top">
Import Timetable</td>
<td style="height: 22px">
<asp:FileUpload ID="FileUploadTimetable" runat="server" Width="421px" />
<asp:Button ID="btnImport" runat="server" BackColor="Transparent" BorderStyle="None"
Font-Names="Verdana" Font-Size="10pt" OnClick="btnImport_Click" Text="[Import]"
Width="64px" />
<br />
</td>
</tr>
</table>
<br />
<span style="font-size: 10pt; font-family: Verdana">
<asp:Label ID="lblStatus" runat="server" Font-Names="Verdana" Font-Size="10pt" ForeColor="#8080FF"
Width="100%"></asp:Label><br />
</span>
</asp:Content>
Thanks
Vuyiswa Maseko,
Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
I got the Solution. please check the Reply to colin
Thanks for your time
Vuyiswa Maseko,
Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
you are most welcome ...
so it is the problem with Response size ..
|
|
|
|
|
Yes
Thanks
Vuyiswa Maseko,
Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
The problem is not with the response size, it is with the request size, which is by default 4MB, if you try to upload anything greater than that, your request is simply denied and you get this strange behavior.
|
|
|
|
|
Just a slip while writing.
Should be Request...
|
|
|
|
|
Hello friends,
The site I am working on, is affected by a malicious script. Actually it is always added at the end of the inline code. If it is a html page, then there will not be problem in opening the page. But if the page is using master page and when it is added at the end on the inline code i.e outside the content tag, then there will be a parser error saying that " Only Content controls are allowed directly in a content page that contains Content controls."
Now my question is , Is there any way to block these types of malicious scripts being added in the inline code.
I should tell you that I googled a lot and gathered some of the articles from the msdn site showing the security measures to avoid these scripts. I worked accordingly and did all the steps like validating the user input, validating the query string, validate request property in the web.config etc...
Also I contacted the server guys. But they are saying that it is coming from the browser i.e they are pointing the arrow towards the coding part.
I dont know where I am lacking. Please assist me.
cheers,
sneha
|
|
|
|
|
sneha Choudhary wrote: Now my question is , Is there any way to block these types of malicious scripts being added in the inline code.
There is obviously a process on your computer that's doing this, buy some good anti virus software and use it.
sneha Choudhary wrote: Also I contacted the server guys. But they are saying that it is coming from the browser i.e they are pointing the arrow towards the coding part.
Well, I've found that godaddy, for instance, will claim that there is a code issue, no matter how well you can prove it's not true. So, not sure what to say there. They are almost certainly wrong/clueless. If they run the server, they have the virus, simple as that.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
please check the case of <asp:content> tag
I have fixed this error by simply changing the case on my page.
it should be <asp:content>
|
|
|
|
|
You have already posted this question earlier. Web browsers cannot modify you master pages or the aspx pages. This is an internal threat and not an external one. It is for sure some virus or trojan that is sitting on your server and doing this mischief. Get some good Anti-virus tool / Security Suite and scan your server.
|
|
|
|
|
i need to call a function that is codebehind file from javascript. i did it by placing button on page and setting its height and width 1 px and call it from javascript. but i have one issue that is a small button is displayed on the page even if i give it left position -100. can u plz help.
|
|
|
|
|
Use __doPostBack in javascript. Google about it you'll lots of sample to understand. Please note Microsoft recommends to use GetPostBackEventReference instead of directly embedding __doPostBack, just google about it too.
Please don't forget to mark 'Good Answer', if you find it really a good one!
Kashif
|
|
|
|
|
im using __doPostBack but my problem with that is that i need to give id of a control. i want to call a code behind function that is not handler to any control. i can use a button as well but problem with that is it becomes visible to user. even if i set left position to -100px.
can i call function that is given below, or make button invisible to user even then call its handler from javascript.
private void Test()
{
label1.Text = "Hello";
}
|
|
|
|
|
Try adding
style="display:none"
to the button.
This may help you
|
|
|
|
|
put a hidden button in your page lets say "btnHidden"
Set its style="display:none;"
call btnhidden.Click(); in javascript
watever code written in btnHidden's event will be excuted..
Hope this wil help.
|
|
|
|
|
put a hidden button in your page lets say "btnHidden"
Set its style="display:none;"
call btnhidden.Click(); in javascript
watever code written in btnHidden's event will be excuted..
Hope this wil help...
|
|
|
|
|
Thanx a lot every body for the help
|
|
|
|
|
I am binding a grid with edit/Update templates. On edit/update/insert events there are many text boxes, dropdowns and other grids(data-bound) that gets populated. So the area that's spanned by the update panel is quite vast in the page. That must be the reason for the slow down in page rendering. Could you lead me with some link to any articles or blogs for better alternatives?
I have heard about Ajax Services ASP.Net 3.5 and gone through the below link:
http://www.codegod.de/webappcodegod/GridView-Javascript-Click-Row-and-Ajax-AID302.aspx[^]
It shows how to populate some text boxes on a grid's row click(client-side). But I am confused about other(than textboxes) controls like grids and drop downs.
Is it possible to use both these approaches together ie the grid alone will be kept in an update panel and while editing the use the ajax service approach to populate the controls including other grids and drop downs and while inserting/updating read the values from the controls?
|
|
|
|
|
1.What is CLR Trigger?
2. What is Icomparable interface?
3. What are Dynamic Controls?
4. Can we use Querystring along with Server.transfer()?
5. Different Types of UDF?
6. Difference between cube and Rollup?
|
|
|
|
|
|
Great....nice answer.....
|
|
|
|