|
Hi,
u can do this way
Bind the child DropDown list in the Selectedindex changing event of
the parent DropDown list
Try and let me know the result
happy coding
|
|
|
|
|
The reply given by Sunitha is right.
But with this do take care that you write your code in If(!Page.IsPostBack) while filling the first dropdown on page load.
|
|
|
|
|
|
Hello
i want to cache aspx page per user.
how could be done??
thanx in advance.
Sujit
|
|
|
|
|
One way is to pass sessionid in query stirng and put varybyparam with sessionid as key.
But as we all know passing sessionid in query string is a security threat.
|
|
|
|
|
any other technique.
Sujit
|
|
|
|
|
Simple way is to use ASP.NET_SessionId cookie.
Try using VaryByHeader="ASP.NET_SessionId".
|
|
|
|
|
You may save the output of the page in the session object then get it from the session object when the user requests the page
|
|
|
|
|
Hi,
Can any one know the take printout the treeview controls data in asp.net. Is there any print option for treeview control. I want to print the following sample tree format,
+sample1
-sample2
+sample2
-sample2.1
-sample2.2
-sample2
+sample3
+sample4
-sample4.1
-sample4.2
-sample4
Thanks in advanced,
|
|
|
|
|
Can u not simply loop through the nodes and print the data out?
Bhaskara
|
|
|
|
|
Plz help out 'coz i am familiar with data reports in vb6.0 but not with Crystal Reports in asp.net and it is urgent 4 me .
Thanx in advance...............
|
|
|
|
|
Visual Studio has a control called CrystalReportViewer that you can put on the page.In the properties for that control you will be able to browse to the location where you have .rpt files.
Bhaskara
|
|
|
|
|
I have an option for export to excel in my webpage.When i click on that button, the save dialogbox appears but it remains hidden behind the webpage. So one have to minimize in order to enter filename and path.How can i put the dialogbox on top.
Thanks in advance
regards
Bibhu
|
|
|
|
|
i have a xml file called combo.xml and a combo box cmb,when i click on the combo box i want to load the xml file to it,code is like some what
function abc()
{
(i want the code here to load the combo.xml file to the combo box cmb)
}
--Select Category--
modified on Friday, January 23, 2009 12:36 AM
|
|
|
|
|
Hope this helps
var xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
xmlDoc.async="false";
xmlDoc.loadXML("<root><value>a</value><value>b</value><value>c</value><value>d</value></root>");
for(var i=0;i<xmlDoc.selectNodes("root/value").length;i++)
{
document.getElementById("Select1").options[document.getElementById("Select1").options.length] = new Option(xmlDoc.selectNodes("root/value")[i].text,xmlDoc.selectNodes("root/value")[i].text,false,false);
}
Take care to load it on the first click alone
|
|
|
|
|
Thanks for the reply,but the actual problem is i have the xml file in the same folder and that will be expanded sometimes.If that is the condition i have to change the code every time.To avoid that what i can do?.And in this solution when i am clicking the combobox in the second time it is getting duplicated.I can add the values in another way without duplicating like this
var y=document.createElement('option');
y.text='itemdisplayed in comboBox';
var x=document.form1.cmbBoxname;
x.add(y);
x.add(y,null);
one condition is there, suppose
if(condition)
{
load the combobox with a xml file;
}
else
{ load with another xml}
that i want .
modified on Friday, January 23, 2009 3:23 AM
|
|
|
|
|
Hi all,
i have multiple update panels with buttons .i open a popup which is a new page when i click on the button using javascript code.All update panels open the same popup.I need to update the parent which opened this popup once i close the popup.I also know how to refresh the update panel when i close the popup
What i was unable to find out is how to find out which button(which ) has opened this popup.so that i can update that specific update panel
The sample code is shown below
<div id="parentContainer" onclick="__doPostBack('ParentUpdatePanel', '');" />
<asp:updatepanel id="ParentUpdatePanel" runat="server" updatemode="Conditional" xmlns:asp="#unknown">
<contenttemplate>
<asp:label id="lblparenttime" runat="server"></asp:label>
<asp:linkbutton id="lnkbutn" runat="server" text=" lcick me to open popup" onclientclick="return showpopup();" />
</contenttemplate>
</asp:updatepanel>
<div id="Div1" onclick="__doPostBack('ParentUpdatePanel', '');" />
<asp:updatepanel id="UpdatePanel1" runat="server" updatemode="Conditional" xmlns:asp="#unknown">
<contenttemplate>
<asp:label id="Label2" runat="server"></asp:label>
<asp:linkbutton id="LinkButton1" runat="server" text=" lcick me to open popup" onclientclick="return showpopup();" />
</contenttemplate>
</asp:updatepanel>
Any help or suggestions are appreciated
Thanks in advance,
Rama Charan Prasad
"Be happy and Keep smiling.Thats what u want be always.. "
|
|
|
|
|
Did you try passing the div id in the method showpopup
<asp:linkbutton id="lnkbutn" runat="server" text=" lcick me to open popup" onclientclick="return showpopup('div1');" />
|
|
|
|
|
able to fix the same thanks a lot sundar.
my approach was
1)i pass the div id which opens the page using querystring url
2)raise a method in parent from popup to execute and pass this divid (which i read from querystring using javascript code) and use it to refresh the parent update panel
3)the method in parent has code to refresh the respective update panel passed as parameter to it.
Thanks a lot once again sundar
Rama Charan Prasad
"Be happy and Keep smiling.Thats what u want be always.. "
|
|
|
|
|
Sometimes we get problems like "Invalid postback or callback argument"
For this we set enableeventvalidation to false in page directive and problem get solved.
Here I want to know what are the drawbacks of setting enableeventvalidation to false in page directive???
|
|
|
|
|
actually i have a database table have four fields rnkid, rnkartid,rnkuserid and rnk marks i want sum all the marks which have same rnk art id . pls hel tell how
|
|
|
|
|
Please Don't Cross post !
|
|
|
|
|
actually i have a database table have four fields rnkid, rnkartid,rnkuserid and rnk marks i want sum all the marks which have same rnk art id . pls hel tell how
|
|
|
|
|
You are in wrong forum. This is a simple SQL Query
|
|
|
|
|
Hi,
I am using a regular expression validator to validate my email textbox but I was wondering if there is an expression that allows only a certain domain. This is what I'm using so far:
<asp:regularexpressionvalidator id="RegularExpressionValidator1" runat="server" controltovalidate="txtEmail" validationexpression="^\w+[\w-\.]*\@\w+((-\w+)|(\w*))\.[a-z]{2,3}$" errormessage="Please enter an email address in the form xyz@abc.com" xmlns:asp="#unknown"></asp:regularexpressionvalidator>
This works, but it allows any @abc.com and I only want to allow a specific address (i.e. only allow @yahoo.com).I'm using asp.net and c#.
Thanks!
|
|
|
|