i have some comboboxes and some textboxes on a form
i would like to clear all of them with one line of code. is that possible?
something like all_controls.text=""
I would like to know if it was possible using Javascript to find an image tag by its alt text. For instance I have this tag: <img src="Myimage.jpg" alt="Myimage"> would there be a vay to abtain the tag by looking for the "Myimage" alt attribute?
hi
i want to make use of Com intefaces into my .net application,
but this is related to Text Services Framework and i reasearched on this and it was like it only supports COM servers
can anyone help me on this
can i use TSF intefaces into my .net application
and if yes Please tell me how to do it
plzzzzzz :)
thanks
Hi all,
I am just trying to count the number of white spaces to the LEFT of a line from a text file.
I have been using
count( line.begin(), line.end(), ' ' );
but obviously that includes ALL white spaces to the left, in between words and to the right.
So basically what I'm wanting it to do is once it hits a non-space character stop it from counting the white spaces.
Thanks everyone.
i am Reading the file contents and passed it in explod function("=",$string) ,it gives me two array parts[0].parts[1] seprated by = .parts[1] array displays all the values of the variable .now how can i use these values one by one to pass in the text box .The variable value comes in this way (value1
value2
value3
value4...)
my code also throws the undefined offset :1 notice when i prints the parts[1]arrray
I have a text file that looks like this:
value1
value2
value3
There are 32 million lines. Each line is terminated by a \n. The fields are not enclosed or delimited with any characters. I'm trying to import it into MySQL using this code, but it is not working:
LOAD DATA LOCAL INFILE 'data.txt'
INTO TABLE `table`
FIELDS TERMINATED BY ''
ENCLOSED BY ''
LINES TERMINATED BY '\n'
(`column1`)
Can anyone tell me what I'm doing wrong?
Hey
is there any way to send whats in a text view (im trying to make a suggestion box) to my email address?
example
user types in the box " I think you should add twitter support"
then that is sent in the background to my email address [email protected]
then a message is popped up on the screen saying "suggestion sent"
just an example of what i mean
Any ideas, tutorial links would be greatly appreciated guys
Thanks
OKay first off this is really really similiar to the http://dribbble.com homepage.
In the simplest form possible. I have an image, and i'm trying to CSS it so that when i hover over the image, a DIV shows up with some text and a partially transparent background color.
I have no idea how to do this..
ASp.NET application.
In button click i am accessing one text file and reading content.
while both users clicking this button at a time deadlock will occurs so how to handle this i want to read each user one by one can any one suggest method to handle.
i am looking to handle with waithandle events so can any one give a code sample for above scenario.
i have this
<li><a href="#" >title</a> <span style='text-align:right;'>(0)</span></li>
its not working
and this
<li><a href="#" >title</a> <span style='float:right;'>(0)</span></li>
its go to the down line (not working)
its appear like that
|title (0) |
i want it
|title (0)|
How does one draw text (with onClick event) in a caption bar on vista with aero Like Windows 7 ?
The example at delphi.about.com doesn't work on Vista with aero. Do you have any ideas?
Thanks to all.
Sorry for my bad english.
Hi,
I wonder if it is possible to create combo box as in the picture below. The aim is that the actual text of the combo (select in HTML) would be different that items' texts that are displayed while the combo is opened.
The application is written using Google Web Toolkit so any solution in gwt or HTML/JavaScript would be great.
Thanks for any hints.
I'm new to XCode 3.1.2 and Objective-C 2.0. I've just discovered using breakpoints for logging instead of littering the code with millions of NSLog() statements. The problem is, when the debugger starts up it spews half a screen full of status and credits info into the console.
Is there any way to suppress this text?
I'm trying to curve text this effect using CSS3, HTML Canvas, or even SVG (see image below for example)? Is this possible? If so, how can I achieve this effect?
Hi all,
I am writing a C program using Visual Studio 2008. I use F7 to compile and F5 to execute the program.When I press F5 an execution window contains the output. But I want the output to get saved to a text file. How to do this in visual studio. Please help me someone.
I am attempting to generate the body of an email in Outlook 2007 from the text of a Word 2007 document in VB. I have access to both the Word and Outlook object libraries, and I can read from the Word document to get a string and write it to Outlook, but I need to keep the formatting from the Word document intact.
The purpose will be to allow users to edit the word document and always have the emails my program generates be in sync with the document.
Does anyone know how to do this?
Hi,
When I render my formset, one of the field renders as a select box because it is a foreign field in the model. Is there a way to change this to a text input? I want to populate that field by using Ajax auto complete. Adding a widget to the modelform is not working because the modelformset_factory takes a model and not a model form.
I want to convert a tab delimited text file to a XML file. I was able to do it with a single character delimiter. But how do i extend it to tabs? I am coding in C# and using Visual Studio 2010.
Finishing up some homework and Im having trouble with figuring out how to take information generated in sql column(a primary key set up to assign a record number to a customer example 1046) at submit and writing it to my redirected recipt page. I call it recipt.aspx. Any takers
Professor says to use a datareader...but things go bad after that.
public partial class _Default : System.Web.UI.Page
{
String cnStr = "EDITED FOR THE PURPOSE OF NOT DISPLAYED SQL SERVERta Source=111.11.111.11; uid=xxxxxxx; password=xxxx; database=xxxxxx; ";
String insertStr;
SqlDataReader reader;
SqlConnection myConnection = new SqlConnection();
protected void submitbutton_Click(object sender, EventArgs e)
{
myConnection.ConnectionString = cnStr;
try
{
//more magic happens as myConnection opens
myConnection.Open();
insertStr = "insert into connectAssignment values ('" + TextBox2.Text + "','" + TextBox3.Text + "','" + TextBox4.Text + "','" + TextBox5.Text + "','" + bigtextthing.Text + "','" + DropDownList1.SelectedItem.Value + "')";
//magic happens as Connection string is assigned to connection object and passes in the SQL statment
//associate the command to the the myConnection connection object
SqlCommand cmd = new SqlCommand(insertStr, myConnection);
cmd.ExecuteNonQuery();
Session["passmyvalue1"] = TextBox2.Text;
Session["passmyvalue2"] = TextBox3.Text;
Session["passmyvalue3"] = TextBox4.Text;
Session["passmyvalue4"] = TextBox5.Text;
Session["passmyvalue5"] = bigtextthing.Text;
Session["I NEED SOME HELP RIGHT HERE"] =Textbox6.Text;
Response.Redirect("receipt.aspx");
}
catch
{
bigtextthing.Text =
"Error submitting" + "Possible casues: Internet is down,server is down, check your settings!";
}
finally
{
myConnection.Close();
TextBox2.Text = "";
TextBox3.Text = "";
TextBox4.Text = "";
TextBox5.Text = "";
bigtextthing.Text = "";
}
//reset validators?
}
The recipt page
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if(Session["passmyvalue1"] != null)
{
TextBox1.Text = (string)Session["passmyvalue1"];
TextBox2.Text = (string)Session["passmyvalue2"];
TextBox3.Text = (string)Session["passmyvalue3"];
TextBox4.Text = (string)Session["passmyvalue4"];
TextBox5.Text = (string)Session["passmyvalue5"];
TextBox6.Text = I don't know ;
}
}
}
THanks for the help
I am working on Windows Azure. I followed some tutorial about how to store text file on to the blob of windows azure.
I am successful in uploading the data. Now, I wanted to access the file. I mean, I have to read the content of the file and display it....
Can anyone tell me, How to do that...
Thanks,
in advance...
I'm having a hard time getting the UITextView to disable the selecting of the text.
I've tried:
canCancelContentTouches = YES;
I've tried subclassing and overwriting:
- (BOOL)canPerformAction:(SEL)action withSender:(id)sender
(But that gets called only After the selection)
- (BOOL)touchesShouldCancelInContentView:(UIView *)view;
(I don't see that getting fired at all)
- (BOOL)touchesShouldBegin:(NSSet *)touches
withEvent:(UIEvent *)event
inContentView:(UIView *)view;
(I don't see that getting fired either)
What am I missing ?
This is a tall order, but is there a jQuery or Mootools (or other framework) plugin to wrap text around images and support IE6? I've tried the jQSlickWrap, but unless the browser supports HTML 5, you're out of luck. What's strange is that IE 6 supports the jQuery Background Canvas plugin, which uses the CANVAS object (via excanvas.js) just as this plugin does. Thanks.
How can text like "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" which exceeds the width of a div(say 200px), be wrapped?
I am open to any kind of solution such as CSS, jQuery, et cetera.
So I'm on commission for a website, and I'm trying to improve my code. When dealing with a website with multiple types of font (here it's large, there it's small, there it's bold, here it's underlined, etc.) is this where we use the h1-h6, or do we reserve those for times when there is a definite hierarchy, using instead <p class="xxx"> to define different classes for text?
Hello I'm creating a GUI and I want the "Edit text" button to display the name of the file I selected....i've stored the filename and the pathname in a variable called "File_Selected:....but how do i pass the filename only to the EditText function on my GUI