|
No, the simplest method is to call both in the click event handler.
function OnClick()
{
Method1();
Method2();
}
only two letters away from being an asset
|
|
|
|
|
separate the two calls with a semicolon.
OnClientClick="function1();function2();"
|
|
|
|
|
Calling of multiple functions of javascript on client click is very simple.
onclick='javascript:function1();javascript:function2();'
Hope this will help you.
Thanks & Regards
Dilip Kumar Vishwakarma
|
|
|
|
|
and you're telling me this because....?
|
|
|
|
|
How to wrap the words in a GridView
Regards,
LEE
|
|
|
|
|
Take Edit columns from the smart tag of grid.And select the bound field u want to wrap.And take Itemstyle from the Field properties.Inside that a property is there.ie,wrap,set that value.Headerstyle also have this property.
Arun J
|
|
|
|
|
Hi,
I am placing custom error code in web.config.I just want to redirect it to some page(different Page that will show only that your session have been expired.)
when session expires for the application.Code is something like
<customerrors mode="On" defaultredirect="error.htm">
<error statuscode="500" redirect="CustomerError500.aspx ">
(I am using ASP.NET 1.1)
Can anyone plz let me know the Status code for the session expired???
Thanks in Advance
adil kazmi
|
|
|
|
|
Did you forget to click 'Ignore HTML tags'? I can't see any code.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
I m sorry..
here is the code...
<customErrors mode="On" defaultRedirect="error.htm">
<error statusCode="500" redirect="CustomerError500.aspx "/>
</customeErrors>
adil kazmi
|
|
|
|
|
Hi Friends,
I have one doubt,how to store images in the database and retreive images from the database to the datagrid.Kindly send me the coding if possible.
Take Care
Thanks & Regards
Senthil Kumar
|
|
|
|
|
senthilsstil wrote: have one doubt,how to store images in the database and retreive images from the database to the datagrid
First google the the subject i think you will get n number of examples there
Keep in mind google is your best friend
senthilsstil wrote: Kindly send me the coding if possible.
Never ask for code. try your self first,show your efforts that you put.
It's matter because you are not going to learn any thing by behaving like this
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
modified on Thursday, January 31, 2008 7:25:45 AM
|
|
|
|
|
Hi Sandeep,
Thanks a lot,i will search in google.
Take Care
Thanks & Regards
Senthil Kumar
|
|
|
|
|
Hi Friends,
I have one doubt,how to store images in the database and retreive images from the database to the datagrid.Kindly send me the coding if possible.
Take Care
Thanks & Regards
Senthil Kumar
|
|
|
|
|
senthilsstil wrote: Kindly send me the coding if possible
I'll will send you the code (if possible). Please don't double post.
- Regards - J O N
A good thing is a bad thing if it keeps you from the best thing. - Dr. Adrian Rogers
|
|
|
|
|
Hi John Prabhu,
Sorry for sending double post.
Thanks & Regards
Senthil kumar
|
|
|
|
|
Hi,
You should investigate methods of storing / retrieving your database images as Binary Large Object (BLOB) data. Check out the below for which should help:
http://support.microsoft.com/kb/258038
Clean code is the key to happiness.
|
|
|
|
|
I enter user details like name,address etc.I want to display these details in a table.But when i display it the address not come in proper way.How can i display the address in proper way.
For entering i used textbox with multiline property.
|
|
|
|
|
Is there any problem in using the TextBox control to display the address by setting the MultiLine and Read-Only property to True or by setting the enabled property to false?
If you wanted to display multi-line text in a lable control, then you can add Environment.NewLine at the end of each line. I hope this solves your problem.
- Regards - J O N
A good thing is a bad thing if it keeps you from the best thing. - Dr. Adrian Rogers
|
|
|
|
|
Check the html that ASP.Net emits. Even though the people input "foo {newline} bar {newline} err", and that gets saved to the database, you will need to replace the newline characters with the BR tag. Your html will have new line characters in it, but they will be ignored by the browser.
|
|
|
|
|
I want to open a Word doc on aspx page. Even though at temporary location. There is a tool which will convert the Word to XML and we can post it back to server. So my primary requirement is to load and make any changes to it from ASPX page.
What will be the approach or can some one tell me the code to perform the task. I know there are libraries available for MS Word. We can create word files but I am not sure how can we edit them after loading on ASPX page.
I tried using IFRAME. The word doc opens in a new window out side the application. I want it to open the word file in a ASPX page
Regards,
Pavas
|
|
|
|
|
hi mpavas,
Few days ago i also faced the same problem. My problem is that i want to embed Resume documents(doc) to aspx page. It works but there is no formatting, no indentation of letters.
So, to achieve this you need to save your documents as Single Web Page in Save As Typeof Save As dialog Box. You can see this in MS-Word 2003. But you should do this programatically. Your document can easily embed into Iframe of Html tag. Believe me it works without changing formatting of word document.
Hope this will help you.
Thanks & Regards
Dilip Kumar Vishwakarma
|
|
|
|
|
right now I'm working on live project.
how can I restart windows service through web application
or
how can I set timer for windows service.
thanks.
You get the best out of others when you give the best of yourself.
|
|
|
|
|
hi,
let's see
public partial class _Default : System.Web.UI.Page<br />
{<br />
protected int j;<br />
<br />
protected void Page_Load(object sender, EventArgs e)<br />
{<br />
TextBox4.Text = "" + ViewState["count"];<br />
<br />
<br />
<br />
}
protected void Button3_Click(object sender, EventArgs e)<br />
{<br />
<br />
if (ViewState["conut"] == null)<br />
{<br />
j = 1;<br />
<br />
}<br />
else<br />
{ j = (int)ViewState["count"] + 1; }<br />
ViewState["count"] = j;<br />
<br />
<br />
<br />
}}
when click on Button3, then textbox show "1"...even on every click......how i can store the value of int j so that textbox could show the incremented value of j variable ? .........
|
|
|
|
|
You should learn to use const s
What's the difference?
ViewState["conut"]
ViewState["count"]
If you spell things properly, it works better. If you use const s to store the names of things in your viewstate the compiler will tell you when you mistype stuff so you can see where you are going wrong quicker.
|
|
|
|
|
Try with this.No need of global variable.
protected void Button1_Click(object sender, EventArgs e)<br />
{<br />
if (ViewState["Count"] == null)<br />
ViewState["Count"] = 0;<br />
int newCount = (int)ViewState["Count"] + 1;<br />
ViewState["Count"] = newCount;<br />
txtCount.Text = newCount.ToString();<br />
}
Arun J
|
|
|
|