|
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
|
|
|
|
|
Hi,
Is it possible to make in a Mail Inbox i an asp.net website by reading from the Hosting server mail?
I am too late but i will never give up
|
|
|
|
|
TheEagle wrote: Is it possible to make in a Mail Inbox i an asp.net website by reading from the Hosting server m
yes, if you can read all the property means, From,Subject, Received Time, etc, you can easily disply it in Grid.
cheers,
Abhijit
|
|
|
|
|
But how to read from the Hosting server email?The emails are there How could I read from there?
I am too late but i will never give up
|
|
|
|
|
For that you need API. First of all From Which Hosting server you want to retrive the mail. Let say's GMail. then you need GMAIL API's For Retreive Email.
cheers,
Abhijit
|
|
|
|
|
Hi,
I have a problem with a marquee on my master page.Whenever a postback occured(without navigating to another page) on the master page the marquee disappear.Otherwise it works fine.Do any one know what could cause this problem and how to solve it?.
I am too late but i will never give up
|
|
|
|
|
Where did you add the Marquee Tag?
cheers,
Abhijit
|
|
|
|
|
In the master page inside a DIV.
The marquee contains a PlaceHolder which I add to it literals in code-behind of the master page.
I observed now that the literal control(which contains the data) are added if not is post back.I will try to remove if(!IsPostBack) and then tell you about the result.
I am too late but i will never give up
|
|
|
|
|
It works.Thank you very much your question helped me to think about where is the code?.
I am too late but i will never give up
|
|
|
|
|
Hi , i have two table in sql . I have to insert data from Ist table to IInd table . in Ist table there is only two field( id , serial) ,
In IInd table also three field(id , serail1 , serial2)
now i want to insert data from Ist table to IInd table , but in IInd table data has to b entered in particular manner .
Ist table id serial
(1, 001) (2, 002)(3, 003)(4, 004)(5, 005)(6, 006)(7, 007)
(8, 008)(9, 009)(10, 0010)(11, 0011)(12, 0012)(13, 0013)(14, 0014)(15, 0015)(16, 0016)(17, 0017)(18, 0018)(19, 0019)(20, 0020)
this data enterd in IInd table with this manner
(001,002)
(002,003)
(002,003)
(003,005)
(003,006)
(004,007)
(004,008)
(005,009)
(005,0010)
(006,0011)
(006,0012)
(007,0013)
(007,0014)
(008,0015)
(008,0016)
ihis loop worked like that (1>1>2>2>2>3>4>5)
|
|
|
|
|
If you just specify how the data should be combined into the second table, it's easy enough to insert it. Example:
insert into SecondTable (serial1, serial2)
select f1.serial, f2.serial
from FirstTable f1
inner join FirstTable f2 on f2.something = f1.something
where f1.something = something and f2.something = something
However, it's not really clear how you mean that the data should be combined into what you show.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
I have a excel files in store data. some cells are fill up and some cells are blank. when excel to import grid view and save data base. that time if cell is blank then store the in database but i want to store null value.
|
|
|
|
|
Hi,
how i write a method or function which returns time range values for example( 8:00 AM to 5:00PM with interval of 15 minutes) becuase i have to add times to each table header cell .
Any help?
Regards
|
|
|
|
|
rameez Raja wrote: how i write a method or function which returns time range values for example( 8:00 AM to 5:00PM with interval of 15 minutes) becuase i have to add times to each table header cell .
I did give you an example code. See your previous post.
please don't forget to vote on the post that helped you.
|
|
|
|
|
You can write two diffrent function for getting two values
public function get_time_range(BYVAL seta AS Datetime,BYVAL Setb as Datetime) AS Double
{
Dim Diff1,Diff2,Diff3 AS DOUBLE
IF Setb < Seta THEN RETURN 0
Diff1 = DateDiff(DateInterval.Day, Seta.Date, Setb.Date)
Diff2 = DateDiff(DateInterval.Minute, Seta.Minute, Setb.Minute)
Diff3 = DateDiff(DateInterval.Second, Seta.Second, Setb.Second)
Return Diff1 + Diff2/60 + Diff3/60
}
|
|
|
|
|
hi all,
how can i add new row to the gridview without reload the old already created rows,because i have a gridview with 2 templete column one of them are dropdownlist ,when i create new row with the same critera the dropdown list in the first row reload from start and dont have the last selected value
so how can i create new row and the first row keep(stored) the value in it
how can i do that ?
thanks for advice
Kareem Elhosseny
modified on Saturday, July 12, 2008 4:55 AM
|
|
|
|
|
Where we can use HTML controls?please give me some example.I think in order form that a customer want to see a preview of her order.is it correct?
|
|
|
|
|
bbc_sh wrote: Where we can use HTML controls?please give me some example.I think in order form that a customer want to see a preview of her order.is it correct?
There are no more differece between htmlControl and WebControl.The main defference is that webControls have default runat="server" while htmlControls do not have.
so that htmlControls are not accessible in code behind page but if you set runat="server" property of that control then it work like as webcontrol but with its own property values
Suppose
you use input text and you set runat="server" to it then you can access the value of this control in code behind side by using "Value" property ot "Text" like as textbox
please don't forget to vote on the post that helped you.
|
|
|
|
|
Hi, all
how i merge the corresponding cells of table control based upon database startdatetime and enddatetime .
i have added header cells with interval of 15 minutes from 8:00AM to 5:00PM
for example 8:00AM To 9:00AM
iam developing reservtion application .
any help is highly appercaited.
Regards
Rameez
|
|
|
|
|
rameez Raja wrote: i have added header cells with interval of 15 minutes from 8:00AM to 5:00PM
try this code
TimeSpan timeSpan1 = TimeSpan.Parse("5:00");
TimeSpan timeSpan2 = TimeSpan.Parse("20:00");
TimeSpan timeSpanDiff = timeSpan2.Subtract(timeSpan1);
int mins = timeSpanDiff.Hours * 60 + timeSpanDiff.Minutes;
int cells = mins / 15;
string minDiff = "0:15";
for (int i = 0; i < cells; i++)
{
Response.Write(timeSpan1.ToString() + " - " + timeSpan1.Add(TimeSpan.Parse(minDiff)) + "<br>");
timeSpan1 = timeSpan1.Add(TimeSpan.Parse(minDiff));
}</br>
please don't forget to vote on the post that helped you.
|
|
|
|
|
Hi friends,
I have an Authentication part in my website (which is written in .net) in my local system every thing is ok but when I move it to our server, when some one authenticates every thing goes well as he is authenticated and no error is thrown but he is not authenticated and he redirects to login page as he is anonymous! I though may it is because of the server time setting so the cookie is expired but it was not! at last after too much trying I decided to check it on another server and this time it worked correctly!! so I think there is some settings in IIS which cause this problem but as I have searched by now I found nothing! every help or suggestion would be very helpfull,
thanks in advanced.
|
|
|
|