|
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
|
|
|
|
|
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.
|
|
|
|