|
Hi I am new to web development.
On a button click event, I will be firing a web request.
I would like see the resulting page in a fram of current page.
as of now I was able to ge the result page in a new page
Pls advice Many Thanks
|
|
|
|
|
ptr_Electron wrote: I would like see the resulting page in a fram of current page.
You mean you want to show it on IFrame ? Then why are your making WebRequest of the page ?
|
|
|
|
|
I need help developing MLM in asp.net
how to show Binary tree & save data in database
modified on Wednesday, October 14, 2009 1:37 AM
|
|
|
|
|
There is a wizard control in my form. In one of the step, I put a treeview inside an update panel.
Issue is, I disabled the next button while loading the treeview because for selection atleast one node in treeview. Upon selecting any node, the next button of Wizard control should be enabled. Since the wizard button may likely of outside the update panel, I am not able to enable the next button again. Any idea how to enable it again once any treenode is checked?
Following is my code:
<asp:WizardStep ID="BusinessUnitWizardsStep" runat="server" StepType="Step" Title="BusinessUnits">
<br />
<table class="FormTable">
<tr>
<div id ="BusinessUnitsPanel1" runat="server" style="width:100%;height:330px;overflow:auto;">
<asp:Label ID="emptyTextLabel" runat="server" CssClass="ErrorMessagesLabel" Text="No Records found" />
<asp:UpdatePanel ID="TreeViewUpdate" runat="server" ChildrenAsTriggers="true">
<ContentTemplate>
<asp:TreeView onclick="postbackOnCheck(event,'ctl00_PCMSMainContent_CreateDocumentWizard_TreeViewUpdate')" ID="AvailableBusinessUnitsTreeView"
runat="server" Height="100%" Width="50%" ShowLines="true" ShowCheckBoxes="All" ExpandDepth="1"
OnTreeNodePopulate="AvailableBusinessUnitsTreeView_TreeNodePopulate"
OnTreeNodeCheckChanged="AvailableBusinessUnitsTreeView_TreeNodeCheckChanged" EnableClientScript="false">
<ParentNodeStyle Font-Bold="False" />
<HoverNodeStyle Font-Underline="True" ForeColor="#6666AA" />
<SelectedNodeStyle BackColor="#B5B5B5" Font-Underline="False" HorizontalPadding="0px"
VerticalPadding="0px" />
<NodeStyle Font-Names="Tahoma" Font-Size="10pt" ForeColor="Black" HorizontalPadding="2px"
NodeSpacing="0px" VerticalPadding="2px" />
</asp:TreeView>
</ContentTemplate>
</asp:UpdatePanel>
</div>
cs file:
protected void CreateDocumentWizard_ActiveStepChanged(object sender, EventArgs e)
{
if (CreateDocumentWizard.ActiveStep == BusinessUnitWizardsStep)
{
EnableDisableNextButton(false);
}
}
private void EnableDisableNextButton(bool isEnable)
{
Button btnnext = (Button)CreateDocumentWizard.FindControl("StepNavigationTemplateContainerID").FindControl("StepNextButton");
if (btnnext != null)
{
btnnext.Enabled = isEnable ? true : false;
}
}
protected void AvailableBusinessUnitsTreeView_TreeNodeCheckChanged(object sender, TreeNodeEventArgs e)
{
if (e.node.Checked)
{
}
EnableDisableNextButton(true);
Can anybody please help me on this?
Thanks,
Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.
|
|
|
|
|
I have 200 records in a table. I want show the names in the table to dropdownlist but i don't want scroll for user. for this solution is any control have asp.net tell me and how will we do it?
|
|
|
|
|
I didn't understand you question, please clarify.
harshitha2006 wrote: I want show the names in the table to dropdownlist but i don't want scroll for user
So, you want to show all 200 names at once on webpage to user
|
|
|
|
|
|
How much money can you spend? Telerik has an awesome combobox control.
I didn't get any requirements for the signature
|
|
|
|
|
Hi,
I'd like to create an asp.net website where the user would be able to see dropdown lists and a few textboxes that represent each column of a sql table. They would have a list of choices from the dropdown lists to make for the respective columns, and then they'd be able to update the table possibly through a button click event. Does anyone know where I can find code that does something similar to this to give me an idea of what I need to do? Thanks in advance.
If it matters I'd probably be using visual web developer to create the site.
|
|
|
|
|
If you are asking this question then it shows that you are very new to asp.net cause this is one of the simplest tasks in asp.net.
You must search on google, you'll find many links which can teach you how to do this job.
|
|
|
|
|
In my application I want to set the session timeout infinite.How can it be possible?
|
|
|
|
|
|
Hi,
Can somebody please help on this. Thanks.
First bug:
I am finding any data with special characters such as the long dash or the left and right quote marks gets exported to Excel incorrectly - they come out looking like this: …
Second bug:
Sometimes a column containing a long piece of text will be cut off when it comes out in the Excel column... I can't find any pattern to this but it is sometimes getting chopped off quite near the start... so my question is this: is there a limit per column?
|
|
|
|
|
Member 2707890 wrote: I am finding any data with special characters such as the long dash
You need to read the column and replace the special character..!
They are some special characters to be replaced before exporting from data to excel.
BTW which language you are using to convert the data .
Member 2707890 wrote: Sometimes a column containing a long piece of text
I Think You need to expand the width and height of the column..!Then It Will Come Correct.
|
|
|
|
|
|
Hi All
There is a strange behavior that appears in my web site. I developed a web site using asp.net 1.1, I used the validators controls for the requirement fields.
first, the web site was working successfuly and the error message of the validators was appear when the field does not have any data without post back.
After that the strange behavior has been appearing, the validators have not worked and the event of the submit button is fired.
This behavior is appeared in some ie7 and not in all ie7 browsers.
Notes: the java script is enabled in the ie7 browsers that have the strange behavior.
|
|
|
|
|
Maher Elsayed wrote: I developed a web site using asp.net 1.1,
IF You have javascript on the submit button ?.It may be the problem.Check the java script on submit button
|
|
|
|
|
Hai,
I am a beginner in DotNetNuke... I can add .ascx file one by one... but
i want to add module of .ascx file in DotNetNuke... For Example if I add Registration module then automatically inherit related file also...
Please help me How its Possible
Thanks in advance
D.Nithya
|
|
|
|
|
Since this has nothing to do with ASP.NET, it'd be better to try dotnetnuke forums.
|
|
|
|
|
|
|
Hi, just a little clarrification required please!
I am in the process of developing several ASP.NET User Controls and a class library to plug into a third party CMS. What I have done with regards to the connection string and the fact that my class library cannot see the web.config file (and this may not be the best approach in which case I'm all ears!) is to have a shared class variable, called ConnectionString, which has a value assigned to it by my User Controls on each load of the User Control.
But what I have found is that if I set the ConnectionString variable once, it seems to be available even after post back without having to set it again. What's more, even if I close the browser and load the page again, the shared connection string variable still seems to be there.
Could someone please shed a little light on the scope of shared variables in this context and whether it's a good or bad idea to use them.
Thanks
|
|
|
|
|
shared (static in C#) has got a lifetime until the application domain unloads. Every .NET process will have an application domain associated with it and ASP.NET process will also have one. So your shared variables will end when ASP.NET service ends.
shared variables are OK in your case (just for keeping the connection string).
|
|
|
|
|
OK great, thanks for the clarification
|
|
|
|
|
Liqz wrote: Could someone please shed a little light on the scope of shared variables in this context and whether it's a good or bad idea to use them.
This seems to be asked often lately. The scope of a static/shared variable in ASP.NET is the same as in their languages in general.
I would not use them for anything.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|