|
You can emit the code from codebehind (codefile in 2005) .Attributes.Add("onClick","methodCall()");
|
|
|
|
|
in my application i have used a datagrid which has checkboxes .
and an image button "submit"
when ever you click the submit button first it should check whether the items in the grid are selected are not
If selected it should display confirm msg"do u want to submit"
If checkboxes are not selected in the grid ,
and when u press the submit button it should diplay
an alert msg "Select the items in the grid"
confirm and alert mesages must be in javascript.
pls help me in this its very urgent
For the same button i hav to check 2 conditions
depending on the conditions it should display related confirm or alert msg
thank you
Archu
Archu
|
|
|
|
|
Well, if it's URGENT let me drop everything for you.
Please read the forum guidelines.
_____________________________________________
Flea Market! It's just like...it's just like...A MINI-MALL!
|
|
|
|
|
function fn()
{
var count="no of checkboxes";
var chked="false";
while(count>0)
{
var chk=document.getElementById("check_box_name");
if(chk.checked=="true")
{
chked="true";
}
count=count-1;
}
if(chked=="true")
return confirm("Do you want to save?");
else
alert("please check the chkboxes");
}
}
And yes do abide by the forum guidelines!!!
I was born dumb!!
Programming made me laugh !!!
--sid--
|
|
|
|
|
Hi,
I have Gridview to enter some details by user. First user enters one row, in that row last column I need to show 'Add another emp' link button to add another row to gridview. if he clicks on add another emp we need to add new row to gridview and show that 'Add another emp' in the newly added row ending column only.
How can I show that link button only on last row and last column of Gridview not for all rows of gridview.
Thanks in advance.
|
|
|
|
|
It is kind of a hack, but I would put something like that in the pager template. You just need to be careful since if all your rows fit on one page the pager template goes away, so you have to code around it. Anyway, that is what I would do.
Ben
|
|
|
|
|
hello kalkumar,
use a template field or command field or u will use Edit button n the grid view instead of that change the name of the button and set button type=Link Button it will adjust ok
ok byee
Murali
|
|
|
|
|
Hi,
I need to implement the custom control for the Collapsible panel that means when we click on panel header it needs to be expanded or collapsed. For this I am writing the code like this:
http://www.codeproject.com/aspnet/collapsiblepanel.asp
Here I am creating the three table cells one cell contains the collapse/Expand image and second cell contains the title of the panel and the third table cell contains one image suppose named helpimage. The title, images are implemented through properties. Those two cells are added to one table row and becomes Header to the panel.
I am providing a property to put the image for help.
Now the problem is I need one event for the helpimage when the user clicks on that particular helpimage I need to open the help pdf file or traverse to antoher aspx page.
How to write click events for the image which is in panel.
or
I am able to create the Click event for the panel. The Clcik event need to be fired when the help imageis clicked. How to check whether that image is clicked or not to fire click event.
Thanks in advance
|
|
|
|
|
hi!
its my 4th message. but no one has answered me yet! im in prob dear!
the page http://www.aidasanibiradri.com/About.aspx is not working perfectly in ie 7.0 but working in ie 6.0
wat cud be the problem ?
|
|
|
|
|
|
hi!
no there is no specific error cuming. only thing is that page is not displaying the story properly. if u have seen this page then definatly u can understand the things r cuming in strange way. im showing text only on this page. there r 4 to 5 lines i have written but the lines r cuming only one or two and its looking like its merging between eachother.
for ur analysis i m sending u the links below.
http://www.aidasanibiradri.com/About.aspx
http://www.aidasanibiradri.com/FamilyInfo.aspx?nodeID=20
plz dear gme some solution for this.
thanks in advance.
regards.
|
|
|
|
|
Hi all,
I am in a windows form appplication which sends mail to different users. I have a rich text box for entering message body and i would like to send formatted text as message body. I have tried rtbBody.text & rtbBody.rtf, but both failed. Please tell me how to semd mails with formatted text from windows form appplication.
or should i try VB.NET forum?
Thanks in advance
Sebastian
|
|
|
|
|
To format text, you can use HTML and set the IsHtmlBody to true. I think you'll also be allowed to send RTF, but you need to check which MailHeader to set. I'm not for sure if RTF is supported though...
|
|
|
|
|
thanks for your reply...... could i get some examples
thanks once again
sebastian
|
|
|
|
|
|
Thanks, that URL is really worth.................
but here i have a windows form that contains a rich text box. I have to comvert the content of rtf ie richtextbox.rtf to HTML and send that content....
could you help ne with some other suggestions.. !
Thanks Once Again
Sebastian
|
|
|
|
|
Hi Everyone,
Export to Ms-word is done through Response.addHeader statement, but iam unable to add footer through this. Can anyone help me in this regard.
Regards,
Manowj
|
|
|
|
|
Hello Everyone,
I've a designed a web site in ASP.NET and it's looking great in local pc but whenever i see this at laptop it's header looking a bit different i mean not looking as it is looking in local pc
or wht code i must include to make it similar
Here i'm leaving my link...
http://www.saamstesting.com
Please solve my problem
Thnx in advance
|
|
|
|
|
|
hi frnd,
plz use % when specifying width and height of a table or control
ie width=100% height=100
if u specify this(width and height of each and evry control) in pixel it will vary in different resalutions...
All I ever wanted is what others have.... CrazySanker
|
|
|
|
|
frnd,
have u drag drop the controls when u developing the site
if yes then it will chage with the resolution
regards,
koolprasad2003
Be a good listener...Because Opprtunity knoughts softly...N-Joy
|
|
|
|
|
Hello Everyone,
I've a designed a web site in ASP.NET and it's looking great in local pc but whenever i see this at laptop it's header looking a bit different i mean not looking as it is looking in local pc
Here i'm leaving my link...
http://www.saamstesting.com
Please solve my problem
Thnx in advance
|
|
|
|
|
|
Hi Everyone,
Is it possible to send the stringbuilder object from code-behind file(aspx.vb) to vbscript in aspx file.
Regards,
Manowj
|
|
|
|
|
You can have it converted to a string using .ToString() and then assign it to a protected member variable.
This you can use in .aspx page.
|
|
|
|