|
<asp:CheckBoxField HeaderText="Add" DataField="Add" />
this is my code, I am in asp.net 2.0
I didn't see any such property
PLease guide
Sebastian
|
|
|
|
|
ok. I would suggest you to use GridView Template Field Rather than using CheckBoxField. It will solve your problem.
<asp:GridView ID="GridView1" runat="server">
<EmptyDataTemplate>
<asp:CheckBox ID="CheckBox1" runat="server" />
</EmptyDataTemplate>
</asp:GridView>
Please let me know when done !!
cheers,
Abhijit
CodeProject.Com MVP
|
|
|
|
|
Can you post the full definirion of the grid?
Thanks,
Rajdev KR
|
|
|
|
|
I run exe of aspnet_regiis also but problem is still there
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Web.Hosting.HostingEnvironmentException: Failed to access IIS metabase.
The process account used to run ASP.NET must have read access to the IIS metabase (e.g. IIS://servername/W3SVC). For information on modifying metabase permissions, please see http://support.microsoft.com/?kbid=267904.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[HostingEnvironmentException: Failed to access IIS metabase.]
System.Web.Configuration.MetabaseServerConfig.MapPathCaching(String siteID, VirtualPath path) +3591442
System.Web.Configuration.MetabaseServerConfig.System.Web.Configuration.IConfigMapPath2.MapPath(String siteID, VirtualPath vpath) +9
System.Web.Hosting.HostingEnvironment.MapPathActual(VirtualPath virtualPath, Boolean permitNull) +169
System.Web.CachedPathData.GetConfigPathData(String configPath) +389
System.Web.CachedPathData.GetConfigPathData(String configPath) +243
System.Web.CachedPathData.GetApplicationPathData() +68
System.Web.CachedPathData.GetVirtualPathData(VirtualPath virtualPath, Boolean permitPathsOutsideApp) +3536567
System.Web.Configuration.RuntimeConfig.GetLKGRuntimeConfig(VirtualPath path) +189
modified on Saturday, January 10, 2009 4:40 AM
|
|
|
|
|
anilaabc wrote: I run exe of aspnet_regiis also but problem is still there
What was your actual problem ? from where are you runs this command ? Which framework do you have installed in your system ?
The possibly causes of your problem is
<br />
you have install IIS after .NET 2.0 framework in your system. And for that e ASPNET user right does not set properly. <br />
Resolution :
Run aspnet_regiis command from .NET Framework Directory.
e.g : C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727>aspnet_regiis -i
cheers,
Abhijit
CodeProject.Com MVP
|
|
|
|
|
I Run aspnet_regiis command from .NET Framework Directory.
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727>aspnet_regiis -i
and .net frame work 2.0 is installed
|
|
|
|
|
anilaabc wrote: I Run aspnet_regiis command from .NET Framework Directory.
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727>aspnet_regiis -i
and .net frame work 2.0 is installed
Then what happened ?
Reset IIS , open Inetmgr , open the properties of Virtual Directory of your application , Check ASP.NET version (it should be 2.0..) .
Run the application .
cheers,
Abhijit
CodeProject.Com MVP
|
|
|
|
|
i am having dropdownlist in master page and i want to acces its selected value and selecteditem and using following code but in not seems to work
DropDownList dd = (DropDownList)Master.FindControl("DropDownList1");
string pBranchCode = dd.SelectedValue;
string pBranchSName = dd.SelectedItem.Text;
umerumerumer
|
|
|
|
|
mr_muskurahat wrote: but in not seems to work
Which is not working ? Where did your written thid code ?
cheers,
Abhijit
CodeProject.Com MVP
|
|
|
|
|
the right way to do this, is to expose properties on the master page, and cast Master to your specific master page class. Even better, make this typed instance a property on a base class you use for your pages.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Hi ,
I am using windows xp 2000 sp 2 operating system.I need to create new application pool through IIS but in left panel of iis i could not get option for creating new application pool,while in Vista,we can add new application pool
|
|
|
|
|
AFAIK :
Application Pools has been introduced with IIS6 and does not<br />
exist in IIS 5.1 .
NidhiKanu wrote: I am using windows xp 2000 sp 2 operating system.
Windows XP having IIS 5.1
NidhiKanu wrote: while in Vista,we can add new application pool
Because the IIS Version is not 5.1 .
Windows Vista, Windows Server 2008 can have IIS 7.0 with them
cheers,
Abhijit
CodeProject.Com MVP
|
|
|
|
|
|
NidhiKanu wrote: Thnx,it solve my problem
Good !! Cool !!
cheers,
Abhijit
CodeProject.Com MVP
|
|
|
|
|
Very Good Morning !!
I have one .NET Windows control inside htm whenever i access the htm page from My machine http://192.xxx.xxx.xxx/test/Myctrl.htm
then it is Visible and works properly.
however when same page is requested from another machine ,The control is not visible.
If any body knows solution then please help me!!
Thanks in advance
Dattatraya
|
|
|
|
|
Visit
http://forums.asp.net/t/1286671.aspx
|
|
|
|
|
I have a modalpopupextender for an ajax popup login window on my site. After the user logs in, I want to close the modalpopupextender and redirect them to the page they originated from (I'm using "FormsAuthentication.RedirectFromLoginPage" for this), however I'm getting a "pagerequestmanagerparsererrorexception" javascript error after I click login and try to perform the RedirectFromLoginPage. Is there a way around this issue?
My code looks like the following (I allow the user to login via their email address, hence the "GetUserNameByEmail" line in the code). It fails on the FormsAuthentication.RedirectFromLoginPage... line:
----------------------------------------------------------------------------------------------------------------------------
protected void LoginButton_Click(object sender, EventArgs e)
{
LoginButton.Attributes.Add("onClick", "this.blur();");
string username = Membership.GetUserNameByEmail(Email.Text);
if (Membership.ValidateUser(username, Password.Text))
{
FormsAuthentication.RedirectFromLoginPage(username, RememberMeCheckbox.Checked);
}
else
{
InvalidLoginLabel.Visible = true;
ModalPopupExtenderLogin.Show();
}
}
------------------------------------------------------------------------------------------------
I understand ajax fails when you try to do a redirect such as this but I don't know of an alternate way to achieve this. Any ideas?
Thanks.
-Goalie35
|
|
|
|
|
Same is posted in Web development......
|
|
|
|
|
I have a page that uses a master page. I have a button that when clicked, should display a popup message like a confirm message, then process (add or remove data to the table).
If processing is chosen, then I want to send some message back to the parent to refresh or do something else.
With javascript and html controls like input type=submit etc, sending messages back and forth is simple.
But how do I do it when I have server side processing to do?
I am sure there are ways.
Thanks.
|
|
|
|
|
There is this new thing people have been talking about, maybe you've heard of it; Ajax?
only two letters away from being an asset
|
|
|
|
|
Yes, sure I did. I am using some basic AJAX on my pages to prevent refreshing of the whole page.
But I don't know how to solve this problem I mentioned.
Can you please direct me to the right way?
Thanks.
|
|
|
|
|
You are using an Ajax enabled control, most likely the UpdatePanel. However, Ajax is more than jest a set of controls and can be used for client-server communication.
Start
here[^]
only two letters away from being an asset
|
|
|
|
|
Should I visit the town of Ajax as well? In the google search I found that too.
Just kidding - thanks.
|
|
|
|
|
window.opener.parentfunction(parametors to send)
i think it will help you where parent function is written in javascript of parent page from where popup is open.
umerumerumer
|
|
|
|
|
Hi!
My application is installed in an intranet, in the same domain from which i do the request with a client pc.
In the IIS(6.0) I disabled anonymous access, and i check Windows Integrated Authentication.
In the web.config I set
authentication mode="Windows"
authorization -> allow users="*"
This seems to be correct, but whenI try to access to the web application the credential prompt appear.
Now, How can i disable this prompt?
I read a lot of documentation in Internet, and i see that a possible solution is to set the option security of IE ( custom level -> user authentication -> anonymous log only ith user name and password ), but also this doesn't work.
Can someone help me?
Thank you in advance.
Alberto
|
|
|
|