|
If you go into the web.config and set the attribute described to Off, then you get to see the actual error message...
|
|
|
|
|
yes i know that. but i want to why this error is occured. it works fine in intranet.
Pravin
|
|
|
|
|
Hello friends ...
I've a problem regarding focus ... whenever I run the application (C#) the focus goes to IE's address bar .. but I don't want
it to go there in any case, not even after any control
waiting for reply ...
thanking you in advance ...
Keep Smiling ....
|
|
|
|
|
I have set a combo box and some text box to display data. The combo box display the user name. one selecting a user name all its detail about the user should be displayed in respective text box. i have written the code like this
protected void cuname_SelectedIndexChanged(object sender, EventArgs e)
{
//SqlDataSource1.Select();
SqlConnection con = new SqlConnection("Data Source=ORG-99DBE221248;Initial Catalog=pubs;Integrated Security=True");
String sName = "select * from feedback where uname = '" + cuname.SelectedValue + "'";
SqlCommand cmd = new SqlCommand(sName,con);
con.Open();
SqlDataReader dr = cmd.ExecuteReader();
if(dr.HasRows == true)
{
dr.Read();
cuname.Text = dr["uname"].ToString();
email.Text = dr["email"].ToString();
sites.Text = dr["site"].ToString() ;
pro.Text= dr["pro"].ToString();
cm.Text = dr["cm"].ToString() ;
qa.Text = dr["aq"].ToString();
sug.Text = dr["Sug"].ToString() ;
Qlike.Text = dr["Qlike"].ToString() ;
dislike.Text = dr["dislike"].ToString() ;
}
i have configure the combox box by the sqldata source control. i can view the name . but if select the name i can not view the respective data.. what i am missing plz help
|
|
|
|
|
try an intelligent header, everyone here wants ASP.NET help, or is in the wrong forum
One guess, do you want selectedvalue, or selectedText ? Try setting a breakpoint and seeing which property contains the data you need.
Of course, this code is incredibly nasty, I hope no-one is paying for this, and you're just learning ? You should never have database code like this sitting inside your codebehind, it's a maintenance nightmare.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi
I am using asp.net 3.5 , Its my first ever experience that I am building a site which could hold millions of records and 1000's of users can sign in togather, This application is some thing like property real estate. Now the problem which I am facing is the following.
Since application could have millions of records and millions of users navigating togather with in the application so what should be the development architecture.
If I shall use web service as Bussiness Layer then we need to place to hostings one for service and other for main application where we want to deploy single application on IIS to use this as a product in future. Also if I shall keep the webservice then on each user login or each query system will open a new connection with SQL server which would kill SQL server.
If I keep a Bussiness Tier in the middle ( like Transaction Server) even then connection to SQL Server will go to millions when million of users will sign in togather.
I dont understand what should be the best as I am just working on this issues now a days to define architecture well before starting development.
Any Suggestions or any links which could help me would be highly appreciated.
You can consider zillow.com as a type of project I am going to work on.
Best Regards
Rizwan Bashir
http://www.alm-soft.com
|
|
|
|
|
Our company runs a web site with fairly high load. At high tide it goes up to about 400 requests per second.
We have two load balanced web servers, and one database server. The web servers doesn't work very hard, though. At top load they reach 4% CPU usage...
It's a three tired application, but the business layer is part of the application running on the web servers, so there is no physical separation between the presentation layer and the business layer.
Rizwan Bashir wrote: on each user login or each query system will open a new connection with SQL server which would kill SQL server.
There is hardly any risk for that. The database connections are pooled in .NET, so most of the time you will recycle an already open connection instead of establishing a completely new connection.
If you just try to minimise the time that you use the connection (open late, close early), each page will use a connection only a few milliseconds, so the server can produce a whole lot of pages per second with only a few connections in the pool.
However, to reduce database load you can use caching in the web application. We cache search results (lists of item id:s) and items (cars), so some pages are created without the need to call the database at all.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Hi
Thanks for the reply and it gives me real comfort that I was thinking in right direction. I was also planning for Bussiness Layer which could be deployed separately and with project depending on the requirement.
Best Regards
Rizwan Bashir
|
|
|
|
|
hi,
i want to run a script on page load. the page is included in a masterpage contentplace holder.
eg.
<pre>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<script language="javascript">
obj=(document.all) ? document.all['<%=pnlOptPro.ClientID %>'] : document.getElementById('<%=pnlOptPro.ClientID %>');
obj.style.display=(obj.style.display=='none') ? 'inline' : 'none';
obj1=(document.all) ? document.all['<%=pnlUsrwise.ClientID %>'] : document.getElementById('<%=pnlUsrwise.ClientID %>');
obj1.style.display=(obj1.style.display=='none') ? 'inline' : 'none';
</script>
</asp:Content>
</pre>
the code which is in the script has to be run when this page is loaded. but this does not happen??
|
|
|
|
|
Try writing it as a function and registering it with the body onload event. More likely than not the script is running but the page hasn't finished loading yet.
|
|
|
|
|
How To Authenticate Clients to printing From Server Using ASP.NET C#
hello
i have one server in which the printer is installed, the clients are printing from server. So, i want to authenticate those clients before printing using asp.net?
means if in server client architecture of any company,
clients are printing from any type of application like
word, power point, excel or even from web browser,
i want to stop them to printing unlimited prints,
one asp.net application is currently running, clients logins are also available in it, so using those login i want to give rights for printing.
i am talking about system printing from any application and authenticate them using asp.net application.
if it's possible?
can anyone give me idea or code for print authentication from client computer to server?
|
|
|
|
|
What part of "ASP cannot control a printer" was hard for you to understand?
|
|
|
|
|
authentication for system printing using asp.net
|
|
|
|
|
Repeating the same action and expecting a different result is the first sign of madness.
|
|
|
|
|
|
Hi, i have written one windows sevice and i have been build that service.
An exe file is generated for that service. using installutil.exe that file has been installed. but the service is not showing under Administrtaivetools->services.
Is the service not created? or any other reason.
I am getting succesful message in command prompt after using istallutil.
please help me regarding this.
G. Satish
|
|
|
|
|
You need to create installer class also. Did you ? Also this question has nothing to do with ASP.NET.
|
|
|
|
|
Actually i am new to windows service. This is my first windows service. I dont know how to create installer. Can you explain briefly how to do this?
G. Satish
|
|
|
|
|
hi Satish,
this is not the correct board to search for the answer.
Better, post this question in C# board
happy coding
|
|
|
|
|
How To Authenticate Clients to printing From Server Using ASP.NET C#
hello
i have one server in which the printer is installed, the clients are printing from server. So, i want to authenticate those clients before printing using asp.net?
can anyone give me idea or code for print authentication from client computer to server?
|
|
|
|
|
You totally missed the concept. AFAIK, ASP.NET can't print anything. It's handled by the browser where the pages are displayed.
|
|
|
|
|
hello brother navaneeth
i am talking about print authentication using asp.net
means if in server client architecture of any company,
clients are printing from any type of application like
word, power point, excel or even from web browser,
i want to stop them to printing unlimited prints,
one asp.net application is currently running, clients logins are also available in it, so using those login i want to give rights for printing.
i am talking about system printing from any application and authenticate them using asp.net application.
if it's possible?
|
|
|
|
|
As I said, you can't do this with ASP.NET. It is a server side scripting language which emits HTML tags to the browser. You can't set permissions to a printer using ASP.NET. Also the printing is handled by your browser, not ASP.NET. ASP.NET just renderer the tags into appropriate HTML and sends to browser via HTTP/HTTPS protocols. Buy a beginner level ASp.NET book and learn how it is working.
|
|
|
|
|
thank u for giving me sugession
but i want to system programming using asp.net
it is possible
but u r saying that it's not possible
but if u don't know, doesn't matter.
but if u can find solution please give me.
and if also possible using VB or VB.Net, then if u having idea then give me ,
& last thing i am working on expert level programming, just for ur knowledge, so i don't need to review asp.net beginner book.
thank u for giving me replies.
|
|
|
|
|
ashish bhakhar wrote: hank u for giving me sugession
You are welcome.
ashish bhakhar wrote: but i want to system programming using asp.net
it is possible
Nope. ASP.NET is for web development.
ashish bhakhar wrote: & last thing i am working on expert level programming, just for ur knowledge, so i don't need to review asp.net beginner book.
That sounds strange. If you were an expert level programmer, you won't post such an odd question.
|
|
|
|