|
Why do you have:
<form id="form1" runat="server">
and
<asp:scriptmanager id="ScriptManager1" runat="server">
In my opinion these to should bee on your MasterPage and not on the content page
I had a project where I used tabs on a content page without any problems...... Try to move this two and then run it again.....
Kind regards,
simsen
|
|
|
|
|
Hi,
i have created a new folder and define a class outside the app code folder but it is not visible on webpage.aspx.vb pages. will any one help me
KnightGuy
|
|
|
|
|
I think change your web site to web application. Then it will do.. I think.
You need to see if the file is included or not and in current namespace.
Abhishek Sur
modified on Thursday, September 18, 2008 6:14 AM
|
|
|
|
|
Check if the newly created class has any namespace
if it has namespace then include this namespace in your .vb class
by
using namespaceWholeName;
then try to access
<edited>
Might be yours is website and compiler will not compile you class files until these are not in App_Code folder thats the reason you can't access this class
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... "
Check My Blog
|
|
|
|
|
Hi,
I want to restrict the user to access the page directly through giving the address in the Address Bar of the browser. For Example, I have a page named:
http: . Now I can access this page directly by giving the address in the adress bar but I want to restrict user to access this page only through a particular link not just by giving the address. How it will be possible. Please help.
|
|
|
|
|
Check the Request.UrlReferer property on Compose.aspx and ensure that they came from where you expect them to have come from.
Not particularly good security, but does what you asked!
|
|
|
|
|
but watch out, the URL referer can be faked rather easy...
<< Nearly all men can stand adversity, but if you want to test a man's character, give him power. >>
|
|
|
|
|
I think you can check your authentication token which you place on login to session. And each page will check if you are authenticated or not.
If you are out of session, generate an error and handle it to go to some errorpage from Global.asx
For Example : Your page Compose.aspx will check Session["Auth_token"]. If true show the page, otherwise dont....
You can also use Application_BeginRequest event of Global.asax to implement this logic, because it will be called on every page call...
Abhishek Sur
|
|
|
|
|
i use checkboxlist & fill it by data source.my data item are more n all are load in that checklistbox n page becomes large.
I want a 4 or 5 checkbox at a time and remain in scroll bar so that user can select it choice by moving scroll bar.
AmitGautam
|
|
|
|
|
Dont repost
The answers posted by me are suggestions only and cannot be used in anyway against me.
|
|
|
|
|
ur question is not well understood. Please explain briefly.
And yes plz dont cross post
|
|
|
|
|
Just put your CheckBox list in Div tag give height and width to this div tag and make it scrollable like this
<div style="overflow:scroll;height:50px;width:200px" >
<asp:CheckBoxList ID="CheckBoxList1" runat="server">
<asp:ListItem>One</asp:ListItem>
<asp:ListItem>two</asp:ListItem>
<asp:ListItem>Three</asp:ListItem>
</asp:CheckBoxList>
</div>
Is that you want ?
got resolved ?
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... "
Check My Blog
|
|
|
|
|
I think using dynamic height will be better so that it will shrink whenever there is no checkbox.
<asp:checkboxlist id="CheckBoxList1" runat="server" xmlns:asp="#unknown">
<asp:listitem>One
<asp:listitem>two
<asp:listitem>Three
Please do change the maxheight you want before the scroll will come.
Abhishek Sur
|
|
|
|
|
its ride correctly ....
thanks for ur great support.
with great regards
amit gautam
|
|
|
|
|
hi...
how can i create a server control...could u please help me with example if possible
advance thanks
|
|
|
|
|
<asp:button id="btn_Update" runat="server" visible="false" text="Save Changes" onclick="btn_Update_Click" xmlns:asp="#unknown">
There you go
The answers posted by me are suggestions only and cannot be used in anyway against me.
|
|
|
|
|
Just write runat="server" on a control, it will be a server control.
Abhishek Sur
|
|
|
|
|
How can I write the following peusdo code:
I'm filling a content place holder with a certain amount of controls
After the content place holder has been filled I need to , after 3 controls, to make the rest invisible, how would I go about that?
thanks
The answers posted by me are suggestions only and cannot be used in anyway against me.
|
|
|
|
|
I think you have to hide it from Page ?
Is that right ?
You must have given some Id to your content Placeholder
Create public properties in the masterPage to hide this content placeholders and call these properties from your page
Is that you want ?
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... "
Check My Blog
|
|
|
|
|
Sandeep Akhare wrote: Is that you want ?
No
Basically I have ten controls in the place holder but I only want 3 of them to show on the page. Therefore I need to make the first 3 visible and the rest invisible.
How would I do that?
The answers posted by me are suggestions only and cannot be used in anyway against me.
|
|
|
|
|
in pseudo code:
set count equal zero
while there are controls to add
create control
if count is greater than 2 set control visibility to invisible
add control to placeholder
increment count
really not hard. what's your issue?
|
|
|
|
|
OK, well so far I have the following:
foreach (string srg in fields)
{
Label lb = new Label();
}
fields is an array list.
So once its gone through the array list it wont add any more controls.
So how would I change that to a While loop?
Would I count the srg in fields instead until there is none?
J4amieC wrote: really not hard. what's your issue?
Nothings hard when you know the answer...
thanks for the reply
The answers posted by me are suggestions only and cannot be used in anyway against me.
|
|
|
|
|
how about:
for(int i=0;i<fields.count;i++)>
{
Label lb = new Label()
lb.Visible = (i<3);
}
|
|
|
|
|
Your question is confusing
Are you using Master Page in your page ?
If no there are 10 controls directly in the Page
then there are many way to do it
1. Access the control using its Id make its Visible propety false (n times)
2. Put all other control in one placeholder or div (run at server)
and hide this placeholder/dev by making Visible =false;
Is that you want ?
Please describe your question little more if it is still not resolved
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... "
Check My Blog
|
|
|
|
|
Im trying to create a new web user control, and im using the steps below from MSDN help, my problem is on step three. i cant find the Web control Libary using this process, but when i go to an existing page and add item, Web COntrol Library appears but i wont be able to create the dll for the from within another application.
Does anyone know what im doing wrong.
To create the custom control
1.On the File menu, point to New, and then click Project.
The New Project dialog box appears.
2.In the Project Types pane, choose either Visual Basic Projects or Visual C# Projects.
3. Select Web Control Library in the Templates pane.
Change the Name to CustomLabel and click OK.
The new project is created, and WebCustomControl1 opens in the Code Editor.
4.Code for a custom Label control is included in the Web Control Library template by default. This is the control you will use in this walkthrough.
On the Build menu, click Build CustomLabel to compile the control.
The control is compiled as CustomLabel.dll. By default, it is created in the Bin folder inside the CustomLabel project folder.
Save the file.
|
|
|
|