|
You could use a RangeValidator and set the Minimum and Maximum properties to values (numeric) based on your dropdownlist values. There is no code to invoke this, it will happen automatically when the page is submitted just like all ASP.NET validator controls.
No comment
|
|
|
|
|
I have a question about the statement, "There is no code to invoke this, it will happen automatically when the page is submitted just like all ASP.NET validator controls.". I am not certain what you are referring to. Are you referring to setting the auto postback value to true? Would this occur when the user the user clicks the next button?
To catch all the errors that are on a page would you use the summary validator control?
|
|
|
|
|
The statement refers to the validation control. There is no code necessary to invoke it. ASP.NET handles all of that in the background, you don't need to do anything to invoke the validation. You should read this ASP.NET Validation Controls[^]
No comment
|
|
|
|
|
hi friends
i am using visual studio 2008 i created a master page and many content pages
but i am not able to set the master page as my start up page.
if i want to run the project i have to select any of the aspx pages then that page gets executed so plz do help me in this issue
K.Gayathri
|
|
|
|
|
You can't set master page as start up page. You have to set any of content page as master page.
This content page first execute the master page part and then content page code.
|
|
|
|
|
MalarGayu wrote: but i am not able to set the master page as my start up page.
that is because a masterpage cannot be a default page, only content pages can fill this role. another to take into consideration is what your server will also server as the default start page. IIS for instance usually wants a page named index or default to be available.
if you don't create that default page that IIS wants then you are only going to have to deal with configuration matters down the road when you go to deploy the application.
as if the facebook, twitter and message boards weren't enough - blogged
|
|
|
|
|
yes thanks for all your reply
got the logic of it..and understood
K.Gayathri
|
|
|
|
|
I have public class user where I have all my properties set for user (UserID,Name etc). Now I would like to create a new public class ListAllUser where I would add users with properties from user class.
how can I do this?
|
|
|
|
|
List<Users> users = new List<Users>();
Users user = new Users();
user.UserId = 1;
user.Name = "Byka";
users.Add( user );
You can do this in a for/foreach loop if you are reading the users from the database. if that's the case, you can go
List<Users> users = new List<Users>();
for(int i=0;i<length;i++)
{
Users user = new Users();
user.UserId = 1;
user.Name = "Byka";
users.Add( user );
}
Happy coding,
Morgs
|
|
|
|
|
excuse me but shouldn't this question really be asked in the language group for whatever language that you are developing with??
how do we know if you are using VB, c#, javascript, or c++??
as if the facebook, twitter and message boards weren't enough - blogged
|
|
|
|
|
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
|
|
|
|