|
In Page_Init(Object sender, EventArgs e) // just like page_Load
Button1.Attributes.Add("onclick", "return confirm('are you sure?')");
If user chooses yes than code will be executed in Button1_Click, otherwise the code is not executed.
|
|
|
|
|
Hello everybody
I want to save panel as image with its controls in it (label,image ...)
is it possible?
Thanks...
|
|
|
|
|
Member 2486844 wrote: s it possible?
yes.
and the first step is calling Control.DrawToBitmap()
modified on Tuesday, July 15, 2008 1:37 PM
|
|
|
|
|
thanks for your reply but i want to do this in a web page and there is no property like 'DrawToBitmap()' for panel in asp.net?
|
|
|
|
|
did you have resolved your problem? can you share your code? I have the problem too.
|
|
|
|
|
My question is how i can upload a file which has size more than 4MB with the FileUplaod control of asp.net.
I can able to upload file less than 4MB but more than 4MB i can not upload. For that which type of changes i have to made in my code or property.
pls, give me proper answer.
|
|
|
|
|
Add this to the web.config
<System.Web>
<httpRuntime maxRequestLength="10000" />
</System.Web>
The number “10000” is in Kilobytes so this would give u 10 MB. U can change it to any file size u want
Hope this would help
Best Regards
3ala2
|
|
|
|
|
Is it possible to invoke a image1_button click from the ASPX (html) file?
<img alt="Submit" src="Images/submitOff.jpg" style="width: 69px; height: 20px" name="SubmitButton" onmouseover="chgImage('SubmitButton','Images/submitOn.jpg')">
onmouseout="chgImage('SubmitButton','Images/submitOff.jpg')"
onclick="<%# %> />
</img>
|
|
|
|
|
I am trying to run this:
protected void ImageButton1_Click(object sender, ImageClickEventArgs e) { }
event when you click the image...
|
|
|
|
|
i have excel file. which that some cells are fill up and some cells are blanks. when i do import excel file to grid view then that time some data pick and some data not pick up. why it is happen. help me.
|
|
|
|
|
Hello Frnd,
I'm not getting how to display the images in the gridview because my folder name and image name are stored seperately in the database plz suggest the way............
<asp:templatefield headertext="Small Image" xmlns:asp="#unknown">
<itemtemplate>
<asp:image id="Image2" runat="server" height="80px" imageurl="<%# DataBinder.Eval(Container.DataItem," foldername")="" %>"="" width="125px">
<itemstyle horizontalalign="Center">
and
<asp:templatefield headertext="Small Image" xmlns:asp="#unknown">
<itemtemplate>
<asp:image id="Image2" runat="server" height="80px" imageurl="<%# DataBinder.Eval(Container.DataItem," smallimage")="" %>"="" width="125px">
<itemstyle horizontalalign="Center">
can anyone suggest me how to concatenate the FolderName and SmallImage to display the image in the gridview
|
|
|
|
|
I have two options oneway and twoway in radiobutton list for booking
and txtDropoff has one required field validator but
when I check oneway I am not showing this textbox but when I check twoway option then I need this validation.
so How can I manage that It will show required field validation error when I select oneway option only while click on submit button.
Prob is that it is showing that required field validation error in oneway option also.
thanks
You get the best out of others when you give the best of yourself.
|
|
|
|
|
how can i add row in gridview on run time without reload the gridview or reload the datasourec for the gridview
Kareem Elhosseny
|
|
|
|
|
I have a gridview and there are 3 columns that each have a calendar extender. The gridview is very slow when it's rendered in the browser. Why is that? I noticed also that if I used only one extender in a single column. The grid's performance is much better but if I l used multiple calendar extenders, the gridview becomes slow...I need to include a calendar extender in each of the three columns so is there any way to make the rendering of the control much faster?
|
|
|
|
|
Hi i am using calender extender inside gridview in my website, which basically shows only mo,tu,we,thu instead of showing whole 7 days a week, can any one help me in this, in all other place expect grid vew the calender extender is working fine.
Many Thanks
|
|
|
|
|
i am using ffmpeg.exe tool to convert any video file format to .flv file it is working in localhost correctly but it is not working
in the server…..
any one help me…
|
|
|
|
|
How can i check a window is a popup windows or not ?
When I have got any exception in one common page has come and there is a hyperlink that redirect it to login page. Now if the Exception comes on a Popup windows when i click on that link login page comes inside that popup window.
Any idea .
or any other solluation !!!
cheers,
Abhijit
|
|
|
|
|
On click of the hyperlink, call a function containing the following code:
opener.top.location = "LoginPageUrl";
window.close();
This will Redirect the parent window to Login page and close the popup window.
Please let me know if you need something else.
|
|
|
|
|
Hi Anurag,
Thanks for your response. If there are multiple popup, meanns, Parent ->Popup - > Popup , what will happen in that case ?
cheers,
Abhijit
|
|
|
|
|
Hi,
I didn't try it but Try something like:
parent.parent.parent.top.location = "MyLoginUrl";
It should work.
|
|
|
|
|
but , first of all , i have to check wheather the page is the parent or not. because if this is parent windows i do not need to check the same.
please any idea !!!
cheers,
Abhijit
|
|
|
|
|
If a window don't have any parent window, it means that the window itself is a parent one.
Please check something like this:
if(window.parent == null)
window.location = LoginPage;
To find out Root parent window and redirect that to login page, try something like this:
myWindow = window;
while(myWindow.parent != null)
myWindow = myWindow.parent;
myWindow.location = LoginPage;
Logically it should work but I also didn't try it.
Please let me know. If it is working.
Thanks.
|
|
|
|
|
Thanks for reply. I will let you know when done !!!
Thanks a lot.
cheers,
Abhijit
|
|
|
|
|
i want to convert the any video file into .flv format.. it is worked local server perfectly.. but it is not worked in web server... security exception will be displayed.. i used ffmpeg.exe tool only... pls help me
Process ffmpeg; // creating process
string video;
string mpg;
video = Page.MapPath("movie.wmv");
mpg = Page.MapPath("") + "\\video.flv"; // thumb name with path !
ffmpeg = new Process();
ffmpeg.StartInfo.Arguments = "-i " + video + " -f flv -vcodec flv -qscale 10 -s 480x360 -ar 44100 -acodec libmp3lame " + mpg; // arguments !
ffmpeg.StartInfo.FileName = Page.MapPath("ffmpeg.exe");
ffmpeg.Start();
my web config file
<?xml version="1.0"?>
<configuration>
<connectionStrings/>
<system.web>
<customErrors mode="Off"/>
<compilation debug="true"/>
<authentication mode="Windows"/>
<httpRuntime executionTimeout="240" maxRequestLength="2097151" useFullyQualifiedRedirectUrl="false" minFreeThreads="8" minLocalRequestFreeThreads="4" appRequestQueueLimit="100"/>
</system.web>
</configuration>
i receive this error what is this error tell me pls
Security Exception
Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.
Exception Details: System.Security.SecurityException: Request failed.
Source Error:
[No relevant source lines]
Source File: App_Web_1lwzeoop.0.cs Line: 0
Stack Trace:
[SecurityException: Request failed.]
_Default.Button1_Click(Object sender, EventArgs e) +0
System.EventHandler.Invoke(Object sender, EventArgs e) +0
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +105
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +107
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +7350
System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +213
System.Web.UI.Page.ProcessRequest() +86
System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +18
System.Web.UI.Page.ProcessRequest(HttpContext context) +49
ASP.default_aspx.ProcessRequest(HttpContext context) in App_Web_1lwzeoop.0.cs
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +358
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64
|
|
|
|
|
I guess the exception already told you what the problem is
"The application attempted to perform an operation not allowed by the security policy"
It seems you are using shared hosting and such hosting force some policies to insure the safety of their servers
So contact them and ask them how far can they go with you in the policies thing, or u might need to have your own dedicated server.
Best Regards
3ala2
|
|
|
|