|
nazimghori wrote: but the promblem is for metabase this time i am using iis(v 5.1) with asp.net 2005 with frame work 2.0 and dont know how to configure it.
What do you mean by meta base ? Can you tell me what actual error are you getting ? Are you able to view your page now?
|
|
|
|
|
hello
The error that i got is like.
if i use my browser as netscape navigator than below error is displayed.
Failed to access IIS metabase.
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.
if i use my browser as IE then error is like.
Server Application Unavailable
The web application you are attempting to access on this web server is currently unavailable. Please hit the "Refresh" button in your web browser to retry your request.
Administrator Note: An error message detailing the cause of this specific request failure can be found in the application event log of the web server. Please review this log entry to discover what caused this error to occur.
Please suggest some solution for this.
modified on Monday, July 6, 2009 12:33 AM
|
|
|
|
|
Did you try that What CG has already Suggested ?
You have installed IIS before or After Installing .NET Framework ? It seems, your IIS is not registred with ASP.NET .
Run the following command :
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis -i
[ Note : I assumed the your framework has installed the following location ]
Then Try.
This will resolve your issue.
|
|
|
|
|
I believe this means that ASP.NET is not installed for IIS.
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
Hello every one
I need to develop an application in asp.net where i had to make report in excel for that i wrote my code like
Dim xl As New Excel.Application
xl = CreateObject("Excel.Application")
xl.Workbooks.Add()
xl.visible = True
this code works with vb.net 2005 but the same i want to use in asp.net 2008
now it shows an error like "type 'excel.application' not found"
so please help me how to approach
I am new to asp.net 2008.
|
|
|
|
|
I am guessing you did this in the past via some code you found online and have no idea how it worked. The Excel stuff is not built in, you need to download the toolkit for it from MS. Also, you need Excel to be installed.
You will create an Excel sheet on the server and users will download it ?
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
I created Custom dropDownList .
I use it in a page. but I can't access to it in code behind.
|
|
|
|
|
Show your code what did you do so far.
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
|
|
|
|
|
mohandesmehran wrote: but I can't access to it in code behind.
what does it mean ? from where you are trying to access the code?
|
|
|
|
|
namespace HakhamaneshControl
{
[ToolboxData("<{0}:Drp_Languages runat=server></{0}:Drp_Languages>")]
public class Drp_Languages : DropDownList
{
protected override void RenderContents(HtmlTextWriter output)
{
output.RenderBeginTag(HtmlTextWriterTag.Option);
output.AddAttribute(HtmlTextWriterAttribute.Value, "Ar");
output.Write("Ar");
output.RenderEndTag();
}
}
}
///
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="CreateCustomControl._Default" %>
<%@ Register Assembly="ServerControl1" Namespace="HakhamaneshControl" TagPrefix="cc2" %>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Button" />
<div>
<cc2:Drp_Languages ID="hhhh" runat="server">
</cc2:Drp_Languages>
</div>
</form>
</body>
</html>
//code behind
protected void Button1_Click(object sender, EventArgs e)
{
Response.Write(DropDownList1.SelectedItem.Value.ToString());// null refrence exception
}
|
|
|
|
|
try this way
Response.Write(DropDownList1.SelectedValue.ToString());
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
|
|
|
|
|
unfortunately don't work. I think ,I must add items in a different manner. but I don't know how.
|
|
|
|
|
unfortunately don't work. I think ,I must add items in a different manner. but I don't know how.
|
|
|
|
|
I need a dropdownlist with 3 items. I use this dropdownlist in each page in my project.
how can I inherit from DropDownList control and add these items to it?
|
|
|
|
|
i have 3 link button, and i want set the text for them,
i set their name from database and i want use from (for) how can i do this?
LinkButton lkb1 = new LinkButton();
LinkButton lkb2 = new LinkButton();
LinkButton lkb3 = new LinkButton();
for (int j = 1; j <= 5;j++)
{
lkbj.text = ds.tables[0].rows[0][1].tostring();
}
|
|
|
|
|
LinkButton _button = null;
for (int count = 1; count < 5; count++)
{
_button = new LinkButton();
button .text = ds.tables[0].rows[count][1].tostring();
}
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
LinkButton lkb = null;
for (int j = 1; j <= 5;j++)
{
lkb = new LinkButton();
lkb.Text = ds.Tables[0].Rows[0][1].ToString();
YourContainerControl.Controls.Add(lkb);
}
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
|
|
|
|
|
Hi everybody,
I need to disable a ComboBox after clicking a button. I set the Enabled property to false at Click Event of button,
but it didn't work (because it needs a postBack)
I want to do this after clicking the button and doing sth (if succeed), so I can't do it in Page_Load.
What should I do?
Best wishes
|
|
|
|
|
mehrdadc48 wrote: What should I do?
Do it at the client side using Java script.
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
How can I deal with standard DropDownList in javascript (in client event of another control. not itself)?
Best wishes
|
|
|
|
|
use javascript
/// write this script function in Body or form tag
function setcomboDisable()
{
document.getElementById('comboid').disabled="disabled"
return false;
}
///in page_load event
buttonid1.Attributes.Add("onclick","if(setcomboDisable()==false){ return false;}else { return true;}");
okay i hope it will work
|
|
|
|
|
hello there.. i wanna ask you how to use radio button in datagridview and display a record but not in single record.. for example i have two result of query :
First Result :
id name price category
A-1 a $20 cotton
A-2 c $50 nylon
Second Result
A-3 b $40 clothes
A-4 d $70 t-shirt
now iam going to combine and sum the price base on a-b b-c
how to combine it? and how to place a radio button beside it.
so i have a view like this
id name category price
A-1 a cotton (Radio Button)$60
A-3 b clothes
A-2 c nylon (Radio Button)$120
A-4 d t-shirt
and now user should select desired item from its prices using just one radio button beside the accumulate price..and view the result they selected in the next page i need a sample code in visual basic .net
|
|
|
|
|
tarbanhud wrote: i need a sample code in visual basic .net
This is so rude. No one here has time to write code for you.
People can suggest you how to proceed and if you have any further problems you can comeback and ask.
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
i mean maybe anyone who has similar problem and then find reference on the net.. or maybe anyone
|
|
|
|
|
hi to all
sir please tell me how to upload any .aspx file in by file software as i uploaded html file but culd not upload any .aspx file in httpdocs.we can upload any folder in httpdocs or not if yes please provide me
rizvan sivally
|
|
|
|