|
Hello,
I have a question and I hope you can help me.
I'm working on MOSS (Office Sharepoint Server) 2007 portal and made it multi lingual using the Labels. I have two languages Arabic and English. To make the user able to switch between the two languages I used the control "Variation Label Menu".
Now my question is: How can I change or customize the look of this control? i.e: Change it from the drop down menu style to just one language selection.
Take a look at this portal and see what I mean about the language selection: http://jo.zain.com OR http://www.alphamosaik.com
Really looking forward for your reply to tell me how I can achieve this.
Thanks in advance.
|
|
|
|
|
I m creating a table with so many different controls in it but this table is to be created at run time it was been done by me but i was unable to maintain the value of the controls which one is to be inserted by the user and the page was post back. so pls give me the solution for that. I want the proper way to maintain the value of the controls like textbox and combo and checkbox because i also store it into the database and also retrive it to the form back. I m putting my code on the page load event but the page postback property is false because i need like this and pls keep in mind one thing that the table is created by the code only and i have to trace the control and while the page is postback at that time the table value lost so i required this from u.
Hiren Dave
|
|
|
|
|
If i am nor wrong you have created a custom control and you have rendered the whole html content.
Now you have question how to persist the values of those controls.
simple while rendering all controls give a unique name to them like
Even this control will work if don't pu runat server.
Now check the value in request object of Pageload
string TextBoxValue = Request["TextBoxName"];
Assumed you will check for null or empty first
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
thanks for ur reply but my dear friend i was not created any custom control but i was generating the report through the table and it has so many control in it and i want to store the value of that control while the page was post back. so please send me any suggestion for that if u know for that.
Hiren Dave
|
|
|
|
|
hiren dave wrote: but i was unable to maintain the value of the controls
This is the problem of viewstate. Dynamic controls created on page_load won't maintain any viewstate. So create your table and dynamic control on init event. This will keep the viewstate and you will get value on postback.
|
|
|
|
|
thanks for ur reply but when i was trying this at that time i found an error in the code that multiple controls found with the same id while i was never assigned any id to any control so pls give some solution for that
Hiren Dave
|
|
|
|
|
Each control need unique id. So check which one is getting duplicate id. If you are not assigning any id, do assign a unique id for the controls.
|
|
|
|
|
Hi all,
Can u give me one example (With code) which shows how to bind menu control from database(Dynamically).
Thanks in advance
Lijo
|
|
|
|
|
Can u be more specific?
Koushik
|
|
|
|
|
Hi,
Thanks for your response.I need to bind the Menu Control(in asp.net 2.0)
from database.(Dynamically).I request you to give me the sample code for that.Hope u understood my query.
Lijo
|
|
|
|
|
|
I have a table in MasterPage like this;
<table border="0" cellpadding="0" cellspacing="0" style="width: 800px; height: 100%">
<tr>
<td colspan="2" style="height: 126px; width: 800px;">
TITLE
</td>
</tr>
<tr>
<td style="width: 172px; height: 26px;">
ROW1
</td>
<td rowspan="3" style="height : 100%; width : 632px;">
<asp:contentplaceholder id="ContentPlaceHolder1" runat="server">
</asp:contentplaceholder>
</td>
</tr>
<tr>
<td style="width: 172px; height: 26px;">
ROW2
</td>
</tr>
<tr>
<td style="width: 172px; height: auto;">
ROW3
</td>
</tr>
</table>
Table Preview
TITLE
---------------------------
ROW1 | ContentPlaceHolder1
ROW2 |
ROW3 |
ROW1 and ROW2 height is 26px, and ROW3 height is auto. So I want; for example if ContentPlaceHolder1 heigh is 100px so ROW3 height automatically 48px. Another example if ContentPlaceHolder1 heigh is 200px so ROW3 height automatically 148px.
But this is not work, all row equally expand. I want to ROW1 and ROW2 must be 26px. How can I do?
Best Regards...
-- modified at 5:04 Tuesday 23rd October, 2007
|
|
|
|
|
height for table cells/rows can be achieved by placing a transparent gif image inside the td and set the height of the image instead of the td itself. So create a transparent gif of 1px height and 1px width and use that image in row2 and row3 and set their height as required.
-----
|
|
|
|
|
is it possible to set the position of an output
i want to display the output at a specific position in the page without using contols.ie,using response.write
I am fetching product name and the corresponding link from the database i want to display the product name and when click on it i have to go the corresponding page.search button ia also there.the products similar to that we typed will also have to display.that's why i am using response.write.But I don't want to display these at the beginning of the page.if anyone have a solution for this plse send.
if we use a div then the controls placed at the top of the page is moving down
|
|
|
|
|
You have asked this queston three times now. Are you hoping for the answers to change ?
Why don't you want to use controls ? There is NO way to control where response.write will output. As you've been told several times....
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
|
What's not working ? Using a literal or something to position the text ? What do you mean by 'not working' ? The right approach here is to say 'here's my code, here's what's going on, how do I make it do this ?'. The wrong approach is to assume because your first attempt to do something the right way didn't work, you need to post daily until someone invents a way to do something that the framework does not support.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
well said. I too was surprised to see such a question.
|
|
|
|
|
Response.write writes the text from top of the page...i think u can't set the position of the output using Response.write...Try setting the 'padding' style for and then place your text in the inside a table...
Koushik
|
|
|
|
|
hello friends,
I created one asp.net(with vb.net) project in Microsoft Visual Studio 2003 ,now i want to publish that project in website,i want details about how to deploy that asp.net project and how to upload that project in net.
Advance thanks.
srinivasan.s
-- modified at 5:17 Tuesday 23rd October, 2007
|
|
|
|
|
Get it Web Deployment Project
Install It.You will get option in solution explorer after that you can deploy your web project in the server
beSt regarD
patHan
|
|
|
|
|
hi frnd thnx for reply.
but that is support 2005 Standard Edition,i did project in 2003 plz give some other solution.
|
|
|
|
|
|
method 1 :
copy your folder and put into c:\inetpub\wwwroot\ this folder.and goto folder properties.There web sharing folder will be there. Give all permissions which are unchecked.this means that you are creating virtual server for that.
then it may work fine.
method 2 :
goto control panel ->adminstrative tools ->Internet Information services
here you can see you folder ... right click your folder and in that u create a virtual directory for your folder.then it will work.
known is a drop but unknown is an ocean.
|
|
|
|
|
Create a virtual Directory for your application in the web server and Copy all the relevant files that is needed to run the application to the virtual directory. it's done.
Regards - J O N -
|
|
|
|