Web Forms :: Setting Up A Mainform Subform Effect?

Mar 30, 2010

First let me say that I am new to ASP.net and I come from a Microsoft access background hence my post is in Access terminology i.e Main form / Sub Form. I am not sure what the correct terms to use for ASP.net are and this might hamper my explanation a bit but here goes.

In Microsoft Access (MC) you can create a main form and then drag and drop a subform onto it and the application automatically knows how to pass the primary key from the mainform to the foreign key on the subform when a record is created. So my question is how can I get the same effect in ASP.NET.

Let's say I am using the Surrogate Key approach (autonumber primary key) and I have a table called "Customers" and another table called "Address" where one customer can have many addresses.

1. How can I set it up so that when I am entering multiple addresses for a customer the application knows which primary key of which customer to use?

2. What are the best controls to use for this (Gridview, Formview, etc)

3. Building upon the above. Lets say i select ONE customer from a list of customers and I have many different subforms how does the application know what is the primary key to use as I update information on this customer in the various tables.

I know this is a lot I am asking, or it is simple and it is just a lot in my mind as I am new.

View 2 Replies


Similar Messages:

Visual Studio :: CSS Setting Not Taking Effect?

Feb 14, 2010

When I change the background image listed in a CSS class it does not always show up, rather the old image does, even though the old image file does not exist in the web site. Is there some other place where VWD stores the old image outside of the website?

View 2 Replies

AJAX :: The CaseSensivity Setting On The ComboBox Has No Effect

Feb 9, 2010

When data is stored in my database as Ex: normal, and the data that the Combox is bound to has Ex: Normal, the mismatch in case is throwing an error when the form opens. The CaseSensivity setting on the ComboBox has no effect on this and it was the same with the asp List Box. We sometimes have data imported that has incorrect case and causes this problem.

View 4 Replies

Web Forms :: Disable Grdiview From Subform Shown In The Frame?

Apr 13, 2010

In my web application i need to show a page in the frame by using some options.Successfully i have done it. But from the sub form which shown in the frame, from it on a button click I need to disable or enable the gridview in the main page. How can I do it?

View 1 Replies

Disable Grdiview From Subform Shown In The Frame?

Apr 13, 2010

In my web application i need to show a page in the frame by using some options.

Successfully i have done it. But from the sub form which shown in the frame, from it on a button click I need to disable or enable the gridview in the main page. How can I do it?

View 4 Replies

Web Forms :: GridView Row Fading Effect

Feb 22, 2011

here is what i am looking for...

how do i highlight the gridview control row after i am done updating with the row?

[Code]....

View 3 Replies

Web Forms :: Add Water Mark Effect To Image?

Mar 11, 2010

how to add water mark effect over uploading image...

View 2 Replies

Web Forms :: RTL Effect Not Proper On Menu Control?

Dec 23, 2010

I am using an ASP.net menu control on my page. The page direction is changed using "dir" attribute of body/table containing menu control. Every thing works fine but the drop down position of menu control remains on the right side instead of left if changed to rtl. Can anyone suggest way out?? I am more interested in server side script instead of CSS.

View 2 Replies

Web Forms :: How To Create Water Ripple Effect

May 7, 2015

how to create Water Ripple in asp.net

View 1 Replies

JQuery :: How To Open A Subform Model Form,Sub Window Form Using Jquery That Save The Data Ajex

Sep 15, 2010

how to open a subform model Form,Sub Window form using jquery that save the data ajex

View 4 Replies

Web Forms :: Changes Made To Default.aspx Not Taking Effect?

Nov 18, 2010

We made some changes to the default.aspx page our website, but those are not taking effect. If changes are made to pages in sub-folders it just works fine. Only that the default.aspx page is acting weird even though they are just changes to the markup.

View 4 Replies

Web Forms :: LightBox Effect On Master And Content Page

Feb 16, 2010

I am developing a project which has a master page and content page.In my content page I was using a gridview query from database with image display as an image button, when user click on the image in the gridview it will trigged a lightbox through Javascript. I follow the tutorial from the link in the following link [URL]

Everything works great when its on a stand alone page , however, as soon as I put the GridView in my content page then click on the image from the image button in the GridView I will be resulting the following error. Server Error in '/Photo_Master' Application. Invalid postback or callback argument. Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page nableEventValidation="true" %> in a page. For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.

Here is my code, I noticed OnClientClick = "return LoadDiv(this.src);" in the following image button will return false to prevent postback, however, it will only work if this is a stand alone page but not in the content page that links to a master page. I had tried the following approaches, but none of them works.

1.) EnableEventValidation = "false" --- Page is not going to break at least but No Lightbox pop up.

2.) Added PostBackURL ="javascript:Void(0);" as the properties of <asp:imagebutton> in the GridView - Did not work.

*PS - I had tried to put my lightbox pop up page on either master or content page tried different ways , however, nothing works. My goal is to have the PhotoGallery display in GridView where image display as an ASP.net imagebutton control under the content page, when user click on the imagebutton the lightbox effect will show.

[Code]....

View 2 Replies

Web Forms :: Page Is Shaking By Each Callback, Scrollbar Effect?

Jun 25, 2010

When the page is loading i have the problem, that the Page shakes a little to the right and then to the left. Thatīs maybe because of a scrollbar effect in the browser.

I tried to fix a vertical scrollbar, but it does not work.

Take a look at the site: [URL]

There the pages in progress are available. When you hit the Navigation bar, the Page reload is shaking.

View 1 Replies

Web Forms :: Real - Time Control Effect Via Code Behind

Feb 19, 2011

I have two checkboxes on web form chkYes and chkNo. When I click either I want the other one to be un-ticked. I have implemented the following in code behind;

[Code]....

Problem is ticking one tick has no effect on the other. What is the reason and how can I make it work?

View 3 Replies

Web Forms :: Seeking A Way To Improve The UI Effect Of Nested Master Pages (or Equivalent)?

May 13, 2010

I have constructed a few web pages that are constructed from Nested Master Pages. Here's an example of what they look like: http://pelalusa.com/Downloads/Public/NestedMasterPageExample.JPG

The rectangular area on the right side is where the Content Pages are displayed. Everything else is one of the two nested Master Pages.

To navigate to a particular Content Page the user will navigate down the treeview on the left, then pick an "Activity" and then pick a "Major Task". When this happens then a Page Redirect occurs to the appropriate Content Page.

It works but the page reload leads to a terrible looking UI. What would be MUCH better is if I could somehow just change what appears in the Content Page area. Is there a way to do this? If it matters, every page has an AJAX UpdatePanel on it.

View 1 Replies

Web Forms :: How To Make This Effect: That Hyper Link(HOME) Is On That Dark Blue Background

May 9, 2010

Please check this website: [URL]My question is that how can I make this effect: that hyper link(HOME) is on that dark blue background. How can I do it?

View 3 Replies

ViewState, QueryStrings And Their Effect On SEO?

Oct 7, 2010

I'm a novice ASP.Net/C# programmer, and had an experience only of a couple of projects during college and a couple of freelancing projects when I was recruited by a startup company to build their ASP.Net based website. I've just abut completed the website, and now since the company is not able to find a worthy enough SEO, I'm expected to do our site's SEO as well(which is a totally new experience for me). Did I mention that I'm the only Web Developer here?So, now as you'd expect a novice programmer having no concern for future SEO needs, I built up the site without giving due consideration to any of the SEO enhancement techniques.

The Problems:

ViewState - When is it required? Is it really required if I'm not creating any controls on the fly? I'm using DataControls though. And the website(the pages visible to the user not the CMS), is purely information based. Also, if I disable a control(ex: DataList)'s viewstate, will the viewstate of controls inside it also get disabled?(which is what I'd like actually)QueryStrings - Now comes the toughest part, I've used Query Strings to the extent that you can say that the website is QueryString driven, which unfortunately enough is not a good thing for SEO. To make matters worse, the QueryStrings for some pages are not uniform. For ex- In some cases the querystring may have variables A, B, and C, while in other cases it can have variables M, B, C and probably not all the three variables in some cases. Now, I know that I'd have to do url rewriting but these query strings have dynamic data fetched from the database tables of size more than 10,000 rows. So would I have to create functions for url rewriting and use regex to separate wheat from whaff?

View 1 Replies

Use Jquery For Sliding Effect?

May 21, 2010

I am new to javascript and jquery. I have written some javascript code for some client validation.

document.getElementById(spnError).style.display = 'block';

This is how I am showing a span if there is some validation issues in the form. I want to use Jquery to show this span. I would like to slide it down slowly.

View 2 Replies

Localization :: Cannot Fix Or Limit User To Setting PC Regional Setting To UK

Dec 23, 2010

I have develop a web application. I have put my web application in my server and user can access from any location.

My server regional and setting is English (US). Now my problem is

1) When user access to my system and his pc setting is English (UK), it will prompt and error

and after i debug i suspect it is because of Datetime conflict (dd/MM/yyyy and MM/dd/yyyy)

2) I cannot fix or limit my user to setting his/her pc regional setting to UK

So what can i do in my web application solve this issue?

(Can i write any code in my client side (.aspx) to convert or do standardization to US)

View 2 Replies

C# - Changing AppSetting Does Not Have Effect On Application?

Dec 11, 2010

In one of the application i am developing on ASP.Net. In this application we have been using lots of AppSettings. In the initial development we used ConfigurationManager.AppSettings[""]. but as development progressed we created a utility class in which we would define a static property for each AppSettings. Then issues started to come. Now when application is deployed on testing server and we change any settings on AppSettings it does not have any effect unless we restart the IIS. here is the following code snippet i am using to create static property of AppSettings.

public static class AppSettingsUtil
{
public static string Log4Net
{
get
{
return ConfigurationManager.AppSettings["Log4Net"];
}
}
}

View 2 Replies

Css - Server Button Mouseover Effect

Jan 17, 2011

Look at the reply and contact buttons @ [URL]how would I get that effect to my buttons (Dont need the icons, just the blue color, borders and a mouse over effect)

View 2 Replies

Jquery - GridView Row Fading Effect

Feb 7, 2011

EDIT:

here is what its generating at runtime after i debug the code

<script type='text/javascript'>
$('#ctl00_ContentPlaceHolder1_tabControl_gv_ctl03').show().fadeIn(8000).fadeOut(90000)
</script>

ere is what i am looking for...

how do i highlight the gridview control row after i am done updating with the row?

<asp:GridView runat="server" CssClass="DataWebControlStyle">
<AlternatingRowStyle CssClass="AlternatingRowStyle" />
<RowStyle CssClass="RowStyle" /> <
HeaderStyle CssClass="HeaderStyle" />
<SelectedRowStyle CssClass="SelectedRowStyle" />
</asp:GridView>
protected void gv_RowUpdating(object sender, GridViewUpdateEventArgs e)
{
//update....
}

View 2 Replies

AJAX :: Using Textbox Watermark Effect

Aug 31, 2010

I have been trying to use ajax in my asp .net website developed in 3.5 sp1 2008! The problem is I can see tool kit controls in my tool box but i can not use the controls. like i was using the text box watermark effect but when i run the website the text-box does not show effect and there is no option in text box to add extender. there is only remove extender option. I have code:

<asp:ScriptManager ID="ScriptManager2" runat="server">
</asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>

First name:

<asp:TextBox ID="TextBox1" CssClass="unwatermarked" Width="150" runat="server" />
<ajaxToolkit:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender1" runat="server"
TargetControlID="TextBox1"
WatermarkText="Type First Name Here"
WatermarkCssClass="watermarked" />
</ContentTemplate>
</asp:UpdatePanel>

View 4 Replies

C# - Importing Name Space Without Use Effect Performance?

Jan 16, 2010

Is there any deficiency performance if import a lot of name space in Web.config or in every single cs file while it's not necessary to be in all classes ?

View 1 Replies

.net - Effect Of Implementing IDisposable On Classes?

Aug 2, 2010

I running my static analysis checks again and I'm getting 100s of nags on

Label foo = new Label(); //Where this is an ASP.NET web forms label

Do I need to call dispose on these web forms labels? Also, how late in the page life cycle is it safe to call Dispose on these? If a class implements IDisposable, but doesn't actually do anything in it, is there any harm in not calling dispose?

(Yes, I have already read that closing connections is a good thing and using blocks are a good thing, too.)

DataSet is another class that seems to implement IDisposable for inexplicable reasons.

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved