|
|
I try that be cant bind the data and get pbm as there is no source available when the compiler moves to Databind(); my code is
protected void Page_Load(object sender, EventArgs e)
{
if (OliveSessions.UserId == null)
{
Response.Redirect("http://Localhost/OliveTreeNetwork/Login.aspx");
}
if (!IsPostBack)
{
Bind();
}
dpcEventslist.StartDate = DateTime.Parse("07/07/2009");
}
private void Bind()
{
DataSet ds1 = new DataSet();
DataSet ds2 = new DataSet();
if (OliveSessions.UserId != null)
{
ds1 = dal.Select_EventMembers(OliveSessions.UserId);
if (ds1.Tables[0].Rows.Count > 0)
{
ds2 = dal.Select_Events(ds1.Tables[0].Rows[0]["role_id"].ToString());
dpcEventslist.DataSource = ds2.Tables[0];
dpcEventslist.DataBind();
}
}
}
|
|
|
|
|
hi folks,
im facing a issue in changing internet explorer--> custom level security setting--> miscellaneous setting--> access data sources across the domain , i want to enable access data sourcess across the domain , im trying to get the registry key n sub key by following code , but i dont know how to get miscelleneous setting subkey values. or how to enable them ?
any help would be greatly appreciated .
my code is -:
RegistryKey OurKey = Registry.CurrentUser;
OurKey = OurKey.OpenSubKey(@"Software\Microsoft\Internet Explorer\Security", true);
foreach (string Keyname in OurKey.GetSubKeyNames())
{
Response.Write("Sub Key Names ---->" + Keyname );
Response.Write("<br></br>");
}
foreach (string valuename in OurKey.GetValueNames())
{
Response.Write("VALUE NAME - -- >" +valuename + " VALUE -->" + OurKey.GetValue(valuename).ToString());
Response.Write("<br></br>");
}
|
|
|
|
|
You know that using ASP.NET with this code will only search in the servers registry?
By the way, I think it is not intended that code should affect security settings. This is not what the user of your site wants. Maybe you should think about dropping that feature.
|
|
|
|
|
I need to be able to print the contents of a richtextbox, which saves in the database as html. I'm working with a rtc that is fairly limited and I can't use any third party ones for security reasons. I don't know where to even start.. Using Asp.Net 2.0 C#..
Anyone? Thanks in advance!
modified on Monday, July 13, 2009 12:20 PM
|
|
|
|
|
You are a retard. You TWICE ignored the 'do not ask programming questions in the lounge' message while you did exactly that. I've moved it for you, but please, get a grip. If you can't read, I'm not sure how you're supposed to respond to any advice you get.
For a start, you have NO printing options beyond asking the browser to print your page in ASP.NET.
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
|
|
|
|
|
Being condescending and cocky is not helpful. You were a newbie once too--Everyone's an idiot at something.
modified on Monday, July 13, 2009 12:18 PM
|
|
|
|
|
I created a custom dropdownlist. (inherit from standard dropdownlist control)
I want to add ListItem inside this control. but I don't know where I must add ListItem.
I add it in RenderContent method but I received NullRefrenceException .
|
|
|
|
|
DropDownList1.Items.Add(new ListItem("ItemString", "ItemValue"));
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.
|
|
|
|
|
I konw that! but I want create custom dropdownlist with 3 default items
|
|
|
|
|
Am using the password strength control when use the strength indicator Text it works fine but when i used the barindcator it doesnot show why??any help?
|
|
|
|
|
|
hello every one
I published my website and then i copied my project folder in www run my project using localhost but what happen is it shows code of my application rahter then design page.
i cant get why this happen.
Please suggest
please help..
|
|
|
|
|
nazimghori wrote: I published my website and then i copied my project folder in www r
After publishing the site, you have to deploy the site on IIS, and does not mean that just putting the code on wwwroot.
Do the Following Steps :
1. Published the code.
2. Put the code into wwwroot
3. Open IIS > You will see there should be a folder with the name of your web application
4. Right Click on that and Click on Properties.
5. Click on Create Virtual Directory Folder.
6. Set additional Setting if you need
7. Then try to access using http://localhost/virtualdirectory/home.aspx
Let me know if you have any issue.
|
|
|
|
|
THANK YOU VERY MUCH
I DID THE SAME AS U SUGGESTED...
BUT THERE IS NO OPTION LIKE CREATE VIRTUAL DIRECTORY ON RIGHT CLICK OF MY FOLDER.
SO PLEASE SUGGEST HOW CAN I GET THAT.
|
|
|
|
|
|
hello
thanks i have done the way you told and it worked thanks for help.
Now when i run my application there is error like:
XML Parsing Error: syntax error
Location: http://localhost/handloom/Home.aspx
Line Number 1, Column 1:
can u please suggest what this error is..
thank you.
|
|
|
|
|
That because you didn't set the framework version in Virtual Directory Properties. Goto the properties of the virtual directory, then go to ASP.NET Tab, check the asp.net version, If your web application developed in asp.net 2.0 then it should be 2.0.x.x .
Set that, apply and try again !!
It will work.
|
|
|
|
|
hello
thanks for your help it is working now
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.
i am doing this for first time so
can you please suggest how this works..
Thank you.
|
|
|
|
|
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
|
|
|
|