|
I got this resolved...I battled this issue for an entire day trying to figure out what the issue was and found that the single attribute DataKeyNames was missing...when you use a GridView to handle SELECTS, this is of course not required. I found the documents at http://msdn2.microsoft.com/en-us/library/aa905796.aspx to be EXTREMELY helpful. Hopefully others will find them helpful as well...
|
|
|
|
|
Hello friends i tried to use the master page in my site and used the content page in it then i droped a Button control on this content and tried to execute it,this error occurd ,
Control 'ctl00_ContentPlaceHolder2_Button1' of type 'Button' must be placed inside a form tag with runat=server.
i tried to use the form into my content it gives the same error can u help please
Waheed Barghouthi
|
|
|
|
|
copy ur content page html code and paste or check ur master page html code.
Best Regard
Pathan
GOD HELP THOSE WHO HELP THEMSELF
|
|
|
|
|
Thanks Pathan but in my content page i have no html code cause its all in master pages this what i have in my content page
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" Title="Untitled Page" %>
<asp:content id="Content1" contentplaceholderid="ContentPlaceHolder2" runat="Server">
<asp:button id="Button1" runat="server" style="z-index: 100; left: 40px; position: absolute;
top: 80px" text="Button">
Waheed Barghouthi
|
|
|
|
|
Check if the ContentPlaceHolder control is inside the form tag. If not, put it inside the form. It should look like this:
<form id="form1" runat="server">
<!-- Html and ASP.NET markup -->
<asp:ContentPlaceHolder ID="ContentPlaceHolder2" runat="server">
<!-- Put controls here if desired -->
<asp:ContentPlaceHolder />
<!-- Html and ASP.NET markup -->
</form><pre>
|
|
|
|
|
hi,
i have a checkbox list, and having values like,
Company1
----------------
1 - car
2 - bus
3 - both
Company2
------------------
1 - car
2 - bus
3 - both
Company3
------------------
1 - car
2 - bus
3 - both
and these values are repeating for many Companies so my client can select Car or Bus or Both from a Company, but what if he/she selects Both then logically the Car or Bus Option should not be selectable, how i can achieve that.
I love .NET
|
|
|
|
|
if you have only these options then use radiobuttonlist instead of checkboxlist.
If you still want to use the checkbox then you have to write a javascript code for onclick and check which checkbox was clicked and uncheck all other checkboxes.
-----
|
|
|
|
|
You should take radioButton list insted of checkbox list.
If client select both there is no need to select car or bus.So u can achive this by radiobutton list
Best Regards
Pathan
GOD HELP THOSE WHO HELP THEMSELF
|
|
|
|
|
|
I want users to enter only character value into textbox for UserName. I dont allow users to enter any numeric value.
Please help me
|
|
|
|
|
use the onkeypress function and return false if character code does not fall in alphabets. You can get the code range by alert(event.keyCode()). key code is different for small and capital letters. I think they start from 64 to 92 but I am not sure you can alert them.
-----
|
|
|
|
|
Keep a RegularExpression Validator for your TextBox .
For Eg:Add the following line below your text Box in the source View.
<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ErrorMessage="Enter Only characters" ControlToValidate="YourTextBoxID" ValidationExpression="^[\w]$" />
Koushik
|
|
|
|
|
I have three update panels with conditional updatemode. First paneld containt navigation buttons and dropdownlist for paging. Second panel contains sortable datagrid with and edit/view button in last column and triggers fired by the nagavtion buttons. The third panel contains a form to show the details on clicking the edit/view button in datagrid.
Most of the times all these are working fine. But some time onclicking the navigation buttons (first panel) the whole page flickers. Can someone tell me why?
Secondly whenever I edit any record by clicking on edit/view button, it shows me details fine. But right after that if I sort the grid, the whole page flickers instead of the second panel only. And it happens everytime I sort the grid after clicking on edit button. Second sort works fine?
Thanks in advance.
WELL: I just tested in firefox and it is working just fine in firefox. So I quess it is IE stupid stuff..
-- modified at 11:58 Monday 12th March, 2007
-----
|
|
|
|
|
My guess would be a) your using IE which has some horrible page flicker bugs in it and b) it occurs because most of the page is being updated (ie more than one panel), for smaller page updates you probably won't notice it. Does sorting the grid also update the third panel? I would of thought so...
|
|
|
|
|
I think your first guess might be true.
Your second is wrong because it is not updating all panels, it only updates the panel which I call panel.update or which have triggers. So updating is working fine only flickering of page is a problem that happens randomly. Most of the time it is working just as expected.
Thanx for your response.
WELL: I just tested in firefox and it is working just fine in firefox. So I quess it is IE stupid stuff..
-----
|
|
|
|
|
Hi
I downloaded the code of 'Switching Between HTTP and HTTPS Automatically '
from code project and trying to run it but it is giving me error
as
File or assembly name WebPageSecurity, or one of its dependencies, was not found.
in
<add name="SecureWebPage" type="Hyper.Web.Security.SecureWebPageModule, WebPageSecurity">
in web.config
If it is require a change in code,please let me know.
Swapnil Bhavsar
|
|
|
|
|
Hi
I have a simple asp.net page that contains link and open reports in pdf file on browser. I do have authentication to check user window log in for access to diff reports. But how do i avoid user to physically type in the path to view the report on browser?
Thanks
Nancy
|
|
|
|
|
i am using modalpopup control in ajax when panle pops up how to disable back page???
in my case it is enabled
|
|
|
|
|
I want to change the location or position of the control at runtime.
Mohinder Singh
|
|
|
|
|
use panels or divs or table and then use
panel1.Controls.Add(panel2.FindControl(controlID))
-----
|
|
|
|
|
Hello
I started a little web project, where the users can register and make their own sites.
Now i want, that the User can access his personal site directly over the path http://xy/[Username] like many other sites. For example http://www.myspace.com/userX
But I don't know how to make that dynamic? Sure there is a possibility without create a directory, create a virtual directory and put a index file into it, for each user.
Probably it has not a lot to do with c# (I program into ASP.NET with c#). I'm sure someone here can help me?
Thanks for your help
Yours sincerely
|
|
|
|
|
try googling 'URL Rewriting'. i think this is exactly what you need.
- walter
|
|
|
|
|
Hi there
I want to use a session variable to store the user_id, and then redirect to another page. the problem is, that when i get to the redirected page, in the page load event, the session variable is not there (when put onto a textbox). only when the page is refresed (F5), can i view the user_ID on the textbox.
Can anyone help me with this problem?
Thanks
|
|
|
|
|
I havnt got ur problem.
What u want to do?
Please specify with code
Best Regards
Pathan
GOD HELP THOSE WHO HELP THEMSELF
|
|
|
|
|
Are you sure your code is running on the intial hit of the page?
|
|
|
|