|
Hi
You can upload larger files by changing maxrequestLength in Web.config section.
<configuration>
<system.web>
<httpruntime executiontimeout="1800" maxrequestlength="400000">
Bhanu
|
|
|
|
|
iam having a textbox where i stopped to write some thing in the text using onkeydown return fale but how i can stop the user if the user select complete text and cilck right click mouse and select delete or cut
using javascript
|
|
|
|
|
I don't know how to handle specific to textbox but you can enable it for the whole page add removed="return false" to the body tag and check
If you don't want alter the textbox value better to make that textbox readonly
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
try<br />
{<br />
draw = new System.Drawing.Bitmap(intWidth, intHeight);<br />
g = System.Drawing.Graphics.FromImage(draw);<br />
g.Clear(System.Drawing.Color.White);<br />
<br />
<br />
System.Drawing.Bitmap bitmap = null;<br />
string temp = "";<br />
for (int i = 0; i < 25; i++)<br />
{<br />
for (int j = 0; j < 25; j++)<br />
{<br />
if (arrInformation[i, j] != temp)<br />
{<br />
bitmap = new System.Drawing.Bitmap(Request.MapPath(arrInformation[i, j]));<br />
g.DrawImage(bitmap, 25 * i, 25 * j, 24, 24);<br />
temp = arrInformation[i, j];<br />
}<br />
else<br />
{<br />
g.DrawImage(bitmap, 25 * i, 25 * j, 24, 24);<br />
}<br />
}<br />
}<br />
<br />
Response.ContentType = "image/gif";<br />
draw.Save(Response.OutputStream, System.Drawing.Imaging.ImageFormat.Gif);
arrInformation is a string array with the paths the the images that need to go in the slots
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|
|
Most of the GDI+ classes are slow and performance costly. You should call it's Dispose() method when you are done with the instance. This forces instant memory claim. Wrap your instances in "using" keyword, which ensures the disposal.
For more information visit Bob Powells GDI+ FAQ[^]
|
|
|
|
|
Hello all, I have two queries related to user control.
One, how can i include a .js and .css file in an .ascx page? Are we allowed to use tag, if yes then can I just include them as usual by using tag?
Two, I have an HTML(not aspx) page which i want to convert to a user control. I have javascript functions being called on the "load" and "onmousedown" event for the body of the HTML page. But since user contriol do not have body so how do I implement it...?
Please help...
|
|
|
|
|
om pr wrote: One, how can i include a .js and .css file in an .ascx page? Are we allowed to use tag, if yes then can I just include them as usual by using tag?
Yes you can do that. Or you can include them in the page where you will use them.
om pr wrote: Two, I have an HTML(not aspx) page which i want to convert to a user control. I have javascript functions being called on the "load" and "onmousedown" event for the body of the HTML page. But since user contriol do not have body so how do I implement it...?
HTML you can convert to user controls. Since it doesn't have a body tag, you should call OnLoad events inside the page where you use them.
|
|
|
|
|
Hi,
i created one user control, in that control i called function. But it is not working when i used that user control in my form.
But the same coding can be working in pages.
Can any one help me?
In my user control i created one table like this,
I write the code in server side as follows,
HtmlTableRow htr,htr1;
HtmlTableCell htc;
htr = new HtmlTableRow();
htc = new HtmlTableCell();
htc.InnerHtml = "Sutheesh Visible";
htr.Cells.Add(htc);
SampForum.Controls.Add(htr);
htr1 = new HtmlTableRow();
htr1.ID = "Hello";
htc = new HtmlTableCell();
htc.InnerHtml = "Sutheesh Invisible";
htr1.Cells.Add(htc);
htr1.Style.Add("display", "none");
htr.Attributes.Add("onClick", "ShowHide('" + htr1.ClientID+ "')");
Ftable.Controls.Add(htr1);
JavaScript:
function ShowHide(cell)
{
alert(cell);
if(document.getElementById(cell).style.display=="none")
document.getElementById(cell).style.display="inline";
else
document.getElementById(cell).style.display="none";
}
|
|
|
|
|
Why isn't it working? You haven't stated what the problem is.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
Thanks for ur reply friend.
The page cannt find document.getElementById(cell), because it (cell) is created in usercontrol.
|
|
|
|
|
Member 4755319 wrote: because it (cell) is created in usercontrol.
Have you checked the page source ? Verify the alert is giving the same name which is there in the page source.
|
|
|
|
|
Thanks Navaneeth, Finally i got the answer by ur clue, i saw the page source it was different from the id. It includes usercontrolname_id.
Now my user control is working fine.... Thanks alot..
|
|
|
|
|
Hi all,
iam generating a report and binding it to a grid view. This grid contain too many reports. When iam using window.print the whole report is printed on 1 page with a very very tiny font. while i want the report to go on second and third page etc... if it has too many columns in it.
thanks
|
|
|
|
|
Hi dears,
I have a website with ASP.NET 2.0
in my website each user has an album that can upload her photos on it.
User should be able to delete images(my website i s hosted on my dedicated server).But its impossible. I did grant delete access for aspnet user to PhotoAlbum directory on server, but I can`t delete any file.
the aspnet user in server is member of users group not administrators group.
I want to know how can I fix this problem ?!
thx for your help,
www.behzadi.net
|
|
|
|
|
Try impersonating user before you delete and undo the impersonation after you are done. Check this[^] MSDN article for getting an idea on this.
|
|
|
|
|
i have a girdview inside a panel, i have include css
.TblHeaderFixed { position:relative; }
in GridView i have inclued as shown
HeaderStyle-CssClass="TblHeaderFixed"
i find the header fixed but it creeps out of the div or panel in which the grid is placed. The DataRow of the grid however remains within the div. but only the header is out. Kindly help...
ranji varghese
|
|
|
|
|
hi friends
this is my code for check the system LAN connected or not
Dim server As String = "207.46.134.222"
Try
Dim hostInfo As IPHostEntry = Dns.GetHostByAddress(server)
Catch ex As Exception
Response.Write("OFF, host turned off")
End Try
here i connect the 20 machines through LAN.here i give all the machine IP in code behind(same as above code)
if i run the application ,the application performance is poor display the LAN details 5 min
how can i improve my applicaton peformance
Regards
saravnan
Known Is Drop.Unknown Is Ocean
|
|
|
|
|
Plz help....
While i'm clicking the linkbutton i'll get N=A or N=D in Url box...
Thanks in advance
|
|
|
|
|
I want to display a message box with Ok and Cancel buttons in Asp.Net using C#. Can anyone help me in this?
Thanks in advance..
Thanks & Regards,
Radha
|
|
|
|
|
You ought to use Javascript to achieve this.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
Use JS, confirm method for this.
|
|
|
|
|
Use , JavaScript
Alert, Confirm
|
|
|
|
|
I have tried the following but its nmot geting displayed..
Here is my code..
protected void btnSubmit_Click(object sender, EventArgs e)
{
...
CheckDate();
...
}
protected void CheckDate()
{
...
if (id > 0){ ClientScript.RegisterClientScriptBlock( typeof(Page), "Script", "alert('Selected Date have already Data.. Are you sure you want to continue for the same date? ');", true); }
else
{ ... }
}
Did i misss anything here? Can u plaese help me?
Thanks in Advance..
Thanks & Regards,
Radha
|
|
|
|
|
Radha27 wrote: if (id > 0){ ClientScript.RegisterClientScriptBlock( typeof(Page), "Script", "alert('Selected Date have already Data.. Are you sure you want to continue for the same date? ');", true); }
This won't help you. Your alert will be displayed after page processes all data. Do this in other page and show you message on the page.
|
|
|
|
|
Sorry navaneeth, can u explain me how can i do this?.. if u dont mind
Thanks in Advance
Thanks & Regards,
Radha
|
|
|
|