|
Hi All,
I have a tab control, within one tab of this tab control I want to have another tab control which contains 3 or 4 tabs in which I need to display some database bounded list boxes.
All the tabs in the two tab controls are static. They can be database bounded also.
Can anybody please help me in inserting a tab control in to another tab control. Any code snippet or any link will be very much helpfull.
Thanks in advance, I will be googling in this mean time. But pls. if possible pls. try to help me. I am using Telerik controls, any telerik and any Ajax controls are also Ok for me.
Thanks & Regards,
Md. Abdul Aleem
NIIT technologies
|
|
|
|
|
indian143 wrote: I have a tab control, within one tab of this tab control I want to have another tab control
Tab inside a tab sounds a bad UI. It won't look nice and user interactive. It might confuse.
If needed, you should try using a tab in accordian or vice-versa. It would be clean and user's won't get confused.
|
|
|
|
|
I have some code that works correctly until I utilize a dynamic UpdatePanel to reduce flicker. I am trying to get a value from the parent page via javascript. This code works correctly without the UpdatePanel to get the current value of the hidden field. Once I add the UpdatePanel dynamically, it only ever returns the initial value of 0 from the hidden field. Any ideas?
Javascript in popup page (returns only iniital value of zero if I use UpdatePanel):
var x = window.parent.document.getElementById('ctl00$contentBody$hdnApplicationIndex').value
Parent page (the one that uses ModalPopupExtender to display popup):
<asp:HiddenField ID="hdnApplicationIndex" Value="0" runat="server" />
<asp:Button ID="btnHidden" runat="server" style="display: none" />
<ajaxToolkit:ModalPopupExtender ID="mpeUser" runat="server"
CancelControlID="btnCancel"
OkControlID="btnOK"
TargetControlID="btnHidden"
PopupControlID="pnlUser"
PopupDragHandleControlID="pnlPopupHeader"
BackgroundCssClass="ModalPopup">
</ajaxToolkit:ModalPopupExtender>
<div id="pnlUser" style="display: none;height:600px;width:800px">
<asp:Panel runat="Server" ID="pnlPopupHeader" CssClass="PopupHeader">
User Search
</asp:Panel>
<iframe id="frmUserSearch" src="ModelUserSearch.aspx" scrolling="yes" style="height:100%;width:100%" frameborder="1">
</iframe>
<div style="display: none">
<input id="btnOK" onclick="ok();" type="button" value="OK" />
<input id="btnCancel" type="button" value="Cancel" />
</div>
</div>
Code-behind of parent page (happens during OnInit):
Button btnModelUser = new Button();
btnModelUser.ID = "btnModelUser_" + intAppIndex;
btnModelUser.Text = "Model User...";
btnModelUser.Click += new EventHandler(btnModelUser_Click);
UpdatePanel updModelUser = new UpdatePanel();
updModelUser.ID = "updModelUser_" + intAppIndex;
updModelUser.ContentTemplateContainer.Controls.Add(btnModelUser);
Table tblQuestions = new Table();
tblQuestions.ID = "tblQuestions_" + intAppIndex;
TableRow trModelUser = new TableRow();
trModelUser.ID = "trModelUser_" + intAppIndex;
TableCell tcModelUserButton = new TableCell();
tcModelUserButton.ID = "tcModelUserButton_" + intAppIndex;
tcModelUserButton.Controls.Add(updModelUser);
Here is where I change the value of the hidden field. Updated value is not retreived when I use the UpdatePanel:
protected void btnModelUser_Click(object sender, EventArgs e)
{
Button button = sender as Button;
int intIndexUnderscore = button.ID.IndexOf("_");
hdnApplicationIndex.Value = button.ID.Substring(intIndexUnderscore + 1);
mpeUser.Show();
}
|
|
|
|
|
You need to understand how UpdatePanel works. The hidden field, which is a poor design anyway, needs to be placed in the scope of the UpdatePanel for its value to available.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Thanks for your help. So what is a better way to get the ApplicationIndex value to be able to be accessed in the popup page? I will not know the value that needs to be set in ApplicationIndex until the user clicks one of the dynamically created buttons in the table on the page. The hidden field seemed like an easy solution, but I will have a problem if I have to set the ApplicationIndex value in a dynamically created control in the table. There would be one dynamic UpdatePanel per button and I would need to place the ApplicationIndex value in a control in the UpdatePanel. Therefore the popup panel code will not know which of the dynamically created controls to retrieve the value from.
Thanks.
Adam
|
|
|
|
|
Naptown Brown wrote: There would be one dynamic UpdatePanel per button
Why? Reuse the popup. Send the index to your page via a query string.
You should do some research on using JavaScript, JQuery has great support for modal dialogs. An UpdatePanel and button click postback aren't even necessary.
You should also learn to use the proper events. Button.Command allows you to set data such as the index number in the CommandEventArgs parameter rather than the cumbersome and slow string parsing you are trying to do.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
function PrintPage() {
printWindow = window.open("../xyz.pdf");
printWindow.print()
}
it's open the page but not print the page
|
|
|
|
|
jintalPatel wrote: printWindow.print()
Is not correct. Its an instance of open page.
window.print() is the command that works via JavaScript.
You are opening a PDF, so this might not work, had it been a webpage you could had done something like:
w=window.open('about:blank');
w.document.writeln("<script>");
w.document.writeln("window.print()");
w.document.writeln("</"+"script>");
|
|
|
|
|
Hi guys,
I am trying to load a text file into an iframe but I am keep getting an "Bad Request" error message. I couldn't figure it out where the problem is. Could anyone please help me up.
pathFile="https://www.mysupport.com/myhosted/Data/MainFolder/testFolders1&Folder/t.txt"
<iframe name="fraContent" id="fraContent" src="<%=pathFile%>" width=20% height=265 FRAMEBORDER="10">
</iframe>
Thanks in advance
|
|
|
|
|
function setframeOriginal(url)
{
var eyeframe;
eyeframe = document.getElementById('RSIFrame');
eyeframe.src='You Path';
}
;
|
|
|
|
|
Thanks for replying but are you saying that i should explicitly assign value through the javascript. Do you thin it will make a difference? While I was assigning to the "scr" value of iframe.
I have realized during a simple test that only those files get loaded where there is no & or ampersand sign in found in the file path. How should i deal with this issue.
Thanks again
modified on Tuesday, June 22, 2010 11:14 AM
|
|
|
|
|
Hi - Quick question
I want to have a page that when the user hits it for the first time they get asked what region they are from - eg, europe, usa or australia.
I am lookng to set a cookie based on what region the user has picked on my page - so that the next time they come to the site they dont have to choose and are redirected to the appropriate site. Does anyone know how this would be done?
Thanks for your help
|
|
|
|
|
Try this[^]
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Don't cross post - you've asked this in Quick Answers as well (where you have a response).
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair.
nils illegitimus carborundum
me, me, me
|
|
|
|
|
Hello everybody.
I was requested to make an existing asp.net solution run on a test environment.
All the solution stuff is available on a SourceSafe server, but there are no .sln or .vbproj file in the repository.
As far as I guess, the solution is made up of a web application (*.aspx, *.vb, *.js, *.css, web.config, global.asax) and a web service (.asmx, *.vb). There are also folders and files regarding AJAX Control Toolkit.
The idea is to rebuild a .sln and two .vbproj files (one for the app, one for the web service), starting from an empty solution, adding manually all the file and creating all the references. But I fear this may be a long and tricky way.
Is there another way to rebuild the .sln or the .vbproj file?
Thanks,
Alberto
|
|
|
|
|
My assumption is that for opening the aspx or asmx files in Visual Studio, you need to have either the .sln file or .csproj (or.vbproj) required. Since both of them are not available, you try to open from VSS and build it again which will create the solution and project files , I mean adding all the files manually and all the corresponding references.
Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.
|
|
|
|
|
Thank for the reply,
but this is exactly what I want to avoid, I mean manually defining the project, adding references, resolving dependences... It's a hell.
A.
|
|
|
|
|
Ok. just try as below:
Open a blank solution from the New Project Types from Visual Studio templates. If it creates a new project solution file, then you can copy all the relevant files required to this folder and open it again.
I am not sure whether this will work or not, but give a try.
Thanks
Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.
|
|
|
|
|
Can you open the folder as a website?
Open VS:
File -> Open -> Web Site
|
|
|
|
|
Hi all,
I have to import a xml file containing huge amount of data to be imported but before import I have to validate all data according to our system, if any tag has invalid value I have to show error message along with tag name and line number. for this I have used XmlDocument class of microsoft and validating each node through this class but I am unable to get line number of each node.
Can anybody suggest me how to get line number of node being processed using XmlDocument class ? or is there any other way to show line number ?
Thanks
Rohit
|
|
|
|
|
With XmlDocument you never get line number of file.
For that you need to use some different way, like StreamReader.
HTH
Jinal Desai - LIVE
Experience is mother of sage....
|
|
|
|
|
What is hook to ajax ?
Is it possible to call a client script after execution of a ajax function ? if yes, how to achieve it, guide me a bit ?
thanks
|
|
|
|
|
This website is not a school. If you're new to 'something' you google it and try to figure out how it works. Then if you still can't get it to work, you post a specific question about your problem. Posting 'Is this possible and please write some code for me' won't give a response.
|
|
|
|
|
I just want a guidance, not a lesson.....okkkkk.
|
|
|
|
|