|
while binding the data with gridview with the values of array the result comes in a single line.how i give coloumn names for the grid?
-- modified at 8:04 Monday 18th June, 2007
|
|
|
|
|
hi!
dear i want a textbox that always type Capital Words i.e ABCDE. even CapsLock would be on or off. plz help me
|
|
|
|
|
Maybe if you get the typed string and say .toUpperCase(), or how it is called and set it to the box. But I can´t think of how you can do this in real time.
cheers
You have the thought that modern physics just relay on assumptions, that somehow depends on a smile of a cat, which isn’t there.( Albert Einstein)
|
|
|
|
|
javascript
=========
function UPPER()
{
var text = document.getElementById("textBoxId").value
document.getElementById("textBoxId").value = text.toUpper()
}
call this function in onchange event of textbox in client side
Regards,
Sylvester G
sylvester_g_m@yahoo.com
|
|
|
|
|
Add this to the page load:
this.TextBox1.Attributes.Add("onkeyup", "javascript:perform(this)");
to the source of the aspx file add the following code:
function perform(param)
{
var txt = document.getElementById(param.id);
txt.value = txt.value.toUpperCase();
}
thats will work for sure.
|
|
|
|
|
use Cascading style sheet tag
text-transform:upper something like that
|
|
|
|
|
Hi,
In my application, I am uploading some files and then clicking on the send button which is actually a link button.Since the files are big in size, it takes some time to upload them .In this case i dont want the user to click on the send button again.
i.e. If the user has clicked the send button then i dont want the user to click the send button again......
How to disable the clicking of the link button if the user had already clicked?
Thanks,
Riz
|
|
|
|
|
Just onclick event say
button.enabled = false;
and after your work is done you can enable it back again !!
|
|
|
|
|
On the click event it i am also doing something else but after that even if i disable it...still i can click it. How to prevent it from clicking?
Thanks,
Riz
|
|
|
|
|
Hi all
I have a grid view, with editing enabled. I have columns which display a drop down list of options when editing. The bit I can't find info on, is how do I make that drop down list have the current selection selected ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Doh - it was exactly what I thought it should be, but I didn't try it until I found it with google ( always ask on CP, then you'll find it in no time ), because it didn't come up with intellisense, so I thought I must be wrong.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi,
I created a datatable(provided schema). Now i would retrieve some rows from database and store it in a dataset. Now the rows in the dataset should be added to the data table. I have used:
foreach(DataRow dr in DataSet.Tables[0])
{
datatable1.ImportRow(dr);
}
However when iam trying to bind this data table to datagird that is throwing an error: DataBinder.Eval: DataRow property ........
Any ideas are immensely respected.
Gautham
|
|
|
|
|
Gautham,
You don't need to import rows in this case. All you need to do is assign the table:
DataTable dataTable1 = DataSet.Tables[0];
This will work for sure.
|
|
|
|
|
Thanks for the reply!
However, there would be chances where my datatable might have few rows initially, now the rows from the databse should be added to existing rows of the datatable.
That was the reason i have used import row
Gautham
|
|
|
|
|
If you are using DataSet to get the data from the database you might as well want to make the datasource as:
private void BindData()
{
dataGrid1.DataDource = DataSet.Tables[0];
dataGrid1.DataBind();
}
This way when new rows are added, as soon as the dataset it updated, just call the BindData() method and the grid will refresh.
|
|
|
|
|
Hi,
Let me enunciate a bit further that would be useful in identifying my concern.
Now the user, would enter few details on a web page and would click 'Add', the details would be orderno, date, etc etc.
The moment he clicks the add we have to display few details in a grid according to the orderno entered, this order info is being retrieved from the database.
So if the user is clicking add button 10 times 10 records should be displayed in the datagrid and all 10 times i would go the databse and get the order info.
This is the reason i created a datatable and bound it with a datagrid. when ever a new order is being added that info should be added to the datatable and finally show in a datagrid!
Hoping i was clear!
Gautham
|
|
|
|
|
HI,
Your code should look like as following.
foreach ( DataRow row in dst.Tables[0].Rows )
{
dt.ImportRow( row );
}
Try this.
I hope this will help you.
Thanks and Regards,
Chetan Ranpariya
|
|
|
|
|
Chetan,
Actually i did the same thing but the following error is being thrown:
DataBinder.Eval: 'System.Data.DataRowView' does not contain a property with the name OrderId
Gautham
|
|
|
|
|
Hi,
This is not the code error. It happens because u might have given wrong column name or both of your tables dont have the same columnnames and same number of columns and the same order of columns.
Check for that once.
Thanks and Regards,
Chetan Ranpariya
|
|
|
|
|
Hello to every one,
What this error means and how to solve this error...
"Control 'RequiredFieldValidator1' of type 'RequiredFieldValidator' must be placed inside a form tag with runat=server. "
|
|
|
|
|
that means you need to add this attribute (runat=server) in your control.
Regards,
Sylvester G
sylvester_g_m@yahoo.com
|
|
|
|
|
Go to the "Source" of your aspx file and add 'runat = "server"' tag to the RequiredFieldValidator. That should fix the problem.
|
|
|
|
|
The form tag missing from your code.
the RequiredFieldValidator must be inside the form tag
Like
Place your Html and valdation related code here
manojchilhate
|
|
|
|
|
|
hi
Looking for a bit of help. I have an asp.net listbox. I am wanting to manually be able to order the box by clicking a button. got everything set up but I keep getting an error saying that I can't have multiple selections on the list box when it is set as a single selection. I don't really know where I am going wrong so if anyone can help me I would most appreciate it. My code for the button click is as follows.
Protected Sub btOrderElementUp_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btOrderElementUp.Click<br />
If ltbOrderByList.Items.Count() = 0 Or ltbOrderByList.Items.Count() = 1 Then<br />
Exit Sub<br />
End If<br />
<br />
Dim liItem As ListItem<br />
Dim intItemIndex As Integer<br />
<br />
liItem = ltbOrderByList.SelectedItem<br />
intItemIndex = ltbOrderByList.SelectedIndex<br />
ltbOrderByList.Items.Insert(intItemIndex - 1, liItem)<br />
ltbOrderByList.Items.RemoveAt(intItemIndex)<br />
ltbOrderByList.ClearSelection()<br />
ltbOrderByList.SelectedIndex = intItemIndex - 1<br />
<br />
End Sub
The last two lines are my attempt to manually set the selected item so multiple items definitly aren't selected. If there is an easier way of doing this I would also appreciate it if you could tell me too!
Cheers
Ian
|
|
|
|