I am storing a date in my database and want the user to be able to edit this date in the Edit View. In the past with ASP.Net web forms I have used 3 dropdownlists for the Month, Day and Year to get the date from the user and to bind it on display. I want to do the same in ASP.Net MVC and not sure how to do it?
I am not using any jQuery or Javascript, the design calls for simple postback.
Hi, I have a question regarding GridView windows forms control. As a datasource, I am using a DataTable object. When the grid view is sorted, the DataTable's row indices are not sorted. In this way, when accessing the DataTable using indices from GridView, I get the unexpected rows. How can this situation be handled?
Hello all,
Is there a way to set the location of the output windows even before running.. My project has more than two forms , and i would like to display them in a non-overlapped fashion , and set their layout beforehand. ( I'm using netbeans..)
Hi,
Can Entity Frame create incremental SQL scripts for updates? (or would you need to do this in a separate database tool)
(i.e. for my application updates I need to package the DB upgrade script that gets applied after download - windows forms type app)
When I try to show an image on linklabel click, I get an error: unrecognized escape sequence.
Code:
public void linkLabel1_LinkClicked(object sender, System.Windows.Forms.LinkLabelLinkClickedEventArgs e)
{
System.Diagnostics.Process.Start(
"mspaint~C:\Users\Joshua Banks\Desktop\Downtown_atlanta_night.jpg");
}
Hi,
in one of our applications we're using alocal RDLC-report (displaying using a ReportViewer control) to print some tables and text entered by the user.
We'd like to give the user the ability of formatting the text. I thought I might use the respective WPF controls (embedded into the Windows Forms application) to make things easy.
Question is: how do I print the resulting FlowDocument within the local report? Is this possible at all?
Thanks for any advice,
Thorsten
In a typical business application it is quite common to have forms that are used for searching.
Some basic features are:
A pane that contains the search criteria
A grid to display the results
Sorting on the grid
A detail page that opens when an item is selected in the results grid
What other features would you expect in a business application's search functionality?
Invoke does not exist in the current context. The same method was not giving any error in Form.cs class but when I used in other class in same project it gives error. i am using threading on forms control.
private void UpdateText(object fileName)
{
if (Textbox.InvokeRequired)
{
UpdateTextCallback back = new UpdateTextCallback(UpdateText);
this.Invoke(back, new object[] { fileName });
}
}
We have discussed keyboards. But take a look at the small piece of plastic to the right (or left :) ) of your beloved keyboard! This humble creature helps you to draw nice forms, and click all around the web. A real programmers mouse must be precise and comfortable, so which mouse would you make a companion to your keyboard?
Currently I'm in love with this fat member of mice family:
Natural wireless laser mouse 6000
Hey, I'm making a simple user friendly css editor using Prototype. Anyway, I was wondering whether I could get the background-position x/y values on their own?
I wish I could do something like this but sadly it doesn't work:
element.getStyle('background-position-x);
I guess this is because position comes in different forms like 'center' rather than just being generic.
<form action="/?wpmlmethod=offsite&list=2&wpmlformid=" method="post">
...
</form>
I tried:
<script type="text/javascript">document.forms[0].submit();</scrpit>
But it didn't work.
Is there a way to queue file uploads without resorting to Flash or Silverlight, just with cleverly used forms and JavaScript? Note that the upload should be executed asynchronously.
By "queuing" uploads I mean that if the user tries to upload multiple files, they should not be transferred simultaneously, but rather one at a time, in a single HTTP connection.
I am developing windows Forms application, for this i am using SmartClient. Here i click workspace close('X') event at the time i want to display messageBox based on user input (OK/Cancel) i have to decide pane has to be close or not.
I created a VB.NET Windows Forms Application in Visual Studio 2008. When I run my program from the command-line, I get no output (only the next prompt).
Why?
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Debug.Write("Foo")
Debug.Flush()
Console.WriteLine("foo")
Console.Beep(800, 100) 'confirm this function is called'
Me.Close()
End Sub
There is some easily available information on finding the status of a battery, or weather it's charging or not. (GetSystemPowerStatus API or System.Windows.Forms.SystemInformation.PowerStatus).
I want to be able to stop a battery from charging based on some criteria, e.g. battery power 20%.
Is there an API to do this?
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:])]
Hi
can any body suggest me any idea about how can i compare two fields in django.
as i have two password fields in my forms.py file.
now i want to compare the two fields and if both are same then save the user in database
else append an error message to reenter the values again.
thanks
how I get ALL ListBox values (not only selected items) on submit action in asp.net mvc2 project.
I'm using Ajax forms like Ajax.BeginForm("actionname", new....)
I already try to select all items on OnBegin event of Ajax options but still I havent got all ListBox items
have any idea ?
thanks
I'd like to customize the standard user controls look (buttons, dgv, txtboxs ... etc) and the layout of my forms to a state of art modern interface like any decently built application. How can I do that?. What to look for? any articles, books .. etc that might be of help!
Hi Guys,
I am using ASP.NET Web forms,
When a user submit a page, an email will be sent to many people which is slowing the post-back,
what is the best way to send the emails without slowing the reloading of the page?
thanks
Hi there i am trying to access a form in mechanize with ugly characters in the object name
similar to this
agent = Mechanize.new
page = agent.get('http://domain.com)
form = page.forms[0]
form.ct600$Main$LastNameTextBox = "whatever"
page = agent.submit(form)
The problem is the $ in the html name is messing with ruby because
Is there another method i could use ie:
form.element_by_name("ct600$Main$LastNameTextBox") = "whatever"
Unfortunately i cant change the html
Hi,
One of my friends got the access database with Forms (VBA) and wish to migrate all the database table to the newly installed MOSS 2007 site.
He is using SSMI for this purpose. He cannot do it because there are plenty of errors and warnings. I think it is due to the old Access queries.
Is there any other way to import the database to sql 2005 from access ?
Thanks
Obviously, I am a novice web designer. I'm using php and sql to do all the under-the-hood stuff, but I want a visually appealing as well as functional comment system. Right now I am just using HTML forms but they don't look very good. Should I be using javascript? Any tips to get me started?