|
sajan ss wrote: i have written a javascript in .cs file, but has no relation with the dropdownlist..
Can you show us the Javascript that you wrote?
sajan ss wrote: Error : Object required ;
The invisible control doesn't show in HTML. So, any javascript code (eg: document.getElementById('dropdown'); ) which is trying to grap the id of invisible control will throw this error.
|
|
|
|
|
i made it invisible in aspx.cs file only...
but the javascript written is not concerned for this, that was for a gridview....
but still the error occurs...
anyway i wil attach the javascript...
<script language="javascript" type="text/javascript">
var mygridSelectedColor;
function setMouseOverColor(element)
{
mygridSelectedColor = element.style.backgroundColor;
element.style.backgroundColor='lightblue';
element.style.cursor='hand';
}
function setMouseOutColor(element)
{
element.style.backgroundColor=mygridSelectedColor;
element.style.textDecoration='none';
}
function ValidateForm()
{
var user_date=document.form1.txteffdate
if (isDate(user_date.value)==false)
{
return false
}
return true
}
</script>
SAJAN A PILLAI
C#.NET Programmer
TELESOFT INDIA PVT LTD...
BANGALORE
|
|
|
|
|
sajan ss wrote: Is there any way to hide a dropdownlist when its holding data...?
I wonder why you want this..
1. check the count and make it invisible
OR
2. Set the visible property of dropdown list to False after populating with data.
|
|
|
|
|
|
Hi
I am new master page concept.can any one help about this.
any sample projetc and good tutorial.
thanks
Asif
|
|
|
|
|
Master Pages[^]
Regards,
Satips.
Don't walk in front of me, I may not follow;
Don't walk behind me, I may not lead;
Walk beside me, and just be my friend. - Albert Camus
|
|
|
|
|
hello asif,
Add a master page in ur webform. Now go to add new item --->Webform1.aspx, there select master page option will be present click on that the master page will be selected.By using this we can avoid flickering,page richness will appear...
If we use master page the form will be in content place holder...
ok byeee
Murali
Murali
|
|
|
|
|
A master page provides a template for other pages, with shared layout and functionality. The master page defines placeholders for the content, which can be overridden by content pages. The output result is a combination of the master page and the content page.
When users request the content page, ASP.NET merges the pages to produce output that combines the layout of the master page with the content of the content page.
The @ Master directive defines it as a master page.
The master page contains a placeholder tag <asp:contentplaceholder> for individual content.
The content page contains a content tag <asp:content> with a reference to the master page (ContentPlaceHolderId="CPH1").
Doubts Should Die For ever ..... HORROR STARTS NOW ...919963717475 chandrashekarthota@gmail.com
|
|
|
|
|
Hi,
I have one user control which has one button control, I placed this user control in Repeater's Item template. But I want to handle the user control Button click event in repeter.How can I do this.
Regards,
Kalyan
Kalyan
|
|
|
|
|
hello kalyan,
Take a button control on the webform1.aspx and fire the event .U will get btn_click(...0,...e) right .So now call the same button in the repeater item template and write code in that btn_click event.oK then that event will work.
ok byeee
Murali
Murali
|
|
|
|
|
Hi there,
I want to create installer file, in that i want to install two executable files, both should install at the same time. Plz help...
Regards n Thks
Sam.M
|
|
|
|
|
Sam.M wrote: both should install at the same time.
I am not sure on this, but try Install Maker[^]
|
|
|
|
|
|
Hi...
I am using a Gridview control which i can scroll vertically, when the rows are scrolled i want to set the Header as a fixed one. How can i perform this.
Thanks
Mahesh.J
|
|
|
|
|
|
|
I want to create image galary by just Drag and Drop the image from external folder. This I have to do in web application. I want asp.net sample code
It is urgent. Can you send me asp.net or javascript code.
-- modified at 3:54 Wednesday 18th July, 2007
|
|
|
|
|
I saw one photo gallery like that in dotphoto.com. They allow the users to drag and drop the images from harddrive to their upload control.
They are using flash to get this feature. but one thing is that the user has to add their site in trusted zone.
Maybe. you can try with flash too.. I don't see any other alternative way to achieve this goal.
|
|
|
|
|
Hi there,
I'm coding in ASP.net 2.0 and I've followed a couple examples to attempt to filter a GridView on my page using a DropDown box. I.e., List of states in the drop down menu; when California is selected the list of data in the GridView should filter to only include rows with California. All examples I've seen say that the code below should work but my GridView disappears from the page completely when I enter the WHERE clause that's linked to the dropdown menu named ddItemType.
I've tryed using the syntax '[ITEM_TYPE] =@ddItemType' and '[ITEM_TYPE] =?'
but these both make the GridView disappear.
Can anyone help me???
Thanks!
<asp:accessdatasource id="AccessFlashlightDS" runat="server" datafile="~/AccessFlashlight.mdb"
="" selectcommand="SELECT [ITEM_TYPE], [SEGMENT1] FROM [OrgItems] WHERE ([ITEM_TYPE] =@ddItemType)"
="" <selectparameters="">
<asp:controlparameter type="string" name="ITEM_TYPE" controlid="ddItemType" propertyname="SelectedValue">
|
|
|
|
|
kmarchiony wrote: my GridView disappears from the page completely when I enter the WHERE clause that's linked to the dropdown menu named ddItemType.
If you are sure about this SELECT statement with that criteria should return some values then you might miss to bind the data with your gridview.
You need to bind the data after filtering... it is better if you show us the code that you wrote in Page_Load and GridView filtering...
|
|
|
|
|
hello kmarchiony,
u have to take the help of the javascript code.Since the drop down list will be innergrid view the values will not be captured properly.Write code in javascript call that in Grid View
ok byeee
Murali
|
|
|
|
|
Hi all,
I am designing a Online Purchase Form using asp.net. It Contains Sno. PartNo Manufacturer, Quantity and Price. For this, I created a gridview. Now, the box is empty and columns are labelled with as mentioned above (sno, part no, etc......).
But now, I am not able to edit the columns like entering the Sno, Partno, manufacturer name, etc...
Could any one please help me on this... Let me know if you need any further details...
I tried by using something like this, but invain...
<asp:TemplateColumn HeaderText ="..">
<ItemTemplate>
<asp:TextBox ....... />
</ItemTemplate>
</asp:TemplateColumn>
Please Help me...
Thanks in Advance.
|
|
|
|
|
Take it EditDatagrid
Best regard
Pathan
GOD HELP THOSE WHO HELP THEMSELVES
|
|
|
|
|
Hi, thanks for the reply...I have tried it using the <ItemTemplete>.
but now, the problem is whenever user enters something in textboxes, I want to update those values in database..
How could I do that? plz help me....
|
|
|
|
|
Give me ur HTML source code of gridView
Best Regard
Pathan
GOD HELP THOSE WHO HELP THEMSELVES
|
|
|
|