|
Yes. I need to call a asp.net file in windows machine every one minute.
|
|
|
|
|
Is there a limit to the size of an item stored in a session object?
I'm storing an image object within a session object so I can pass that image from page to page (I'm manipulating an image across the span of several pages so unfortunately, as far as I know, I have no choice but to store my changes within a session).
The images are usually around 25kb in file size but our concern is what would happen if all of a sudden, we required a 2 mb image to be used? Is there a limitation to the file size of the item stored within this session?
Thanks in advance.
-Goalie35
|
|
|
|
|
You should be fine. Session objects are kept on the server.
My question is why place it in the session at all?
|
|
|
|
|
The limitation is the amount of free memory on the server.
Be aware that by storing large objects in session variables, the site gets sensetive to DoS attacks. It's easy to create new sessions that will quickly use up all available memory, rendering the server unusable.
Also, storing large objects in session variables uses a lot of memory resources even in peaceful times. As the session objects live for a long time, anything you put in them will use a bit of memory for a relatively long period of time. It's normal for a web application to use resources for fractions of a second and then release them, so when you allocate memory that you hold on to for something like half an hour, that uses much more resources than normal.
---
b { font-weight: normal; }
|
|
|
|
|
Save the image in the disk or database and pass the filename or image id in session
|
|
|
|
|
Hi All,
I need to do correct https request and get the Response Page.
So I have used Msxml.dll for this.
My code is given below:-
MSXML.XMLHTTPRequestClass lobjRequest = new XMLHTTPRequestClass();
lobjRequest.open("POST","https://test.abc.com?jsessionid="+_strSession, false, null, null);
lobjRequest.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
string lstrRequest="Mime Type=application/x-www-form-urlencoded"+
"&user="+lstrUserName+
"&password="+lstrPassword+
"&page=%2Foctxml%2FIndexPage.jsp"+
"&title=TXT0969";
//lobjRequest.send(null);
lobjRequest.send(lstrRequest);-->Error Occured after this..
This is working fine for http request Pages.But when I execute the program ,I have taken the following error.
The download of the specified resource has failed
So Please kindly tell me to solve this problem.Can any one Please tell me to do correct https request and Get Correct Response using C#.Net?
Thanks in advance
|
|
|
|
|
Have you configured your WinHttp proxy settings correctly (See KB
articles Q289481 and Q291008) for the target server?
|
|
|
|
|
Recently I was asked in an interview
1) Is it possible to use a .NET DLL in VB 6.0 or ASP?
2) If Yes, is it necessary to register .NET DLL?
Cheers!!!
Sony Sebastian
|
|
|
|
|
1. The classes in the dll must be marked as comvisible
2. Use regasm.exe to register the dll
|
|
|
|
|
Thanks edboe!!!
|
|
|
|
|
Question 1: I am fairly new to asp.net and I have created a couple custom controls. I was wondering what is the best way to alert the programmer who is using this custom control of an error. I was thinking the best way to do this is to change the code in the render() function in the custom control to show the error message but I don’t know if this is the best option.
Question 2: I have a custom control that is derived from a RegularExpressionValidator which doesn't have a render() function. How do I display an error to the programmer in this case?
Example of an Error that would need to be displayed:
One of the controls allows the user to enter in a specific culture like 'en-US'. If they enter in something like 'afdasdffsdf' and is an invalid culture then I would like to show the programmer the error like 'afdasdffsdf' is an invalid culture.
Thanks Chris
|
|
|
|
|
This article may help you:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnwinforms/html/custcntrlsamp1.asp
|
|
|
|
|
hi sir...
I heard lot abt ur site...
so 2day i make login id on it..
In my company we are going to group all data Without DataGrid and listView..
Here we are creating Cell and filling space as pic between these cell..
So it's look good...
now we wanna to applying paging on it...
Plz tell me how it'll possible..
and also Wanna to go entering Page no.
Plz Send Solution me soon
Regard >>>
Mr. Narender
Minerva Technologies
A-408 Defence Colony (1st Floor )
New Delhi-110024 , India
Mob No. 9891268575
Phone No. +91-11-51550034
Fax No. +91-11-51550035
E-Mail ID : Narender@minervatech.com
|
|
|
|
|
Hello Hope someone can help me with making asp panel's visable or not. I have the following script to work out some totals. All the calculation are hiddin. What i want is my panel to be visble if
my "hqty#" is bigger than 0 and not visible if its 0. panel name is Row#
Thanks
<!--
function Calc(subForm)
{
var c1 = subForm.hucst1.value;
var q1 = subForm.hqty1.value;
var c2 = subForm.hucst2.value;
var q2 = subForm.hqty2.value;
var sub1 = subForm.hscst1.value;
var sub2 = subForm.hscst2.value;
var lab = subForm.labour.value;
if (c1 >= 0)
{
subForm.hscst1.value = q1 * c1 ;
subForm.hscst2.value = q2 * c2 ;
}
else
{
}
if (q1 > 0)
{
subForm.scst1.value = subForm.hscst1.value;
}
else
{
subForm.row1.Visible = false;
}
if (q2 > 0)
{
subForm.scst2.value = subForm.hscst2.value;
}
else
{
subForm.row2.Visible = false;
}
if (sub1 >= 0)
{
subForm.total.value= 0 + sub1/1 + sub2/1 +lab/1;
}
else
{
}
}
|
|
|
|
|
The server control only exists on the server, what is sent to the browser is only the html code that the server control creates. Therefore you can not access a server control from Javascript.
You can use the styles visibility or display to change if the html element is visible or not.
---
b { font-weight: normal; }
|
|
|
|
|
<asp:datagrid id="DataGrid1" style="Z-INDEX: 101; LEFT: 232px; POSITION: absolute; TOP: 136px"
="" runat="server" height="8px" width="88px" autogeneratecolumns="False" bordercolor="Black" font-size="10pt" font-name="Arial" backcolor="#C6C3FF" headerstyle-font-size="12" headerstyle-font-bold="True" headerstyle-font-name="Arial" headerstyle-backcolor="#ff66ff" cellpadding="0" font-names="Arial">
<headerstyle font-size="12pt" font-names="Arial" font-bold="True" backcolor="#FF66FF">
<columns>
<asp:boundcolumn datafield="ProdName" headertext="ProdName">
<asp:templatecolumn>
<headerstyle horizontalalign="Center">
<headertemplate>
Images
<itemtemplate>
<%#Container.Dataitem("Images")%>
<asp:boundcolumn datafield="Comments" headertext="Comments">
MY aspx.vb CODE IS:
Dim STRCONN As String = "Driver=MySQL ODBC 3.51 Driver;DSN=bhanudsn;uid=root;Database=datingdb;packet size=4096"
Dim MySQL As String = "Select * from Products"
Dim MyConn As New OdbcConnection(STRCONN)
Dim objDR As OdbcDataReader
Dim Cmd As New OdbcCommand(MySQL, MyConn)
MyConn.Open()
objDR = Cmd.ExecuteReader(System.Data.CommandBehavior.CloseConnection)
DataGrid1.DataSource = objDR
DataGrid1.DataBind()
|
|
|
|
|
I'm fed up of my work's draconian internet policy which blocks access to web sites on what seems to be an entirely random basis.
I would like to set up an asp.net website which can obtain the html from a url and pass it on to the client (me at work). This should then allow me to view the content of any url through my website. I have tried to find example code with out any success. I'm a C# developer with only a rudimentary knowledge of asp.net.
Could anyone point me in the right direction for doing this? Cheers!
|
|
|
|
|
hi frns...
.......again need u all to help me...
.i wanted to implement the paypal as the payment gateways in my web applications for the e-payment...
...so can any body provide me the link which can help me..
..with regard
Vikas Thakur
|
|
|
|
|
|
hello everyone
i hav to show a tables field (line_amt) which follows 3 different conditions at a crystal report.
3 conditions r
line_amt where status=0(3 records)
line_amt where status=1(88 records)
line_amt where status=0 or 1(91 records)
i hav to show all these 3 line_amt in 3 different columns in crystal report.
how i can achieve this.
3 columns r
1.Outstanding_amount(status=0)
2.Receivable_Amount(Status=1)
3.Total_Amount(status=0 or 1)
|
|
|
|
|
|
iam having button(server control) once i clik
it should excute java script function
and server side code
i need syntax plz
|
|
|
|
|
write javascript function on "OnClick" event of button.
once done with function return true, this will take page posted to server and server code will get executed.
Regards,
Akhilesh Yadav
|
|
|
|
|
hi,
If you want to run the javascript and the server side code with a single button click event,then, you can do as follows:
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs)
Response.Write("Postback: This is a server-side event ")
End Sub
function AlertHello(){
alert("Hello ..This is a client side Java script")
}
and add this line:
<asp:button id="Button1" runat="server" text="Button" onclientclick="AlertHello()" onclick="Button1_Click">
So, when you click the Button, both the events are triggered...
hope this helps..
|
|
|
|
|
hello everybody,
after googling, i'm here.My problem is that i have combo box in my page.it gets load with the help of javascript on link button click.
I want to bind this dropdown from database.
what i'm getting that becoz its on client side so no server transition effects.i think do i need to write a javascript code for that.
if yes, then i'm very poor in javascript or is there any other way.
Plz suggest me.
Dotnet
|
|
|
|