|
Asking the same question again wont help..
Cheers!!
Brij
|
|
|
|
|
This is not the same question previously i asked webpart title and
now iam asking webpart zone title which is actually the ID for
webpart zone
Thanks
|
|
|
|
|
Some times it makes confused with the question title. So when you asking some questions please put proper subject
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
Iam new to webparts. I have a list control in a webzone as my webpart.
Now the web part title comes as untitled.
I can set the webpart title using
WebPartZone1.WebParts(0).Title = "MAIN MENU".
But this will fail if i move my webpart to other webpartzone. How can is set the
title even if i move to other webpart zone
|
|
|
|
|
in the .aspx file:
(example)
<wp2:WebPartExcursieContentForm_0_0_1 id="ExcursieContentForm_2" runat="server"
Title="ExcursieContentForm"
ChromeType="None"/>
You could also search in your codebehind for the webpart by name instead of position.
|
|
|
|
|
<asp:WebPartZone ID="AlertZone" runat="server" PartChromeType="None" >
<ZoneTemplate>
<asp:ListView runat="server" ID="abnormalListView"
OnItemDataBound="Operator_ItemDataBound"
onselectedindexchanged="abnormalListView_SelectedIndexChanged" >
<LayoutTemplate>
<table width="100%">
<tr runat="server" ID="itemPlaceholder">
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</table>
</LayoutTemplate>
<ItemTemplate>
<tr runat="server" id="OperatorRow">
<td><asp:Label ID="FirstNameLabel" runat="server" Text='<%#Eval("First") %>' /></td>
<td><asp:Label ID="LastNameLabel" runat="server" Text='<%#Eval("Last") %>' /></td>
<td><asp:Label ID="ActionLabel" runat="server" Text='<%#Eval("Action") %>' /></td>
<td><asp:Label ID="ResultLabel" runat="server" Text='<%#Eval("Result") %>' /></td>
<td><asp:Label ID="AlertLabel" runat="server" Text='<%#Eval("Alert") %>' Visible="false" /></td>
</tr>
</ItemTemplate>
</asp:ListView>
</ZoneTemplate>
<HeaderStyle BackColor="#FAF1C3" />
</asp:WebPartZone>
I just have list control inside it. How do i get the title from it
|
|
|
|
|
Ooh, trickery
Unless you are witholding something, you actually don't have a webpart
Controls placed in a WebPartZone that are not a System.Web.UI.WebControls.WebParts.WebPart are wrapped (runtime) in a Webpart as if they were WebParts.
I never experimented with this situation, always used a 'real' webpart (no visual design mode, that's the downside).
You could still find the webpart by first finding the listview and then determining its parent.
|
|
|
|
|
Iam learning here. So my question might be basic
What do you mean by a real web part. Iam new to this
and so trying to learn.
Do you mean i should wrap my list control to a user control and
do this or do i need to write a custom web part.
I thought if you keep any server control inside the zone it becomes
a webpart. Iam just reading a book and implementing this
Thanks
|
|
|
|
|
You should indeed read up on the webpart subject.
NETLearning wrote: I thought if you keep any server control inside the zone it becomes a webpart.
It only looks that way. Your control gets wrapped in a WebPart, it does not 'become' a WebPart.
As I said before, to find your ListView loop through your Controls collection to find it and then locate its parent(the webpart).
|
|
|
|
|
hi all dev's
i have a problem and want some help, i have a showmodaldialog and its working fine but when i finish from it and click on button (ReName) the showmodaldialog take fulll size page and stops in it, now am providing the code to be more clear for u:-
(child page)
function ReturnParam()
{
var password= window.dialogArguments;
var old = document.getElementById("tbPasswordConfirm").value;
if(password!=old)
{
alert('Password does not match....');
}
else
{
var param = document.getElementById("tbNewPassword").value;
alert('New Password have changet to ' + param);
window.returnValue = param;
window.close();
}
}
what seems to be the problem.....!!!!???
|
|
|
|
|
use
window.opener='self';
window.close();
Setting window.opener will ensure that the window will be closed on next window.close call.
|
|
|
|
|
thx, that did work
|
|
|
|
|
Hi frds...
I am working with admin part of web application, and I want to give a facility to administrator to publish a release note first on testing server for a particular time period (administrator will give a date for publish it to live) and later when time will pass it will automatically publish on live server.
So my question is that how I will update live database with a given time ...
thanks
|
|
|
|
|
Does this things need to be done using ASP.NET ?
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
m(_ _)m Abhi for not writng details ..Yes it's in Asp.net and c#, Ms Sql server.
|
|
|
|
|
Hi all,
I am writing an ASP.net application. I have the Microsoft Visual studio 2008 sp1 installed.
I am using AJAX modal popup to get a postback control.
But, it doesn't seems to be working somehow,...
I am not able to solve the mistry of calling the function written in the .cs page from the .aspx page using a modalpopup extender.
Can i get some help on it...?
|
|
|
|
|
Using Google is easy.
http://www.asp.net/AJAX/AjaxControlToolkit/Samples/ModalPopup/ModalPopup.aspx[^]
.45 ACP - because shooting twice is just silly ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001
|
|
|
|
|
Hi,
I am using a webservice on my main website I want to debug the given webservice with particular input parameters.
Is it possible to debug a webservice by placing breakpoints so that the user can directly jump to the webservice when it is called?
I hope You are getting my point.
Thanks
Shankbond
|
|
|
|
|
|
Hi Abhijit,
The first article describes about the IIS beautifully but I have a problem here, You said that I can see the w3wp.exe running on my task manager but I cannot see this what does this mean?; On the other hand I have hosted my webservice on the IIS which is running beautifully?
Please explain
Thanks
Shankbond
|
|
|
|
|
shankbond wrote: You said that I can see the w3wp.exe running on my task manager but I cannot see this what does this mean?;
What is the version of your IIS ?
if it is IIS 6.0 or more, you will get "w3wp.exe"
if you are having IIS 5.1 then you will have aspnet_wp.exe
My Article was all about IIS 6.0
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
OH! thanks,
One more thing: I have a website running on production server when I connect through my LAN to that server do I need to have User Id and Password for that system to connect to it, and through which port I will be connecting to it so that I can create an exception on firewall.
Please reply
Thanks
Shankbond
|
|
|
|
|
Useful??
Related link if you have problems finding the right .pdb files
|
|
|
|
|
Remember a Web service is like a Method in another Class , but lets say you only have a DLL and you add a Reference to that DLL. You will can add a breakpoints where you create an object of the Class fill the Time you call the functions of that class , but you can walk through the DLL. you need a Source code for that. Same Applies to the web service, you can walk through it.
Vuyiswa Maseko,
Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
Hi,
I created one Java script function, its validating between two cells from gridview , like if(cell[1] < cell[2]) if it so i am populating alert("wrong input"); return false;
if its false then the Text Change event should not fire from Code behind..but This event is fired even function return True/false.. That to i was called the Javascript function in Onblur event ...can u give me the Solution for this issue???
regards,
kannak.....
kannak
|
|
|
|