|
yes, i have installed Framework 1.1 & 2.0. Do i need to unstalled 1.1 ?
And how to configure the web server to avoid the error ?
Thanks..
It is our attitude towards life and work that makes our life 100%
|
|
|
|
|
No.
Open IIS manager, right click on virtual directory, go to properties - ASP.net tab and then select the appropriate version.
|
|
|
|
|
What makes you think it is web server configuration problem? The exception is that Sql Server can't be found?
only two letters away from being an asset
|
|
|
|
|
You are quite correct...
That'll teach me for not reading the question properly... (in my defence, it's nearly quitting time and my brain has turned to fluff...)
Sorry
|
|
|
|
|
nothingbutcat wrote: Exception Details: System.Data.SqlClient.SqlException: SQL Server does not exist or access denied.
Check your connection string first. If that is valid make sure the user can access it. If you are using intergated security you must make sure the ASPNET user account has been granted access to the SQL Server.
only two letters away from being an asset
|
|
|
|
|
Thank you. I start to debug from the SQL server.
It is our attitude towards life and work that makes our life 100%
|
|
|
|
|
Hi Friends,
I developed my first ajax control. it is working fine in IE6 and IE7 on my computer but not in FireFox. The more important thing and disappointing thing AJAX control is not working when I try to access from other computer. I need your help in it. I am using following code for Firefox browser in javasctipt but stil it doesn't work. Anyone of you have an idea?
// Mozilla | Netscape | Safari
objXmlHttp = new XMLHttpRequest();
Regards,
Abubakar
|
|
|
|
|
asp.net 2.0 Login control : I am getting the error When click on the login button of the login control
error message : The application is configured to issue secure cookies. These cookies require the browser to issue the request over SSL (https protocol). However, the current request is not over SSL.
the following line generated the error
FormsAuthentication.RedirectFromLoginPage(Login1.UserName, True)
my WEb Config File :
authentication mode="Forms">
<forms name=".ASPXFORMSTEST" requiressl="true" loginurl="https://mysite.com/secure2/login.aspx" protection="All" path="/" timeout="60">
<rolemanager enabled="true" cacherolesincookie="true" defaultprovider="AspNetSqlRoleProvider" cookiename=".ASPXROLES" cookiepath="/" cookietimeout="30" cookierequiressl="true" cookieslidingexpiration="true" createpersistentcookie="true" cookieprotection="All">
what should i do to eliminate the error.. please help
also, the certificate is new one, so that validity is still there
|
|
|
|
|
Dear all.
i am bit new to dotnet.
i have made web application using asp.net , C# using VS2005 and sql2000 as back end .
i would like to know how to generate report using sql server 2000 reporting services.
please give me some link or example
Thanks
regards
imran khan
|
|
|
|
|
|
Hello
Please help me with the select statement for this.After the user select a projectname from the dropdowm.I want the listbox to display the name of all the member that were working under that project.
oga m
|
|
|
|
|
withou knowing the structure of your table I am writing the SQL....
SELECT member_name FROM TableName WHERE projectname='" & mycombo.Text & "'
if this is not the case please let us know your table structure...
Tirtha
"A man can ride on your back only when it is bent....."
|
|
|
|
|
you need to make master + detail
Well your problem needs more explination.
If your data is in a single table then, first you need to bind dropdownlist with the required field you can use
follwoing code or write your on code to fill the drop down list
public void BindDropDownListWithQuery(string sql, DropDownList ddl)
{
try
{
mysqlCommand = new MySqlCommand(sql);
dbConnect();
mysqlCommand.Connection = connection;
mysqlAdapter = new MySqlDataAdapter(mysqlCommand);
dataset = new DataSet();
mysqlAdapter.Fill(dataset, "Table");
ddl.DataSource = dataset.Tables[0];
ddl.DataTextField = dataset.Tables[0].Columns[0].ColumnName.ToString();
ddl.DataValueField = dataset.Tables[0].Columns[1].ColumnName.ToString();
ddl.DataBind();
}
catch (Exception)
{
connection.Close();
connection.Dispose();
}
finally
{
connection.Close();
connection.Dispose();
}
}
then you need to show Details for which you can use data grid
Now its really depend if you are filling datagrid on load event with all records then you need to filter datagrid on the basiss of value selected from dropdownlist
you can do that using this code
if (this.RadioButtonList1.SelectedIndex == 0)
{
this.odsImages.FilterExpression = "fieldname=" + this.DropDownList1.SelectedValue;
}
else if (this.RadioButtonList1.SelectedIndex == 1)
{
this.odsImages.FilterExpression = "field name=" + this.DropDownList1.SelectedValue;
}
if you are not filling datagrid onload event of web form then
you need to fill data grid with select query and you can do this using follwoing code
public void BindDataGrid(string sql, GridView GV)
{
dbConnect();
try
{
mysqlCommand = new MySqlCommand(sql);
mysqlCommand.Connection = connection;
mysqlAdapter = new MySqlDataAdapter(mysqlCommand);
dataset = new DataSet();
mysqlAdapter.Fill(dataset, "Table");
GV.DataSource = dataset;
GV.DataBind();
}
catch (Exception)
{
}
finally
{
connection.Close();
connection.Dispose();
}
}
sql="select * from tbl where fieldname=" + dropdownlist.selectedvalue;
|
|
|
|
|
Naveed Kamboh wrote: sql="select * from tbl where fieldname=" + dropdownlist.selectedvalue;
Rather lengthy response to answer the question asked.
Also, your 'solution' is far to complex for such a simple thing. Where was it mentioned in the OP that he was using a DataGrid and Radio buttons? I only see a dropdown and listbox mentioned.
only two letters away from being an asset
|
|
|
|
|
|
Hello
I am a beginner in programming(asp.net-vb)In my application I need to use an Ajax control(Calender)same as that one in ajax.asp.net/toolkit.When I created my application,I choose website.Now I have incorporated ajax in my current ,so what step should I take?
I need to design the calender,when the user clicks the calendar icon,the calender opens,allow the user to choose the date from the calendar(not only the current date,also previous dates) and the date to be entered in the Date Textbox,after the calender to be closed....
How can I do that cause I've got AjaxToolKit in my ToolBox
oga m
|
|
|
|
|
You can also do it with calender control of asp.net 2.0
don't know abt Ajax
Thanks and Regards
Sandeep
If you want something you never had,
do something you have never done!
|
|
|
|
|
please help me with the code.After the user selected the date from the caledar,the week number for the whole year of that date to be displayed in the week number Textbox.
Thank you in advance
oga m
|
|
|
|
|
|
hi
i am posting my question for the first time. it will be a great help if anyone can answer this.
i have an asp.net application in framework 2.0 and i am allowing my users to upload an excel file which contains a table that i need to store in oracle database. i read about sql loader that convert data in any other format. can i use sql loader with my application or if there is any other way in which it can be done,pls do let me know. i am using oracle10g enterprise edition as backend and coding with C# in asp.net. if u can send me the code that will be great.
with thanks
chitra
|
|
|
|
|
Check out this link, it might help you:
http://www.csee.umbc.edu/help/oracle8/server.815/a67792/ch03.htm
Gautham
|
|
|
|
|
thanks gautam
that article was really good.
but i need some code to use sql loader in asp.net to add data in excel file into oracle table.it will be great help if u can send me some code.
regards
chitra
|
|
|
|
|
Personally i have not implemented but would get back to you once i have the sample code ready!
Gautham
|
|
|
|
|
thanks for taking interest in my problem. i am having hard times because of this.
chitra
|
|
|
|
|
Have you found a solution!
Gautham
|
|
|
|