|
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
|
|
|
|
|
That's going to cause you problems - you'll need to either store the dataset somewhere or rebuild it on every postback. I've never worked much with typed datasets, so i don't know about marking it serializable, but it's kinda funny, as an ordinary DS is serializable by default...
And i think i'll just stay itchy in that case...
|
|
|
|
|
Hi there,
Do you get the error on postback? If this is the case, IMO there are two options that you may consider:
+ Persist the length of the QuestionGroupRow object instead of the object itself in the ViewState so that when the page posts back you can re-create the control hierarchy in the user control.
+ Disable the ViewState of the repeater control, and bind the datasource to the repeater every time the page is visited.
|
|
|
|
|
Thanks, ill try both suggestions and see what kind of sucess I get!
muchos gracias
Current blacklist
svmilky - Extremely rude | FeRtoll - Rude personal emails | ironstrike1 - Rude & Obnoxious behaviour
|
|
|
|
|
Hello,
Is there any way to get specific records from XML file using ASP.Net with VB.Net?
There are two XML files one for categories and other for products. I want to get products against specific category.
Or can we use "Select Query" in XML files?
If you know the solution then please let me know.
Bye,
-- modified at 8:16 Tuesday 25th April, 2006
|
|
|
|
|
How are the two files linked?
Xml forum might be a better place to ask...
|
|
|
|
|
|
Does anyone have any info on whether it is possible to modify postback info client side? I have added some javascript functions for ordering a select (listbox) control but cannot sucessfully change the postback to reflect these changes.
Is Ajax the only way to go? I'd rather not have to create pages to process the data if possible, I just want to persist the changes!
Definitely a PEBCAK! (Problem Exists Between Keyboard And Chair) www.FruitBatInShades.com
|
|
|
|
|
Maybe I'm just slow this morning but I'm not sure what you mean. Do you need to select a new item in the listbox and have it update a datagrid(or other control) immediately? If so you can either use Ajax (I'm not sure how to implement yet) or you can make the listbox a server side web control and tell it to postback (using AutoPostBack) on item changed.
-Richard
|
|
|
|
|
I think what's being asked for is a way to postback to the server changes made to the order of items in a listbox via client-sode Javascript.
One way is to include an asp:Textbox with Viasible=False (this renders on the page as input type="hidden") - you can then use your JS functions to update the value of this with the values of your listitems when re-ordered (seperated by commas, maybe) and this will then be sent to the server on a PostBack, where you can read in and parse the textbox.text to get the new order.
Hope that helps
Phil
|
|
|
|
|
Actually, of course, it doesn't have to be an asp;Textbox Visible=false - it can be an ordinary input type="hidden" field, and it's value can be read on PostBack by a simple Request call...
P
|
|
|
|
|
i need frequently asked interview questions on asp.net with answers and suggestions can any body tell me where to find them
thanx
|
|
|
|
|
There is no substitute to actually understanding the subject - it will also help you should you actually get the job!
"On two occasions, I have been asked [by members of Parliament], 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able to rightly apprehend the kind of confusion of ideas that could provoke such a question."
--Charles Babbage (1791-1871)
My: Website | Blog
|
|
|
|
|
Reading a book or two on ASP.NET will give you all the information and answers you need for your interview. You can not cheat to get a job.
|
|
|
|
|
HI
How can i do this
can any one suggest me
If the client enter in the textbox
"some_some@123.com"
I want print after the "@" chatter in the label
123.com
asdfasdfasdfasdfasdfasdfasdfasdfasdfasdf
|
|
|
|
|
With what technology? C#, VB, JavaScript?
--------------------------------------------------------
My development blog
Q:What does the derived class in C# tell to it's parent?
A:All your base are belong to us!
|
|
|
|
|
ASP.NET Using VB
Thx for reply
asdfasdfasdfasdfasdfasdfasdfasdfasdfasdf
|
|
|
|
|
You can simply use:
TextBox.Text.SubString ( TextBox.Text.IndexOf ( "@" ) + 1 )
--------------------------------------------------------
My development blog
Q:What does the derived class in C# tell to it's parent?
A:All your base are belong to us!
|
|
|
|
|
Thx
asdfasdfasdfasdfasdfasdfasdfasdfasdfasdf
|
|
|
|
|
Hi Friends,
I am using 2003 server and my IIS is running on it.
When i define a website on IIS and try to browse it.
Message come
"No Valid XML found in the message"
Does any one know about this behaviour.
Naveed Kamboh
|
|
|
|