|
|
i am trying to call server side function like this
<br />
<asp:button id="btn_submit" runat="server" xmlns:asp="#unknown"><br />
OnClientClick="'<%= checkcategory() %>'" OnClick="btn_submit_Click1" Text="Submit" /><br />
<br />
</asp:button>
it was not working can u provide me the solution
thanks in advance
learning developer
|
|
|
|
|
Hi,
the server-function that will be called is "btn_submit_Click1". So you don't need the OnClientClick.
Regards
Sebastian
P.S.: Oh wait, you could also try to use AJAX, but that's more sophisticated. What do you want to achieve?
|
|
|
|
|
The server event will be attached to
btn_submit_Click1
Im assuming your hoping checkcategory() would be called from OnClientClick. OnClientClick is reserved for JavaScript which has no direct relationship with the server.
You would need to call checkcategory (assuming its a server side function) in btn_submit_click1. Or if you explicitly needed to call checkcategory from the client side function you would use Ajax (Google it!)
FYI, calling a javascript function from OnClientClick would be
OnClientClick="checkCategory()"
function checkCategory()
{
alert("CheckCategory Called..");
}
James Simpson
Web Developer
imebgo@hotmail.com
P S - This is what part of the alphabet would look like if Q and R were eliminated Mitch Hedberg
|
|
|
|
|
how can i activate cross site scripting for my web site so that i can use an Ajax controls on my 2nd site which open inside the first site.I am using iframe.
|
|
|
|
|
Cross site scripting[^] is a bad thing. You don't want to activate it. You should be trying to prevent it.
Simon
|
|
|
|
|
Both the sites belongs to me and that is what the client requirement is ,u could u suggest me any other method to do it if not cross scripting...
|
|
|
|
|
Hello Friend,
I'm sending mail at my domain server then i'm getting mail by using my mail server but when i'm sending mail at my gmail account using my mail server it's not sending the mail and raising an error
MailBox Unavailable The server response was : No Such user here
I'm using the following code plz suggest the way..........
MailMessage mail = new MailMessage();
MailAddress address = new MailAddress("halo@gmail.com", "Testing Mail");
mail.From = address;
mail.To.Add("raushanraj2@gmail.com");
mail.Subject = "Hello How R U";
mail.Body = "Dear Friend<br> How R U";
mail.IsBodyHtml=false;
string host = "myMailServer";
SmtpClient smtp = new SmtpClient(host, 25);
try
{
smtp.Send(mail);
Response.Write("Mail Sent Successfully");
}
catch(Exception ex)
{
Response.Write(ex.Message.ToString());
}
|
|
|
|
|
Have you managed to get e-mails sent to a different account?
Why are you declaring two e-mail addresses?
Formerly know as .netman
|
|
|
|
|
Probably because your from address is a gmail account which doesn't exist on your mail server...
|
|
|
|
|
Really that account exist
modified on Friday, October 17, 2008 8:36 AM
|
|
|
|
|
Is there a way to use the asp:CreateUserWizard control to set focus to the Create User button.
What I want is for the Create User button to have focus after the user has re-typed their password. Thus, if he now presses return/enter, the user is created...
Any help would be much appreciated.
|
|
|
|
|
Nice Username!!
You could set the focus in the OnTextChanged event for the textbox.
Or set up a tab order so after tabbing from the textbox for password it goes straight to the button.
Formerly know as .netman
modified on Friday, October 17, 2008 4:16 AM
|
|
|
|
|
hahaha... tnx ^_^
I'm geussing I'll have to create a custom template for that, right ?
Thing is, using the CreateUserWizard, as far as I can see I don't have much control over that button, i.e. setting focus to it, tab order etc...
How can I get "access" to the Confirm Password text box and it's events...?
|
|
|
|
|
|
mmm.... interesting. Thanks.
Seems like i'll have to customize... but I'm too lazy ^_^ The user will have to click on the Create User button for now
I was hoping there's an easy way
|
|
|
|
|
may be you need it on your own way......
shoul you try html focus functions or try jscript for it ...
i dont know any coding facility for focusing on that except javascript or html function.
you should try javascript for better performance and security.
|
|
|
|
|
mmm.... javascript. I am not too familiar with javascript, and I only recently stepped into the as world ^_^
How would you do that?
|
|
|
|
|
Hi all
Am migrating an application from VS 2003 to VS 2008 web application...i have done that successfully....while executing am getting an error like "ResourceManager is not a member of resources" in global.asax.vb which came inside the App_Code folder after migration...
what might be the reason?....can anybody help me to come out of this problem..?
Thanks in Advance...
|
|
|
|
|
How can i get codes of multiple uploader that is used in facebook, or how can get codes of multiple uploader like this
|
|
|
|
|
M. K. BASHER wrote: How can i get codes
You want free code to create the same tool as facebook?
Formerly know as .netman
|
|
|
|
|
If i get that will be great.
|
|
|
|
|
Hi Friends,
I'm using the Following code and retrieving the Relative path and while trying to pass that path to a Script Function the script function is not getting invoked.can anyone tel me a solution?
Dim imgFU As New System.Web.UI.WebControls.Image
imgFU.ID = "imgFU" & row
imgFU.ImageUrl = "~/images/Calendar.ico"
Dim relativePath As String = "~/Controls/frmcalendarpopup.aspx"
Dim newUri As New Uri(Request.Url, VirtualPathUtility.ToAbsolute(relativePath))
imgFU.Attributes.Add("onclick", "OpenCalendarPopup('" & strPath & "');")
The imgFU is an dynamically generated image..
Regards
Sivan.G
|
|
|
|
|
Hello Everyone
I am trying to make a web application for the banking system using asp.net and C#, but the problem is I am a student of an IT and do not know anything about the Bank systems. So I would like to get the possible help from you all, especially on the subject of Bank Data Flow, Bank Information System, The Managerial Part of the Bank, Transaction Types, the relationship and all other things. I will be very thankful if you provide me with the necessary information.
|
|
|
|
|
krishna subedi wrote: Bank Data Flow
Well, there are these cables and they run from one computer to another and the data moves along them.
krishna subedi wrote: The Managerial Part of the Bank
This is an easy one, and normally involves the flow of money. The higher up the bank you are, the more money flows into your account when you screw up. The correct terms for this are "Bonus" and "Dividend" - also known as "get your hands off our money you dirty stinking thief - you landed our economy in this mess, so you should be the one to go to prison."
krishna subedi wrote: Transaction Types
Read commited, repeatable read, read uncommited, serializable and a few others that I can't be bothered to type out right now.
krishna subedi wrote: Bank Information System
They are called books, and are available in things called bookshops - now go and buy one and do your own homework.
|
|
|
|