|
Yes, that looks runnable. But you are catching any exception that might occur and totally ignoring it. When that happens, your code will crash somewhere else along the line, and you will have no clue why it did...
---
b { font-weight: normal; }
|
|
|
|
|
Yes I got that. And thanks for the reply.
-L
|
|
|
|
|
Hi
Can any body tell me about Serializable() in vb.net/ASP.net and what's is advantage and disadvantage.If any one know out link .Please send me.
Regards
Rajesh
rajesh
|
|
|
|
|
|
Hi All,
We have a web-service based application written in C# and running on IIS, pretty standard ASP.NET 2.0 stuff. We also have a problem, that occasionally the Application terminates for no apparant reason, calling Application_End on its way out.
Can anyone suggest what causes an application with several sessions open to terminate abruptly/has anyone seen this before? I don't believe this can be due to time-outs.
Thanks for any help.
Regards,
Rob Philpott.
|
|
|
|
|
Hi there,
Looks like your application is recycled, if this is the case, you might want to check a couple of things:
+ Does your app edit the bin folder or its subfolders and contents?
+ Does your app edit the web.config file?
+ Do you have any other application that may make changes in the file system of the application?
|
|
|
|
|
Hi, thanks for the response.
Nothing changes in the bin folder, nor does the web.config change. The filesystem remains untouched too I believe as most data is handled by Sql Server.
I did stuble across a setting in IIS under the application pool which automatically 'recycled' my application every 29 hours. What the purpose of this can possibly be I'm unclear - it seems to be like adding a 29 hour fuse to the app. Anyway, I've turned that off and we'll see how things go.
Thanks again for the help.
Regards,
Rob Philpott.
|
|
|
|
|
Okay so I added a grid view to my web page.
But, I dont see the grid object in my code behind so I can play with it.
Does anyhow know how to get the the IDE to define the control in the code behind?
Nick
1 line of code equals many bugs. So don't write any!!
|
|
|
|
|
nevermind. its there. they just hide the definition. how ignorant
1 line of code equals many bugs. So don't write any!!
|
|
|
|
|
I have a project I'm working on in ASP.NET but I'm having problem in the coding of my loging page.I have UserId and Password in my loging page.If the user iput his UserId and Password in the loging page on click of the OK BUTTON then, the login page should compare it with UserId and Password in the Database. if it matches then it should take u to the nextpage but if not he should Throw an Error message INVALID LOGIN. This Is just a normal User Login in ASP.NET .Thanks
Ademola
|
|
|
|
|
|
All I want to do is just like the way we login here as a user.If u input wrong userId and password u will not be able to login but if your userId and password
are correct then u will be login as a user.I will be using SQLSERVER2000 as my batabase.Hope u now understand.Thanks for ur responds
Ademola
|
|
|
|
|
Is this only a declaration of intent, or do you have a question?
Have you tried anything towards building this? Anything at all? Like database model? Made a login form? Written any code?
Who is this "u" person you are talking about all the time? If you write proper english you will be taken more seriously.
---
b { font-weight: normal; }
|
|
|
|
|
All I need is just the code for login.I have created my table in the database and the fields are UserId And Password.Also I have created my form and my textbox are UserId,Password and OK Button.Now I want to login from my form using a specified username and Password that will be verify in the databese.If the userId and the Password is not match with that of the record in the DataBase then it should throw an Error message Invalid Login if It matches it should go to the next page or specified page in the programme.I'm using SQLSERVER2000 as my Database.This program is ASP.NET program.Thanks for the responds
Ademola
-- modified at 12:16 Tuesday 25th April, 2006
|
|
|
|
|
build a SQL statment that select count( UserId )where UserId=the input userId and Password=inputPassword
using Ado.net connect on DB And Retrive Data if the statment returned 1 then set a session with value =1 and check on this session along the flow
|
|
|
|
|
Please I will be glad if u can u give the code.Thanks for the respond
demola
|
|
|
|
|
Hi everyone,
I want to release the memory back to the server immediately or explicitly free up memory, should I set DataSets/DataViews to null after use or should I use .Dispose() method? Or both?
Thanks. I appreciate any help.
|
|
|
|
|
Hi there,
It's a good practice to release the resources back to the system, however if you want it immediately, then i'm afraid you cannot. To some extend, you may use the Collect method of the GC[^] class to force the garbage collection. You can read more about this in the documentation Garbage Collection [^]
|
|
|
|
|
Hi Guys!
need Some Help...
i m developing an Asp.net application in c# which download mails from POP3..
the application is working good but when we close the browser..
the w3wp (IIS Worker Process) does not end and due to which if we refresh the page 4-5 times an out of memory exception is thrown. but if we end that process manually it works fine...
i found outsome where to set the IIS Applicationpool Health monitoring idle Time property to set to 2 or 3 min.. to end that process.. but it affects all the application running in IIS
i only want to end that process for my application ...
can we do it through code.. or some other procedure..
can any one help me out for what to do..
Abhinav
|
|
|
|
|
Is it possible you are leaving something or some object open and that is what is causing your problem? I would suggest finding out why it is staying open not just trying to close it manually.
-Richard
|
|
|
|
|
Hi friends
Iam trying to assign values to web date chooser control inside update panel but when the update panel postback it throws win32 exception .
I wants to assign values to webdatechooser control without the whole page getting postback.
Can any one helps me to go further ?
Muthukumarasamy.R.k
Odessa Technologies
|
|
|
|
|
Since you mentioned an UpdatePanel I'll assume you're refering to Atlas in ASP.NET 2.0. If that is the case I would first suggest contacting infragistics (whose support is ok) and see if they have got this same type of thing working.
While you wait for their reply you could always make a simple test page with just the webdatechooser and an update panel to see if you can get the page to work with just those controls.
-Richard
|
|
|
|
|
Hi All,
This is a bit of a complex one, appologies in advance if this post ends up being long.
I am creating a dynamic questionnaire system, which is data driven, is split across pages and has 4 different types of question (SingleSelect, MultiSelect, SingleLineTex, MultiLinetext) each created as a UserControl. Each page of the questionnaire can have multiple groups of questions (called a QuestionGroup), and each question group can have multiple Questions.
The problem im facing, in brief, is that when the page is posted back the data for the questions within a group is no longer available. Im tearing my hair out with this, as winforms dev is my normal thing and not knowing how to do something in web development is mighty frustrating!!
Ill try to be more detailed. I have a web user control called QuestionGroupControl , roughly defined as follows:
<%@ Control Language="c#" AutoEventWireup="false" Codebehind="QuestionGroupControl.ascx.cs"
Inherits="BroadSystem.QuestionnaireWeb.Controls.QuestionGroupControl"
TargetSchema="http://schemas.microsoft.com/intellisense/ie5"%>
<asp:Table Runat="server" ID="QuestionGroupTable" CssClass="questionGroup" CellPadding="0"
CellSpacing="0">
<asp:TableRow>
<asp:TableHeaderCell CssClass="questionGroupHeader">
<%# QuestionGroup.Text %>
</asp:TableHeaderCell>
</asp:TableRow>
<asp:TableRow HorizontalAlign="Left">
<asp:TableCell CssClass="questionGroupBody">
<asp:Panel id="QuestionGroupPanel" runat="server"></asp:Panel>
</asp:TableCell>
</asp:TableRow>
</asp:Table>
QuestionGroupPanel is where I dynamically populate each question within that group (this can be one of 4 controls as defined above). Here is the code im using in the code behind of the QuestionGroupControl :
protected override void OnLoad(EventArgs e)
{
foreach(QuestionnaireDataset.QuestionRow question in this.QuestionGroup.GetQuestionRows())
{
string control = question.QuestionTypeControl;
QuestionnaireBaseUserControl ctrl = (QuestionnaireBaseUserControl)LoadControl(control);
ctrl.Question = question;
this.QuestionGroupPanel.Controls.Add(ctrl);
}
base.OnLoad (e);
}
And for clarity this.QuestionGroup is defined as follows:
public QuestionnaireDataset.QuestionGroupRow QuestionGroup
{
get
{
return questionGroup;
}
set
{
questionGroup = value;
}
}
You can see im using a typed dataset, and within my aspx page this is the relevant section.
<asp:Repeater id=Content Runat="server">
<ItemTemplate>
<BS:QuestionGroup ID="QuestionGroup" runat="Server" QuestionGroup='<%#Container.DataItem%>' />
</ItemTemplate>
</asp:Repeater
I, of course, assign my QuestionGroup datatable as the datasource for the repeater on the page.
The error I get is within the OnLoad override in the QuestionGroupControl - it says (quite rightly) that on this line:
foreach(QuestionnaireDataset.QuestionRow question in this.QuestionGroup.GetQuestionRows())
that this.QuestionGroup is null.
Im 99% sure its the order in which im building the controls up, has anyone got ANY pointers for me?
Current blacklist
svmilky - Extremely rude | FeRtoll - Rude personal emails | ironstrike1 - Rude & Obnoxious behaviour
-- modified at 9:38 Tuesday 25th April, 2006
|
|
|
|
|
Um, this might be a bit simplistic and i'm not understanding, but how are you persisting your questionGroup variable across postbacks. Unlike winforms, the questionGroup variable that you wrap with the public property will not automatically be persisted.
Also, and this is just nit-pickery, but public properties on aspx pages is not particularly good practice - particularly with the new 2005 project structure.
(BTW, seeing the current blacklist makes me really want to try and get on it... It's like an itch that i really shouldn't scratch...
|
|
|
|
|
Thanks for the reply... I should have added that this is .NET 1.1 not 2.0
I am not persisting the questionGroup variable, and I think this is at least part of the issue. I tried storing it in ViewState originally but I get an error saying that an object of that type needs to be marked as serializable or have a type converter defined...as the code (for a typed dataset) is autogen'd I cant add either of these!
As for the nit-picky-ness that property was supposed to be protected, and is there for syntactic sugar - its not part of any real functionality.
As for the blacklist, feel free to be rude, abusive or insulting and you'll be added in a second The downside is that I answer about 100x more questions here than I ask. (in fact this is the first time I ever remember asking a question and I have about 800 posts!) A position on the list ensures I never answer your questions!
Current blacklist
svmilky - Extremely rude | FeRtoll - Rude personal emails | ironstrike1 - Rude & Obnoxious behaviour
-- modified at 9:22 Tuesday 25th April, 2006
|
|
|
|