Does MVC have an equivalent to the web forms icallbackeventhandler. Webforms allow you to make a call a function after the page has loaded.
Any guidance is appreciated.
is it possible to have an html form organized/named in such a way that $foo-fromArray($_POST) would actually save relational data as well?
example:
html_form_fields:
user_name
country_name
db_table_users:
id
user_name
db_table_countries:
id
country_name
update:
forgot to say i'm trying to make this with zend framework forms
Hi all,
I have created a login page. In this page i used div tag which is mapped with images for good design purposes. i have enabled the forms authentication in web.config.
So finally images i mapped in div is not appearing in the login page.
please help me!
I am looking for an easy to use CMS that can be used to host a multilingual website with photo galleries and few forms.
I am open to php/python excluding wordpress/joomla/drupal.
I am working on C# application
and I am trying to do the following:
my project is like a small search Engine
The user will enter a word and The Program should return the Files that contains this word
my Question is:
I have an array of File paths(the path is a normal string)
I want to show this paths like a links in a Gridview
so when the user click the file name the file will be opened
Notice: I am working on C# forms Not ASP.net
Using either XNA OR just the usual c# win forms application, which would be the best way to create the feature that enables text messages to be sent from me to my friend over the internet?
I don't know if this matters or not, but I now have 3 Mobile Broadband internet... so it's like... Wireless internet, does that matter?
There are a lot of questions about formatting forms so that labels align, and almost all the answers which suggest a pure CSS solution (as opposed to using a table) provide a fixed width to the label element.
But isn't this mixing content and presentation? In order to choose the right width you basically have to see how big your longest label is and try a pixel width value until "it fits". This means that if you change your labels you also have to change your CSS.
I have a SQL Server 2008 database with 300 tables. The application I have to design is an Windows Forms app, .NET 3.5, C#.
Which is the best way to work with Linq-to-SQL ?
I intend to make a datacontext for each business entity.
Is there any problem ?
I need to know if this way of working with Linq-to-SQL has any disadvantage or can create performance issues ?
Thanks.
Does anyone know how bing's weather webslice search works? I am attempting to create a web slice(only available in IE8) with search built in and I have read that forms are not allowed and neither is javascript. Any help would be appreciated.
I end up doing a lot of this to draw forms in boxes. This does an address block:
position: absolute;top: .2em; left: .2em; width: 2.4em;height: 1.2em;
position: absolute;top: .2em; left: 3em; width: 12.4em; height: 1.2em;
position: absolute;top: 1.7em; left: 3em; width: 12.4em;height: 1.2em;
position: absolute;top: 3.2em; left: 3em; width: 12.4em;height: 1.2em;
position: absolute;top: 4.7em; left: 3em; width: 12.4em;height: 1.2em;
position: absolute;top: 6.2em; left: 3em; width: 7.6em; height: 1.2em;
position: absolute;top: 6.2em; left: 10.9em; width: 1.6em; height: 1.2em;
position: absolute;top: 6.2em; left: 12.8em; width: 2.5em; height: 1.2em;
position: absolute;top: 7.7em; left: 3em; width: 7.6em;height: 1.2em;
position: absolute;top: 9.2em; left: 3em; width: 7.6em;height: 1.2em;
position: absolute;top: 10.7em; left: 3em; width: 1.2em;height: 1.2em;
position: absolute;top: 10.7em; left: 4.5em; width: 10.9em; height: 1.2em;
but what I really need is some Javascript that allows me to draw my forms on screen, then generate the CSS for my real ASP.NET MVC 2 partial views, allowing nudge and cell resizing with keystrokes. Anyone have any suggestions for something like this?
I want to select all the text of a System.Windows.Forms.TextBox() control in a GotFocus event, but all the examples I found make use of the .SelectionStart / .SelectionEnd properties of the control, and those aren't available in .NET 2.0 Framework.
Any ideas?
TIA,
Pablo
I am building a website. I have created the database in MySQL. I need to build the web pages really fast! Is there a PHP CMS with which I can easily create the webpages with forms that can modify my database tables? The point is that I don't want to code it using plain PHP or MVC frameworks either. I looked at other CMSs' like Drupal and Joomla but it looks like its difficult to make them use custom tables.
Hi,
How can i Update /Get values in windows form while moving one form to other form(like cookies)?
i need to update the values to some variable and again i am going to refer stored values and need to do some calculations.
i have used Cookies in ASP.Net but i am not able to find out same concept in C#.net Windows forms .
can any one help me for resolve this issues?
Regards,
Jeyavel N
Hi,
I am looking for a simplistic browser with and without the following capabilities:
No Javascript / Java / Flash
No Image rendering (and ignoring image-related CSS)
Supporting CSS
Supporting cookies
Supporting forms, anchors, and other HTML elements
Supporting GET / POST, and POST with enctype="multipart/form-data"
In fact I am looking for a GUI Lynx or something similar. Do you know anything resembling this?
Thanks.
After adding Print Document, Dialog, and Button to my Forms app i now have
UriFormatException
and
A first chance exception of type 'System.ComponentModel.Win32Exception' occurred in System.Drawing.dll
Additional information: Access is denied
Is there something wrong with the strings in my Document? Preview looks fine.
but unhandled exception's when it tries to print.
Is there any way to enable debugging from within the Windows Forms Designer in Visual Studio (any version, up to and including 2010)?
What I mean is, say I have some custom user control, and this control has certain validation that it performs when I set a particular property. I'd like to be able to set a breakpoint somewhere within that code, and step through it to see what happens when I set the property from the designer.
If all that is used to do any and all database queries is MySQLi prepared statements with bound parameters in a web-app, is sql injection still possible?
Notes
I know that there are other forms of attack other than sql-injection, but my question is specific to sql-injection attacks on that particular web application only.
I have an asp.net C# web forms application in .net framework 4
In my pages, when I view html source it changes control IDs to something like ctl00_CPHPageContents_txtUserID actually it is txtUserID
This application was first in Framework 3.5 and IDs were generated like CPHPageContents_txtUserID
So, in short, in Framework 3.5 Id was CPHPageContents_txtUserID and now in Framework 4 ID is ctl00_CPHPageContents_txtUserID which is breaking our automation tests. Can I remove this ctl00 added by Framework 4?
Hi all,
I have a TextBox and a ToolStripButton in a windows forms application,
the TextBox implements an event handler for the LostFocus event,
and the ToolStripButton implements an event handler for the Click event,
but the TextBox LostFocus event fires after the ToolStripButton Click event,
which event in TextBox fires before ToolStripButton click event ?
I understand the gist of the code, that it forms permutations; however, I was wondering if someone could explain exactly what is going on in the return statement.
def perm(l):
sz = len(l)
print (l)
if sz <= 1:
print ('sz <= 1')
return [l]
return [p[:i]+[l[0]]+p[i:] for i in range(sz) for p in perm(l[1:])]
I'm planning on using Apache torque as my object-relational mapper (ORM), and I was wondering if anybody has any suggestions around what framework to use for presentation layer with torque. maybe Spring?
I don't know if this helps, but my application is basically going to be bunch of forms to input data and based on that data, I'll generate reports in form of a graph or chart.
Hello everybody,
There are string length limitations in database structure (email is declared as nvarchar[30] for instance)
There are lots of html forms that has input textbox fields that should be limited in length for that reason.
What is the best practice to synchronize database fields and html layout input fields length limitations ?
Can it be done automatically (html layout input fields declared the same max length as database data they represent)?
Thank you in advance.
I'm looking for a way to programatically control a browser on a Mac (i.e. not IE) using Python.
The actions I need include following links, checking if elements exist in a page, and submitting forms.
Which solution would you recommend?
Thanks!
I have a SQL Server 2008 database with 300 tables. The application I have to design is an Windows Forms app, .NET 3.5, C#.
Which is the best way to work with LINQ2SQL ?
I intend to make a datacontext for each business entity.
Is there any problem ?
I need to know if this way of working with LINQ has any disadvantage or can create performance issues ?
Thanks.
The Decorator Pattern is dynamic extension-at-runtime of classes. It dynamically forms a is-a relationship.
I started to wonder if I was over-complicating my API by using the Decorator Pattern after I got this answer about the difference between a mixin and an abstract class.