|
Hi,
Border is not displaying properly in grid view.
|
|
|
|
|
See below.
Unrequited desire is character building. OriginalGriff
I'm sitting here giving you a standing ovation - Len Goodman
|
|
|
|
|
You have to understand how a gridview gets rendered for display on the clients browser.
without seeing the code for the page and whatever supporting code is going along with it we can't help. if the borders aren't showing it is definitely going to be a styling issue but where or when that is happening all depends on the styling of your page.
as if the facebook, twitter and message boards weren't enough - blogged
|
|
|
|
|
DhivyaThangavel wrote: Border is not displaying properly in grid view. Did you set Borderstyle for the Gridview? Like below
<asp:GridView ID="GridView1" Runat="server" BorderWidth="1px" BorderStyle="Solid" BorderColor="#000000">
or
.GridStyle
{
border:1px solid #000000;
}
<asp:GridView ID="GridView1" Runat="server" CssClass="GridStyle">
or
<asp:GridView ID="GridView1" Runat="server" style="border:1px solid #000000;">
|
|
|
|
|
Hi,
Tab control is not showing while post back is occurred within update panel.
|
|
|
|
|
Do you have a question, and if so please provide some useful information about your code and what it is trying to do.
Unrequited desire is character building. OriginalGriff
I'm sitting here giving you a standing ovation - Len Goodman
|
|
|
|
|
I placed a tab within update panel, when post back is occurred css is not applying. So tab is not showing properly.
|
|
|
|
|
Without seeing some code nobody can guess what is happening.
Unrequited desire is character building. OriginalGriff
I'm sitting here giving you a standing ovation - Len Goodman
|
|
|
|
|
<asp:panel id="pnlUserInputData" visible="true" runat="server">
<ajaxtoolkit:tabcontainer id="tbsUser" runat="server" activetabindex="0" width="850px"
="" cssclass="ajax__tab_xp" height="350px">
css file:
.ajax__tab_xp .ajax__tab_tab
{
height: 21px;
}
Aspx page is within masterpage in update panel.
|
|
|
|
|
DhivyaThangavel wrote: Tab control is not showing while post back is occurred
again really a factor of your CSS/styling and without all that information no one can help. however, if the problem is only occurring during a postback then my guess is your also have some javascript issues as well.
as mentioned by others though we really need to see a lot more than what you have offered.
as if the facebook, twitter and message boards weren't enough - blogged
|
|
|
|
|
Ajax Tab control header is not showing properly while post back is occurred within master page.
CSS:
.ajax__tab_xp .ajax__tab_tab
{
height: 21px;
}
|
|
|
|
|
again really a factor of your CSS/styling and without all that information no one can help.
as I said earlier though, if the problem is only occurring during a postback then the problem is most likely going to be in some javascript being executed in conjunction with your CSS. At this point the only thing that I can offer is a direction as to where you can go look for where the problem is happening. the rest unfortunately is going to have to be up to you and how you debug this problem.
understand it can be frustrating but this is the part where being a developer is fun.
as if the facebook, twitter and message boards weren't enough - blogged
|
|
|
|
|
Exact problem is Ajax tab control header in my code is not displaying properly,which is placed in aspx page. It is placed inside a update panel which is in master page.
When page loads it is normal but when a post back occurred it is not.
my code for ajax tool is
<ajaxtoolkit:tabcontainer id="tbsUser" runat="server" activetabindex="0" width="850px" <b="">CssClass="ajax__tab_xp" Height="350px">
<ajaxtoolkit:tabpanel id="GenInfo" runat="server" tabindex="0" headertext="USER ROLE INFO.">
Css applied is
.ajax__tab_xp .ajax__tab_tab
{
height: 21px;
}
What else information you are expecting.
|
|
|
|
|
Hi,
I get the following error when cliking on a button:
System.Net.WebException: The remote server returned an error: (500) Internal Server Error.
stack trace:
[WebException: The remote server returned an error: (500) Internal Server Error.] System.Net.HttpWebRequest.CheckFinalStatus() +677 System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult) +139 System.Net.HttpWebRequest.GetResponse() +248 Mediachase.Store.Business.UrlReader.GetHtmlFromUrl(String theurl, String authorizeUserName, String authorizePassword) Mediachase.Store.Business.UrlReader.GetHtmlFromUrl(String theurl) Mediachase.Store.Web.Admin.Module.AdminCampaign.GetHtmlFromUrl(String theurl) Mediachase.Store.Web.Admin.Module.AdminCampaign.get_CampeignBody() Mediachase.Store.Web.Admin.Module.AdminCampaign.SaveChanges() Mediachase.Store.Web.Admin.Module.AdminCampaign.SaveButton_Click(Object sender, EventArgs e) System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108 System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +57 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +18 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33 System.Web.UI.Page.ProcessRequestMain() +1292
I can't understand why it happens, as I really did nothing special (it was OK yesterday, but today it's not). I have tryed recycling pool (in IIS manager) and it didn't help.
I have to mention that i use asp.net 1.1
|
|
|
|
|
HTTP 500 is an internal server error and what you are seeing is the stack trace for the exception that was thrown back when one of your methods was called. without seeing your server side code it is really hard to make a diagnose as to why the exception is occurring.
just because the code worked once doesn't really mean much.
as if the facebook, twitter and message boards weren't enough - blogged
|
|
|
|
|
Set a break point in the code and step through to see where this exception is being thrown.
"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
|
|
|
|
|
Thank you both for your answers.
Actually, break points couldn't help me because the application did well on my computer(localhost), the error occurred only when I tried to run it on the server, so I used a try-catch block, captured the exception and inserted it to my database. btw, the error was about file permissions (I had to give the aspnet and network-services accounts read,write & execute permissions)
|
|
|
|
|
hi friends
i am using visual studio 2008.
i have added a master page and some content pages i need to know how to add Jscript file in content pages and how to invoke the functions of the Jscript on the click of a button...
in these content pages there is not html tags at all so how to do it
can anyone plz help me in this issue
K.Gayathri
|
|
|
|
|
This may help[^]
------------------------------------
I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave
CCC Link[ ^]
Trolls[ ^]
|
|
|
|
|
MalarGayu wrote: in these content pages there is not html tags at all
Impossible. If you had no controls at all then the page would be blank, empty. Is it?
Without seeing the Content placeholders you have it would be difficult to answer accurately for your situation. However, typically there is a content placeholder for additional header information where you place link or script elements that should be including in the head for that page. Otherwise you would need to add them to your masterpage.
No comment
|
|
|
|
|
hi friends
this is my content page*********************
<%@ Page Title="" Language="C#" MasterPageFile="~/CampaignLayout.Master" AutoEventWireup="true" CodeBehind="Campaign.aspx.cs" Inherits="MailingCampaign.Campaign" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphHead" runat="server"></asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphMain" runat="server">
<asp:Button ID="Button1" runat="server" Text="Button" />
put contents for campaign</asp:Content>
i need to adda JScript file seperately and write a function in it and call it in this content page
button click even so how to do it
K.Gayathri
|
|
|
|
|
As I said, you would add the script element pointing your JavaScript file in the header content placeholder, cphHead in this case. Then you can make whatever JavaScript calls necessary since the script will be available on the page when it is rendered on the client.
Always make sure to format any code snippets properly when submitting. Edit you post to correct this.
No comment
|
|
|
|
|
hi friend
i wrote the javascript and called it but actually my textbox name which i am passing as parrameteris <b>txtListname </b>but when i give like this only it is working so how to solve this problem
content page***************
<asp:Button ID="btnSubmit" runat="server" onclick="btnSubmit_Click" OnClientClick="return Validate(ctl00$cphMain$txtListname)"
Text="Submit" TabIndex="15" />
javascript*******************
<script type="text/javascript">
function Validate(ctl00$cphMain$txtListname)
{
if (ctl00$cphMain$txtListname.value == "") {
alert("you must enter the List name");
return false;
}
}
-- modified 8-Nov-11 19:05pm.
|
|
|
|
|
I dont understand exactly what you are asking but I am going to assume your bit of code is not working. I am not sure what you think ctl00$cphMain$txtListname is but it's not a control that you can treat like you are trying to do.
if you step through your javascript you will most likely find that ctl00$cphMain$txtListname is marked as undefined. that is because it is the id of the element and nothing more.
maybe this little snippet will give you a small bit of insight though:
snippet[^]
hope it helps explain things a bit.
as if the facebook, twitter and message boards weren't enough - blogged
|
|
|
|
|
what I typically do is add a ContentPlaceholder at the bottom (right before the closing body tag in my MasterPage.master.
this way in my content pages I have a that last content placeholder that I can use for adding script code to.
if you don't want to do that then at the bottom of your content placeholder all you have to do is add a script block.
as if the facebook, twitter and message boards weren't enough - blogged
|
|
|
|