|
Well, this is a very nice issue. I'm trying to figure out how in earth's name I can create the following application, and of course my bosses and co-workers aren't providing any help.
The application should do the following:
- Allow users to create/edit/delete (e-mail)accounts in Paralells Plesk Panel (for Windows).
- Allow users to create/edit/delete subdomains
It should be an ASP.Net application, but I have no idea where to start. I've looked into the API RPC Protocol, however, I do not understand like 99% of the protocol.
Can anyone please tell me how to work with the API (if someone has ever worked with it) to create the above situation? Any help would be much appreciated!
|
|
|
|
|
Hi To All,
I have a Ajax tab container A. The tab container A has one tab panel A1.
In tab panel A1, first I have placed web user control(.ascx) and then added one tab container B. B tab container has three sub tab panels B1, B2, B3.
I want to hide the user control only when tab panel B2 is selected.
So, How can I hide the ASP.Net Web User Control using JavaScript or code behind?
Any Help regarding this will be greatly appreciated..
Thanks in Advance...!!!!
|
|
|
|
|
If u have registered the user control on the page, then
try this code on Tab index change event of Tab container B
UserControlID.Visible = true;
Let me know if it works.
Tej Aj,
http://opexsolution.com/forum/[^]
Fan of:
http://www.abtstudioz.com/[^]
modified on Tuesday, July 20, 2010 2:39 AM
|
|
|
|
|
Thanks for the reply Tej..
Yeah, I have already registered the User Control on the Page.
I have earlier tried with the OnActiveTabChanged event of the tab container and set the AutoPostBack property to True.
But, I have the older version of Ajax Control toolkit, which not supported the AutoPosBack event for tab container. So the tab index changed event not fired when I changed the tabs.
Now, I update the reference to newer version 3.0. Earlier it was 1.0
That's resolved my problem..
Thanks a lot once again for ur reply..
Have a gr8 day.....
|
|
|
|
|
Hi
I have minor problem which I need help with.
I need to write a method that takes my xsd and my xml file, when I compare my xsd with my xml, if there are any elements in the xml data missing to add them into the xml file as empty. Firstly, let me say, I am not validating the xml file, this is not the purpose. All I am doing is comparing the two files, and adding back in any elements that are missing. The result of the new xml file is then displayed to the user.
Can anyone give me some pointers on how to do this, please?
|
|
|
|
|
I don't have sure, but if you wanna search something about "ReadXmlSchema" method.. maybe this can help you
|
|
|
|
|
Sure, use the xsd.exe tool to create a .net class file from your xml schema file. Serialize your xml file to your .NET object. Reflect over the object changing all of the fields that are in the default or null value to a non-default value. Serialize to the file system. The other option is to change your xsd file to require given elements using the minimumOccurs="1" thus a valid xml will always have a "default" value. With this method you will not have to reflect after serialization to the object.
|
|
|
|
|
Hi
I don't want to give the xsd a min occurance of 1 because this would defeat the business rules from where the data is actually coming from. So, I need to compare.
|
|
|
|
|
|
I have a databound GridView that I populate from the codebehind and the data appears correctly on the form. The user has the option to add another row to the GridView from data selected on a popup window. I successfully added this new row to the GridView using jQuery. Here is the code I used to copy the last row in the GridView, and then I updated the last row cell by cell after that.
$('#<%=grdUsers.ClientID%> tbody>tr:last').clone(true).insertAfter('#<%=grdUsers.ClientID%> tbody>tr:last');
$('#<%=grdUsers.ClientID%> tbody>tr:last').find("td:nth-child(1)").text(strFirstName);
$('#<%=grdUsers.ClientID%> tbody>tr:last').find("td:nth-child(2)").text(strLastName);
Here is how I am trying to loop through rows in codebehind:
foreach (GridViewRow row in grdUsers.Rows)
{
}
The problem is that when I try to access the contents of the GridView from the codebehind after postback, I do not have access to the row I added via jQuery on the client side. The row does not appear in the grdUsers.Rows collection.
What is the best way to get this data over to the server side so I can access it and save the data in session using my standard save routines?
|
|
|
|
|
You don't seem to understand how a ASP.NET control functions. During a postback the controls are recreated and populated from viewstate, if used, to retrieve any updates that have been made. When a row is added to dynamically to a GridView the server-side processes know nothing about it, it isn't in the viewstate. That is why it is not available to you. GridView does a feature to allow new rows to be added without needing javaScript to do so.
I know the language. I've read a book. - _Madmatt
modified on Monday, July 19, 2010 4:20 PM
|
|
|
|
|
hi all,
I am using document.getElementById("controlname").click() in javascript.It is working fine in IE but not working in firefox.Please tell how it can be corrected.
|
|
|
|
|
What kind of control is it? Are you sure that the getElementById call is returning an object?
|
|
|
|
|
hi,
yes document.getElementById("buttonid") is returning an object in both IE and Firefox.The problem only is that i had to fire the click event of the button using the click event in the javascript which is i think is not supported by FF.
|
|
|
|
|
document.getElementById("<%=ContolName.ClientID%>");
|
|
|
|
|
Use a library, like JQuery, that has cross browser support rather than trying to deal with multiple browser issues.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Hi All,
I want to update the table using select statement .
suppose i have table A which contains one column id and salary
Update A SET salary = (SELECT id FROM A);
when i am doing using above method i am getting following error
you can not specify target table A for update in from clause
is it possible to do using above way or else can u guys suggest other way.
Thanks,
amit
|
|
|
|
|
|
hi Amit Patel1985,
Please from next time post general database related queries in General Database[^] section.
So that interested users will give you quick and
better answer.
HTH
Jinal Desai - LIVE
Experience is mother of sage....
|
|
|
|
|
Hi All,
I am getting this error above error when i am using my sql server 4.1 with 6.1.3 connector. it run for some time after that it gives above error
thanks ,
amit
|
|
|
|
|
So, did you try this[^] ?
..Go Green..
|
|
|
|
|
I want to show a tree view which will show 3 categories. For example product categories. There will be a main category than a child/sub categories than another child of child or sub sub categories. But i dont know how to do that.What will be the database structure? I'm using mysql and language C#.
|
|
|
|
|
Try thins one[^].
HTH
Jinal Desai - LIVE
Experience is mother of sage....
|
|
|
|
|
|
hi,
we developed two forms.asp x with Dynamic Controls,First form has one Dynamic button_Open ,this button has Click event ,through button_Open_Click event we need to open second form with dynamic controls through
(window.open()),window opening but forms.asp x not displaying controls and Second form overwriting on first form ,we added code for Dynamic Controls in both pages Page_PreInit event.Please suggest me to do the better way to maintain state of control both pages.
|
|
|
|