|
you can write it in the html part also for the button, but why you don't want to use attribute.add method?
Best Regards,
Apurva Kaushal
|
|
|
|
|
i am developing online exam.in question session, if i click next button without check radiobox i need to show alert. else continue.i have give time countdown in javascript.so if i give attribute.add time will stop countdowning. so i plan to call javascript only in if-else loop when radio not checked
thank you
|
|
|
|
|
For this you can write a simple javascript validate function and call that function on onclick of the button. In that button you just have to check whether any of the radiobuttons have been checked or not. And I don't think so that because of this validate function any of your other javascript function will get affected. Here[^] you can get the example of how to validate a radio button.
Best Regards,
Apurva Kaushal
|
|
|
|
|
|
Hello,I have a button,when i click on that button it opens the OpenFile window like a window after click on the browse button
Plzz Give me some idea regarding this
Advanced Thanks
Srilakshmi
|
|
|
|
|
Try it using the Javascript.
Regards,
Satips.
|
|
|
|
|
you can open a new browser window with the help of javascript.
window.open()
function is used for that
Pankaj Gupta
(Take it easy)
|
|
|
|
|
Hi All,
My requirement is like this:--
Suppose if i have a table having numerous cols as well as rows , i need to make the header always visble and there shouldn't be paging(so as to avoid postbacks). Also the page shouldn't be lengthy to accomodate all the records.
A <div> is a possible solution for this. But as we scroll down the div the header also goes up, instead i need to make the header fixed and scroll thru the records so as to make out the title of each column.
Please help me out with an answer.
Thank You.
Regards,
Jeeva
-- modified at 0:45 Friday 3rd November, 2006
|
|
|
|
|
try it out by using panel.
Regards,
Akhilesh Yadav
|
|
|
|
|
what property of panel we can set so that we can make header of grid steady??? is there any property for that??
Regards,
DJ Rock
|
|
|
|
|
You can create a table with 2 rows.
first row conatining the cols equal to grid.
...
(equal to cols in the grid)
fix the width of the cols of the table equal to grid.
and dont show the header of the grid.
it just give the view as you want.
Pankaj Gupta
(Take it easy)
|
|
|
|
|
hi all,
can anyone help me with displaying of graph dynamically. i am trying to compare with different data in the same graph and while moving mouse over the graph area, a pointer(icon) should move along the graph line.(u can refer to http://finance.yahoo.com/charts).i am restricted not to use any third party tools and to be done using c# and asp.net.
thanks in advance
regards
bskvarma
|
|
|
|
|
Hi,
I want to get the data from database ( table is having only one column ), it has to be displayed as the first column in the grid.( which is a template column ).
Please share your ideas.
Thanks in advance
Regards,
Libran
|
|
|
|
|
hi
What data you are having in your database??? and why you want to display in template column???
|
|
|
|
|
column is having movie shows like morning,noon show, matinee etc.I have other template columns which are having check boxes.
|
|
|
|
|
for selecting check boxes in grid using template column you can use
<asp:TemplateField>
<ItemTemplate>
<asp:CheckBox runat="server" />
</ItemTemplate>
</asp:TemplateField>
and so your first column will be template column for selecting movie shows and your second column will be bound field.
so in bound field you give header text = "Movie Show"
and data field property= "Show" and you can write query to select from database like "Select Show from movie"
so your selecting column name and data field value should be same.
Hope this will help
Enjoy
|
|
|
|
|
Hi dj.rock
Thank you.It is worked.
I have posted a new message. Please help me if you know.
Thanks,
Libran
|
|
|
|
|
you are welcome
I will sure work out for your next problem. and if i have solution will tell you
Enjoy ;);)
Regards,
DJ Rock
|
|
|
|
|
|
HI there,
i read ur msg
it ok whts the prob do it
conect with db and do it
mani
|
|
|
|
|
the problem is I have develop a screen, like a matrix. Where I have to get the row names of the first column from database. For other cells i have insert check boxes.
|
|
|
|
|
requiedfieldvalidatorfname.ControlToValidate = txtfname.Text
requiedfieldvalidatorfname.Text = "Please Enter the First Name"
i use for this VB.net in VS.net 2005 so i need to validate the each fields,.which users should fill those field but i'm getting error like this
The ControlToValidate property of 'rfvfname' cannot be blank
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Web.HttpException: The ControlToValidate property of 'rfvfname' cannot be blank.
pleas help for solve this
|
|
|
|
|
requiedfieldvalidatorfname.ControlToValidate = txtfname.Text
This line will give error as when ur page loads textbox is empty.
try this
requiedfieldvalidatorfname.ControlToValidate = "txtfname"
Regards,
Akhilesh Yadav
|
|
|
|
|
Why aren't you setting these in design mode?
You have to set the validator to the object, not its property.
|
|
|
|
|
Hi all,
I have a data grid to list rows and am printing from IE using javascript window.print(). Its working very fine. But I like to print header in each page of my print. Is it possible?
Also I am using the following script to set up the page break after printing 15 items in a page. It is working all right. Is there any other way to insert page break after certain page margin?
private void dgResults_ItemCreated(object sender, System.Web.UI.WebControls.DataGridItemEventArgs e)
{
if(e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem)
{
count++;
if(count > 15)
{
e.Item.Style.Add("page-break-after","always");
count = 0;
}
}
}
Is there any similar way to add header in each page? Or is it possible to add ListItemType.Header in the middle?
Thanks and Regards
Renu
|
|
|
|