|
ok Mr.Mike I will check it tomorrow .
|
|
|
|
|
Hello Mr.Mike,
Can u tell me how to use the onClientClick property of <asp:button>
|
|
|
|
|
Sure - it's an ASP.NET 2.0 property, and you simply assign the javascript you want rendered as part of the client-side onclick javascript event.
The MSDN documentation for OnClientClick[^] has a good example.
|
|
|
|
|
I am developing an application on my local machine in the office in asp.net 2.0 to send emails.
The application is now able to send emails to external and NOT to internal email addresses.
Do you know what is wrong please?
Thanks
|
|
|
|
|
These types of things often turn out to be SMTP configuration. Are you running your own SMTP server? Is someone else responsible for the SMTP server for "internal" email addresses?
|
|
|
|
|
I don't know.
I am running the application (Which I am developing) in my machine.
If the site is sending emails externally the why it does not send emails to anyone internally?
Thanks
|
|
|
|
|
fmardani wrote: I don't know.
You have to know what SMTP server you are using.
fmardani wrote: If the site is sending emails externally the why it does not send emails to anyone internally?
System administrators can establish different rules for different SMTP servers. It may be that your organization's email server has restrictions on who is allowed to use it as a relay. You need to check with your SMTP system administrator(s).
|
|
|
|
|
Hello Friends,
How to fire RowCancelingEdit of gridview programmatically. Actually i have implemented Atlas AJAX of Microsoft, and after clicking inbuilt update button of the GridView record is updated but Grid remains in edit mode. Then i have to presss Cancel button to bring it to normal mode. Any solutions to this problem guys..
thanks in advance
Sheel Gohe
|
|
|
|
|
I think you can set the EditIndex[^] property of the GridView to -1 .
|
|
|
|
|
Mike i tried that but its not working....
Sheel Gohe
|
|
|
|
|
how to build a website in which users make their own web pages.
|
|
|
|
|
Well, it's always important to start at the right place for this type of thing. I'd recommend looking here[^] first, with special attention to #2.
|
|
|
|
|
Hi,
I have 1 html file it has some hot fields, i use that file as template, i read that file programaticaly and create 1 more html file in that i replace hotfields with desiared data now my image is ready and i want to copy that on client file i pop up masage on client pc to save that file as we normaly get mesaage to save files when we try to save any file from the internet and it get copy successfuly but 1 problem is their and that is
It has 2 images i have used in that file now thos images dosenot get copied on the client pc
Please help me
(I m working in ASP.Net)
Regards,
Harshad Pednekar
|
|
|
|
|
You could use fully qualified (absolutely referenced) URLs to your images - instead of
src="/myFile.gif" for example, you could use
src="http://myserver/myApp/images/myFile.gif" At least your client could then see the images.
|
|
|
|
|
Hello
In my web application, I made a excel export of my screen (a simple informations grid !) and i tried to open that excel export on a new window (to not overwrite my browser content) and i used this instruction :
this.Page.RegisterClientScriptBlock("xlExport",@"<script language = javascript>javascript: window.open('/MyApplication/DefaultController.aspx?PageId=ExportXLPage&xlFiles=" + fileName + "','NewWnd','resizable=1,toolbar=1,location=1,status=1,menubar=1,scrollbars=1');</script>");
to inject this code dynamically into my asp page, so that this code will be executed and the page "ExportXLPage" will be opened.
And in that destination page i putted this intsruction,
Response.Redirect(FileName));
to display the excel file wich i made with these headers (just to mention) :
string str = "charset=utf-8";<br />
oStringBuilder.Append("<HEAD><META http-equiv=Content-Type = application/ms-excel;" + str + ";Content-Disposition:attachment;filename=" + fileName + ".xls></HEAD>");<br />
That worked fine on some machines and didnt on other ! In fact the new window opened and quickly closed whithout displaying anything on a machine with XP system and IE 6, and worked fine on , for example, a machine with WIN2000 and IE 6.
Even worst : when i pressed CTRL key and request that export, it worked and the new window was perfectly displayed with the usual options (save/open/cancel) of the excel file. And i have to mention that i already desactivated the POPUP blocking system of my internet explorer !! (that could be normally desactivated with hitting CTRL key).
Could that be related to the server's configuration (i mean system version...), or the client's configuration or may be both of them ?!?!
Or did i simply wrongly opened that new window or badly built my excel file ?
(All these problems occured when my application was published on my client server, but when i tested on my local machine, every thing was alright !!)
Thanks in advance for helping soon
|
|
|
|
|
please help me to find method to receive email using asp.net from localhost using gmail Mail
thanks allot
|
|
|
|
|
So you'd like to build a complete POP3 or IMAP application in ASP.NET then?
|
|
|
|
|
yes i need to no the configration of pop3
|
|
|
|
|
|
I need to receive mail not to send mail
|
|
|
|
|
|
Hi Friends,
I created an web user Control, that contents two command buttons
but when i used this control on my aspx.page,When I clicked on Ist button or II nd button it shows only one event.
I need differant events on each click of two differant button on that web-user Control
pls ..help me
Thanks
sbjadhav
|
|
|
|
|
I don't understand - you assigned different event handlers to the different buttons' Click event, right? Are you saying only one of the event handlers is actually triggering?
|
|
|
|
|
Hi Mike,
Thanks for reply,Yes I am also appriaciate with your answer, but here I created One Web user control using two Command Button...
When I used that Web user Control , Then I am not able to get different events for that both Buttons on Button click Event on that single webusercontrol.
I made webuser control using two command button & Used It on Aspx web Form.
when I click on any button it shows single event
Pls sugggets me ..
Thanks
sbjadhav
|
|
|
|
|
I see you are trying to explain this, and I am just not getting it. What I don't understand is how you are using this control. Let me walk through an example. Suppose I have these two files -
uc1.ascx :
<%@ Control Language="C#" %>
<script runat="server">
void Button1Click(object o, EventArgs e)
{
Response.Write("Button1 was clicked");
}
void Button2Click(object o, EventArgs e)
{
Response.Write("Button2 was clicked");
}
</script>
<asp:Panel runat="server" backColor="lightYellow"
borderColor="black" borderStyle="Solid" borderWidth="1"
>
<p>This is the user control, <i>uc1.ascx</i></p>
<asp:Button id="Button1" runat="server" Text="Button1"
OnClick="Button1Click"
/>
<asp:Button id="Button2" runat="server" Text="Button2"
OnClick="Button2Click"
/>
</asp:Panel>
usercontroltest.aspx :
<%@ Page Language="C#" %>
<%@ Register TagPrefix="uc" TagName="uc1" Src="uc1.ascx" %>
<html>
<head>
<title>UserControl Test</title>
</head>
<body>
<form runat="server">
<p>Here is the user control. Click a button to see what happens.</p>
<uc:uc1 runat="server" />
</form>
</body>
</html>
The first is a custom user control with two buttons, and the second is a page which uses the control. Each button in the user control is assigned its own event, and when you try it out you'll see each different event is firing correctly. Is this what you mean? Or are you using your user control differently?
|
|
|
|