|
why do we make our own functions in dotnet
|
|
|
|
|
rajni_nanu wrote: why do we make our own functions in dotnet
This is not only about DotNet.
Please Read this
Functional programming[^]
|
|
|
|
|
rajni_nanu wrote: why do we make our own functions in dotnet
Microsoft is so stupid and they can't ship all the function that we need with .NET. So we end up with writing our own functions.
|
|
|
|
|
Just because to make ourself more easy programming way.
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.
www.aktualiteti.com
|
|
|
|
|
Why is this forum flooded with morons at this time, every day ?
This question has nothing to do with ASP.NET, and has no real answer, apart from, buy a book and read it before you start asking questions. It's obvious you have no idea about even the rudiments of programming. On what basis could we hope to give you an answer you could understand ?
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Hi Every body,
By the Grace of God i create my first Website and i published on Net and i create Database also
My Question is it is necessary to have customError tag in web.config because when i type my website URL i got is error that customErrors mode="Off" and one more thing in web.congif only i write the Configuration setting like this
<configuration>
<appSettings>
<add key ="Connect" value="server=.; database=Ckom; uid=sa; Password=;" />
</appSettings>
<connectionStrings/>
in server i change the database name, userid,password and server="localhost" i don't know wether this is right or wrong i am very much confuse with server
please help me so that i can see my website
again i will that i got the message
Server Error in '/' Application.
below this they show customError mode="off"
please help me by telling excat what are the changes i have to made in web.config file on the server
|
|
|
|
|
Hi,
is your database located at the the same sever as the ASP.NET application. If yes, localhost for your server is right, if not you have to change this.
Best approach for the error-issue would be to use a custom error page that will be displayed whenever an error occurs. Best would be to change the mode to "remoteOnly". Then connect to your server via RDP to get a detailed information about the error (exception type, stack trace etc.)
Regards
Sebastian
|
|
|
|
|
Thanks For Your support
Can You give correct syntax of CustomError what i have to write on web.config file
thanks again
|
|
|
|
|
|
The error you're seeing, is telling you that you can't see the real error, because of the web.config settings. So you need to insert the code it's telling you to insert, which will allow error messages to be shown to a remote client. You'll then get an error telling you the actual problem with your site.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Error handling can be done on Page Level, by overriding the onerror() function.
Can this be done only on master page ?
I mean, can we add an error handler on master page, rather than adding it on every single page ... ???
Apurv
“Never trust a computer you can’t throw out a window.”
(Steve Wozniak)
“There are only two industries that refer to their customers as ‘users’.”
(Edward Tufte)
|
|
|
|
|
I am not sure that this is true. But, you can handle errors at the top level in the same place that the application start and session start events are handled.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Christian Graus wrote: top level
Christian Graus wrote: session start events
that means global.asax ???
Apurv
“Never trust a computer you can’t throw out a window.”
(Steve Wozniak)
“There are only two industries that refer to their customers as ‘users’.”
(Edward Tufte)
|
|
|
|
|
i have used the dropdownlist with data from database Whenever i run my application it always shows the first item of the dropdownlist as my selected item.How can avoid this Plz hel me?
|
|
|
|
|
Bind DropDownlist inside !Page.IsPostBack
<br />
if(!PageIsPostBack)<br />
{<br />
}
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.
www.aktualiteti.com
|
|
|
|
|
your question makes absolutely no sense. 'every time you run the application' ? If you mean every time you do a postback, then the other answer you got is correct. If you mean what you said, what did you expect it to show ? If you want to show something else, then you need to set the selected index. Perhaps if you explain yourself better.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
hi
Respected Sir
I Want To Know How To Write Crystal Reports In VisualStudio2008 Using ASP.Net+Csharp Please Send Me The Procedure how to
Start The CrystalReports And How To Write The Procedure I Don't Know How To Open From Vs2008 Please Answer My Query
From
Lakshman
|
|
|
|
|
Hello dear,
I want to use RecordSelectionFormula in to Sql Server Reporting Sevices 2005 in code behind file somthing like we use in Crystal Report.
Please Help me..
Thanks,
Nilesh..
|
|
|
|
|
hi,
i hav aproblem with crystal report in asp.net.when i display report with crystalreport viewer that its allignment change to central.but at design i allign it to left.how to slove this problem plz help me.
|
|
|
|
|
Hi guys,
I have a textbox in that i have mentioned autopostback [property true and its event(ontextchanged") i am executing my code bolck is there name already exist or not in database...,
but this ontextchanged event getting fire on my button click event only...,
its not excuting the textchanged place...,
is there anything i want to add in that place to fire the event?....,
this my sample code bolck:
<asp:textbox id="txt_section" cssclass="textboxGQ" runat="server"
="" ontextchanged="txt_section_TextChanged" autopostback="True"><asp:label
id="lbl_avail" runat="server" text="">
protected void txt_section_TextChanged(object sender, EventArgs e)
{
AdminDAL objadmin = new AdminDAL();
DataSet DS = new DataSet();
DS=objadmin.DAL_Availabilty(txt_section.Text);
if(DS.Tables[0].Rows.Count>0)
{
count=Convert.ToInt32(DS.Tables[0].Rows[0]["sectname"].ToString());
}
if (count > 0)
{
lbl_avail.Text = "Section Name Already Exists";
}
else
{
lbl_avail.Text = "Section Name Available";
}
}
Thanks & Regards,
Member 3879881,
please don't forget to vote on the post
|
|
|
|
|
I am astounded by the constant stream of people stupid enough to think that an entire web page reloading whenever they press a key, is a good idea.
You can handle a javascript event which will fire whenever a key is pressed. You can then write AJAX code to do this check if you want to. I think it's a dumb idea. What if what they have typed half way through exists, but they want to type some more ?
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
I agree with you, however I am sure you have seen at least a website full of UpdatePanels that are doing partial post backs and then the developers that don't understand the Page life circle write sh*t code that makes the whole application unmaintainable.
So if they cannot write their own JavaScript methods and being able to handle the callback of the webservices, maybe is better to do a whole postback... (very sad... but true).
having said that... that's what (and how) I would do (following Christian approach)
I would recommend you write your own javascript handler and call a webservice using the microsoft AJAX wrapper.
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="YUITable._Default" %>
<%@ Register TagPrefix="csl" Assembly="YUITable, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" Namespace="YUITable" %>
<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Namespace="System.Web.UI" TagPrefix="asp" %>
<html>
<head runat="server">
<script type="text/javascript">
var tbMaster_SelectedDataChanged = function ( dataTable, selectedData )
{
YUITable.LoremIpsum.GetDataWithParameters (0,1,2,onSuccess, onFailed );
function onSuccess ( result )
{
var childTable = document.getElementById ( "tbChild" ).childNodes [ 1 ];
if ( dataTable )
{
var data = Array.parse ( result );
CreateDateTable ( "tbChild", tbChildheaders, data );
}
}
function onFailed ( )
{
alert ( "error" );
}
};
</script>
</head>
<body class="yui-skin-sam">
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager" runat="server" >
<Services>
<asp:ServiceReference InlineScript='true' Path="LoremIpsum.asmx" />
</Services>
</asp:ScriptManager>
</form>
</body>
</html>
Ricardo Casquete
|
|
|
|
|
I would recommend you write your own javascript handler and call a webservice using the microsoft AJAX wrapper.
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="YUITable._Default" %>
<%@ Register TagPrefix="csl" Assembly="YUITable, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" Namespace="YUITable" %>
<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Namespace="System.Web.UI" TagPrefix="asp" %>
<pre>
<html>
<head runat="server">
<script type="text/javascript">
var tbMaster_SelectedDataChanged = function ( dataTable, selectedData )
{
//Perform the Call to the WebService passing the values of the first Selected Row values as arguments
YUITable.LoremIpsum.GetDataWithParameters (0,1,2,onSuccess, onFailed );
//Handling the Result of the WebService call
function onSuccess ( result )
{
var childTable = document.getElementById ( "tbChild" ).childNodes [ 1 ]; //The Real data is the Second Child
if ( dataTable )
{
var data = Array.parse ( result );
CreateDateTable ( "tbChild", tbChildheaders, data );
}
}
function onFailed ( )
{
alert ( "error" );
}
};
</script>
</head>
<body class="yui-skin-sam">
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager" runat="server" >
<Services>
<asp:ServiceReference InlineScript='true' Path="LoremIpsum.asmx" />
</Services>
</asp:ScriptManager>
</form>
</body>
</html>
</pre>
Ricardo Casquete
|
|
|
|
|
Hi all,
On asp.net page load i am calling a javascript function on window.onload function.
In this function i am assigning some values to hidden field and when i am trying to read
this value from page behind it return "".I am trying to access the hidden fiedl value
on page load.
string value= hiddentxt.value;
but value returns "". Will anybody help me to solve the problem?
Thanks
People Laugh on me Because i am Different but i Laugh on them
Because they all are same.
|
|
|
|
|
Are you checking the value on postback, or on the first load of the page ?
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|