|
First, use a more descriptive title. Refer to the very first message on this board from Chris.
Second, explain your problem clearly. What stock ticker?
only two letters away from being an asset
|
|
|
|
|
Hello all
in my asp.net 1.1 page.
If user closes the browser close button we are redirecting to the logout page and closing the browser.
for this onbeforeunload event i am calling java script which will navigates to the logout page & closes. This is working fine for IE.
same thing is not happening in Mozilla firefox browser 1.0
how to solve this problem?
regards
GV Ramana
|
|
|
|
|
Hi,
We are trying to convert word and excel to html format, we are using late binding to support different version of office. We have already taken care of setting dcom security to interactive user and also we have given [B]'launch and active'[/B] and [B]'Access permissions'[/B] for aspnet(Network service in case of 2003) user.
The problem is it works absolutely fine in some systems, but it will not work in some systems and throws error as Unauthorizedaccess for CreateObject call.
The only difference i could see in working and non working system is, in working system dcom services of excel and word are running with name like "Microsoft Excel Application", but in nonworking system these servies are runnig with GUID like "00020812-0000-0000-C000-000000000046", and this is just a difference i saw I am really not sure whether problem is because of this only or not.
PS: We are no supposed to impersonate aspnet user, so in our web confgi we set impersoantion to false.
|
|
|
|
|
Your aspnet user does not have correct permissions to run that file ( the actual executable for word )
--------------------------------------------------------
1 line of code equals many bugs. So don't write any!!
My mad coder blog
|
|
|
|
|
The subject is abit incorrect.
Let me describe briefly;
I am doing a project in .NET 2.0. C#. I have DetailsView control where user can add date and occasion to the database, thus display it in a gridview. But I wish that user can select the date from the calendar instead of typing. What is the correct syntax to write the code when the date is selected from the calendar?
<code> protected void Calendar1_SelectionChanged(object sender, EventArgs e)
{
//DetailsView1. = Calendar1.SelectedDate.ToString("dd MMM yyyy");
}</code>
the source from design view
<code>
<asp:DetailsView ID="DetailsView1" runat="server" Height="50px" Width="125px" AutoGenerateRows="False" BackColor="LightGoldenrodYellow" BorderColor="Tan" BorderWidth="1px" CellPadding="2" DataKeyNames="Index" DataSourceID="ObjectDataSource2" DefaultMode="Insert" ForeColor="Black" GridLines="None">
<FooterStyle BackColor="Tan" />
<EditRowStyle BackColor="DarkSlateBlue" ForeColor="GhostWhite" />
<PagerStyle BackColor="PaleGoldenrod" ForeColor="DarkSlateBlue" HorizontalAlign="Center" />
<Fields>
<asp:BoundField DataField="Date" HeaderText="Date" DataFormatString="{0:MM/dd/yy}" HtmlEncode="False" SortExpression="Date" />
<asp:BoundField DataField="Occasion" HeaderText="Occasion" SortExpression="Occasion" />
<asp:CommandField ShowInsertButton="True" />
</Fields>
<HeaderStyle BackColor="Tan" Font-Bold="True" />
<AlternatingRowStyle BackColor="PaleGoldenrod" />
</asp:DetailsView></code>
thanks in advance. Much appreciated.
|
|
|
|
|
Hi there. One suggestion is to substitute a TemplateField for your date's BoundField, add a TextBox and Calendar control to the EditTemplate, then use something like this for code:
protected void Calendar1_SelectionChanged(object sender, EventArgs e)
{
TextBox tb = (TextBox)DetailsView1.FindControl("TextBox1")
tb.Text = Calendar1.SelectedDate.ToString("dd MMM yyyy");
}
|
|
|
|
|
Hey thanks Mike!
Mike Ellison wrote: add a TextBox and Calendar control to the EditTemplate
I just add the calendar control to the webform as usual and it works pretty fine. I hope it does not have any further errors.
Another Genius solving my question
|
|
|
|
|
Hi
I am working on Exchage Hosting using ASP.Net
I want to have API's to access DNS MX Record.
If it is not free, where can i get it from to purchase. Is there any trial versions to test.
Plase let me have this information asap.
Regards,
Murthy.
|
|
|
|
|
|
can any body give some idea about how to close webform through window user control embeded in html page of that form.
thanks
rahul
|
|
|
|
|
Use JavaScript - window.close();
|
|
|
|
|
If you dont mind that it is not windows control, but html control then place this on your page:
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
<input id="Button1" type="button" value="button" onclick="javascript:window.close()" />
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Actualy windows control cannot be placed in webform, maybe you mean WebControl. If you want to use WebControl to close your page, then do it like this:
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
aspx page:
<asp:Button id="btnClose" runat="server" text="Close me!" OnClientClick="javascript:window.close()"/>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
or
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
aspx page:
<asp:Button id="btnClose" runat="server" text="Close me!" OnClick="btnClose_Click"/>
code behind:
protected void btnClose_Click(object sender, EventArgs e)
{
Page.RegisterStartupScript("CloseMe","<script>window.close();</script");
}
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Pilo
|
|
|
|
|
Sir,
I have a dropdownlist and the dropdownlist is populated with the forms name available in the project.Now i want to open the selected form from the dropdownlist in the placeholder Is it possible.
Please help.
|
|
|
|
|
In placeholder you can put controls or tables or panels but not webform
instead of that you can use frameset
dropdownlist in one frame
page in other frame
when dropdown item is changed redirect to repective page
string strpagename=ddlForms.selectedItem.value;
Server.Transfer(strpagename);
|
|
|
|
|
Sir,
Where is role of placeholder in the code to execute the the form name in dropdownlist
|
|
|
|
|
DropDownList ddl = <placeholder name="">.findControl('ddl name')
-- modified at 8:05 Friday 4th August, 2006
|
|
|
|
|
I think you should convert your Forms to UserControls, it is very easy and you can display selected control in your placeholder
Pilo
|
|
|
|
|
Hi Friends,
While I am trying to connect to the database server I am getting the following error.
ERROR: An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
I checked my web.config file. I didnt find any errors in this.
Please help me to solve this.
I am using VS 2005 and SQL Server 2000
Thank you
Jijo
JIJO BABY - Lets Play C#
|
|
|
|
|
Hi,
In the error it is given -
jijobaby wrote: this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server
And you have not mentioned that whether the SQL Server you want to use is on same machine or LAN some where. If you are using a network SQL Server then this error may occur because the TCP/IP or Named Pipes may not be set in ur SQL Server.
Please specify the complete details about the location of SQL Server.
"A good programmer is someone who looks both ways before crossing a one-way street." -- Doug Linder
Anant Y. Kulkarni
|
|
|
|
|
Thank you
Yes. I installed sql server in another machine.
JIJO BABY - Lets Play C#
|
|
|
|
|
How to convert string array to Guid[]
string [] arrme=Convert.ToString(Request.QueryString["value"]).Split(Convert.ToChar(";"));
i want to convert arrme to Guid[]
thanks
Mahendra
|
|
|
|
|
+ Go through the string array and manage to convert each string to the Guid value.
+ Use the Array.ConvertAll :
Guid[] guids = Array.ConvertAll<string, Guid>(arrme, delegate(string s) { return new Guid(s); });
|
|
|
|
|
Dear Friends,
Please Help Me.
i'm generating some controls through coding i want to manage this state. When i'm updating i can't get these controls value. Generating controls to PlaceHolder.....
Please Help me................. Dear Friends
Haridas.R
harisofttech@gmail.com
harisofttech@hotmail.com (online)
harizeenet@yahoo.co.in(online)
"Achievement is not a destination, its a journey "
|
|
|
|
|
i think u can use this property while creating control dynamically
txtControl.EnableViewState = true;
|
|
|
|
|
Dear friend, it is not working?, Do you have any other method?
Haridas.R
harisofttech@gmail.com
harisofttech@hotmail.com (online)
harizeenet@yahoo.co.in(online)
"Achievement is not a destination, its a journey "
|
|
|
|