Latest developer linksBookmark and Share
 
HomeThis WeekTop MonthTop AlltimeSearchRegisterFAQ
  
 
Submit Your Link
Please login to submit your Link
 

button dissapers

Posted: Jan/18/2011   By: nikhil   Points:15   Category: .NET  - ASP.Net    Views:16   Vote Up (0)   Vote Down (0)    

Hello.

I need an advice. I have a form with 3 buttons. When I setup the Data Connection for the all 3 buttons I choose the option to submit data as an email message with attachment. When email is delivered and if the attachment is opened in the Outlook the form looks very good and everything functions as I want it. But when I try to open this attachment using my Blackberry I only see plain text (values from every control that I filled on the form). But one of the goals of the project was to be able to use smartphones to click on the Approve or Reject button. When I choose another option during the Data Connection setup wizard to deliver the only active view all 3 buttons disappear. I read an article from Microsoft's site http://office.microsoft.com/en-us/infopath-help/design-a-form-template-for-use-on-a-mobile-device-HA010233887.aspx#BM4 how to make sure that form can be viewed using wireless device, but wasn't able to find Enable rendering on a mobile device check box in InfoPath 2010. Can someone please tell me where this option is?

Thanks.

View Complete Post


Comments:
Be the first to comment this post.
 
Post Comment
Please login to post your comment
More Related Resources

Caputurig Back Button Event & Force The Page To Load From Server:

  
I think in many time developer need this event, which is not provided by any browser and it is not captured by any javascript event.In this Article you see how you capture this event and how you force the browser to load the page from server.

Strange problem with a button in a repeater

  

I've got a Imagebutton in a repeater.
Code:

<asp:Repeater ID="repImages"  runat="server">
                    <ItemTemplate>                       
                        <div>
                            <div><asp:ImageButton ID="btnDeleteImage" Width="7" Height="7" runat="server" AlternateText="Verwijder afbeelding"  OnClientClick="return confirm('Weet u zeker dat u deze afbeelding wil verwijderen?');" OnClick="ImageButton_OnClick" ImageUrl="~/images/spacer.gif" /></div>
                            <img id="imgImage" runat="server" src='<%# GetOccasionPath(int.Parse(Eval("ID").ToString()),Eval("BaseFileName").ToString(), TypeImage.thumbnail) %>' />
                        </div>
                    </ItemTemplate>
                </asp:Repeater> 

 

It is displayed well, but if i press the button btnDeleteImage he doesn't even run ImageButton_OnClick , also there is no data included just for testing...
protected void ImageButton_OnClick(object source, EventArgs e)
    {
       
    }

 

But still i get this error:

Invalid postback or callback argument.  Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="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.

Also enableEventValidation="true" is placed in the page.
What can i do to solve this?


AJAX UPDATE PANEL GET REFRESH EVEN JQUERY BUTTON CLICK RETURN FALSE

  

Hi !

I want to pop up a password text box and ask the user to enter the password again before procedding to retrieve a report.

However, my button keep submitin to the server to get a report.

I use AJAX Update Panel that contain a grid view and a button trigger the grid view to be filled in.

I use jquery to pop up a dialog box and even i return false on the click even, the update panel is still get updated before the user fill in a password.

How do i make sure the click event that pop up a dialog box come first before any other click event ?

        Sys.Application.add_load(function() {
            $("#dialog:ui-dialog").dialog("destroy");

            $("#dialog-modal").dialog({
                height: 140,
                modal: true,
                autoOpen: false,
                buttons: {
                    "OK": function() {
                        var passwordtxtbox = $('#<%=PasswordTxtBox.ClientID%>').val();
                        if (passwordtxtbox != "" && passwordtxtbox.length > 0) {
                            $(this).dialog("close");
                            return true;
                        }

                    }
                }
            });

            $("#<%=Search.ClientID%>").click(function() {
                $("#dialog-modal").dialog("open");
                return false;
            });

 


How to remove the MY ASP.NET APPLICATION header and the login button and box

  

Visual Web Developer 2010 Express

Windows 7


I have chosen ASP.NET Web Site, rather than ASP.NET Empty Web Site when I created my website.  I thought just a little first step would help.


I now find that I am left, in default.aspx, with this extremely annoying bold header -

MY ASP.NET APPLICATION at the top of the page, and a little login function in the  top right corner.

All attempts to enter the area produce a no entry icon.

How do I get rid of / change this header area? Or did I get myself locked into this by choosing Express and/or ASP.NET Web Site rather than an empty one?

I sure do like the structuring of the forums here.  I feel comfortable in this beginner's one for now, thank you.Innocent ASP.NET wise at least.

With thanks, in anticipation of an answer, please.

Best regards


Philip Hunt

Perth, Western Australia

(soon to launch www.howandwhywonderbooks.info)








AJAX confirm button

  

hi tutuors

 

i want file upload button like ajax confirm button if user updatephoto button click the entire window hide then show the file upload button please help me 


How to Restore Radio Button Values

  

Good morning WebMatrix Adventurers,

I read and implemented the sample form that teaches how to restore form variables after a postback; pretty cool.  However, my form includes radio buttons and I can't figure out how to restore the checked radio button after postback.  Any suggestions would be greatly appreciated. 


Custom Submit button rule breaks down in the middle of the actions

  

I have an infopath form that is published to a SharePoint library.  After the form is filled out, the user clicks a custom "Submit" button which has a rule with the following actions: 1) submit to main connection (database table), 2) submit to connection (SharePoint library - which starts an approval workflow in SharePoint), 3) thank-you message, and 4) close form without prompt.

99% of the time, all works well with form data getting submitted to database table, and also to the SharePoint library (which triggers the approval workflow).  1% of the time, when my custom submit button gets clicked, only the first rule action performs (i.e., data is submitted to main database connection), but the process stops at the action to submit to the SharePoint list.

I have checked and triple-checked the actions in the submit button rule, and they appear to be correct - and, in fact, behave correctly 99% of the time.  It's that 1% when the rule breaks at the point of submitting to SharePoint library that has me crazy.  This occurs only sporadically with different users -- users who it works correctly for most of the time.

I also have a form field I created called "DupChecker" that looks in the database table to see if the exact record exists, and if it does, it will not allow the user to submit it again.  So when the user submits the 1st time, and the data goes to db, but not to sp, the user tries to submit again, but gets a message I wrote saying they can't submit it again. This is how I know it is breaking down after the data goes to the db.  The record never shows up in the sharepoint list, though, and the workflow never starts.

Can you think of why this rule may be breaking down, sporadically, after the data gets sent to the db, and just before it is supposed to submit to SharePoint library?


How to submit my browser Infopath form to Sharepoint library as well as to SQL server db on click of submit button

  

I created a webservice which takes my infopath forms and submits to the databse ino an xml column. I created submit data connection which uses this webservice.

I also have a data connection that submits to Sharepoint library.

I have a submit button, created Action rules to submit this form first to SP library and then to submit to the db using the webservice dataconnection.

I previewed this and onthe client side it works.

But when I publish is as a Aministartor approved From template to SP library, On submit it gives me error.

Is multiple submissions allowed in Infopath 2010 forms?

What am I missing here?

Thanks in Advance!


Execute query with keyboard button press

  

This hopefully will not require a lot of code but here i go ...

I would like to be able to have user enter in query paramaters on any detail field item on any page by pressing "F7" which would 'Activate' the query process ... have the user enter in the information and press "F8" to execute the query.

Example:

The user is on the "Customer Information" screen


Presses "F7" to activate query process
Enter '18%' in the CustomerID detail field
Presses "F8" to execute query


The application would then query any records from the Customer database where the CustomerID starts with '18' and then has anything after that

This might requre having % be the wildcard symbol


I know nothing about SQL and have an average knowledge of Visual Basic.

 

PS I'm doing this in Visual Basic

 


Sincerely, Justin Adkins

Expand and Collapse all the headers of a listbox using a button

  

Hi,

 

Based on some examples, I was successfully able to get the expanders working. Each group expands when a user clicks on the header and it also closes when he clicks it again. But now, I'm looking for a button_click event which would expand all the headers at once and another button_click which can collapse all the headers at once.

 

Here's the code I came up for the first part:

  <ListView Grid.Column="0" x:Name="lvAssigned" AllowDrop="True" Width="Auto"

                  PreviewMouseLeftButtonDown="ListView_PreviewMouseLeftButtonDown"

                  PreviewMouseMove="ListView_PreviewMouseMove" DragEnter="ListView_DragEnter" Drop="ListView_Drop" HorizontalAlignment="Left" 

                  VerticalAlignment="Stretch" BorderThickness="0" Height="600">

                        <ListView.View>

                            <GridView>

                                <GridView.Columns>

                                    <GridViewColumn DisplayMemberBinding="{Binding PricingMethodTierName}" Header="Tier" Width="100"></GridViewColumn>

                                    <GridViewColumn DisplayMemberBinding="{Binding InterchangeProgram}" Width="300" Header="Interchange Program"></GridViewColumn>

                                </GridView.Columns>

                            </GridView>

                        </ListView.View>

                        <ListView.GroupStyle>

                            <GroupStyle>

                                <GroupStyle.ContainerStyle>

                                    <Style TargetType="{x:Type GroupItem}">

                                        <Setter Property="Margin" Value="0,0,0,5"></Setter>

                                        <Setter Property="Template">

                                            <Setter.Value>

                                                <ControlTemplate TargetType="{x:Type GroupItem}">

                                                    <Expander IsExpanded="True" BorderBrush="#FFA4B97F" BorderThickness="0,0,0,1">

                                                        <Expander.Header>

                                                            <DockPanel>

                                                          

 
Categories:
.NET
Java
PHP
C/C++/VC++
HTML/XML
SAP
MainFrames
Data Warehousing
Testing
MySQL
SQL Server
Oracle
Javascript/VB Script
Others
Login
 
 
 
 
 Forgot password
 Contact Us   Terms Of use   Share your knowledge