|
so please tell me what should i do to show the new images
|
|
|
|
|
|
|
I have a page which adds a record to the database when I Click the submit button and it stays in the same page showing all values from the database in a datalist. My problem is that if I refresh the page, the last event fired , that is btnSubmit_Click is fired again and yet another a record is added to database. What will be the solution. Thanks in advance
minah
|
|
|
|
|
|
If i debug, i can see it going to submit_click on refresh of the page (ie, the last event fired. if it was another event which was fired before refresh, then that event will be fired on refresh)
|
|
|
|
|
If i press F5 the event which was fired is fired again.
|
|
|
|
|
I have a form with submit button as an asp image button. My problem is that if i click the button n times the event is fired n times. so how to disable button during the post back. I tried onclientclick="this.enable =false; return true", but didnt work. Is there any other solutions
minah
|
|
|
|
|
You can actually knock off the submission ability on postback. ImageButtons don't support that Enable right?
|
|
|
|
|
i didnt get what you mean by submission ability. I tried this.disabled=disabled also
|
|
|
|
|
Hi! in GridView, in a certain cell, there is a child control. it may be a LinkButton or A Label or a Button web control. i represent rffernce of this child control in DataBound event as:
Object O = e.Row.Cel[0].Control[0];
now i want to know type of the web control object O have.
how can i do this?
Thanks & Regards,
SAMir Nigam,
Software Engineer,
STPL, Lucknow, India.
|
|
|
|
|
You can use the is operator to check for types:
if (O is LinkButton) ...
You can use the as operator to get a reference only for specific types:
LinkButton b = o as LinkButton;<br />
if (b != null) ...
---
single minded; short sighted; long gone;
|
|
|
|
|
Wouldn't a NULL check and then calling GetType() tell you?
|
|
|
|
|
I am using ReportViewer control in Update panel, when run the application i can't use some commands on report viewer tool bar like Print and export.
why it is so ?? is ther any solution available ???
And also tell me is there way to override these commands.
Thanks in Advance
|
|
|
|
|
hi, i need to create a application where user will select a indian languages from drop down, and after that all content of page should be displayed in selected language and he will enter the data in selected language. Please provide help.
ASDFASDF
|
|
|
|
|
earlier i was using
sqldataadapter = new SqlDataAdapter(cmd);
sqldataadapter.fill(dataset)
to get data from database, and use to bind it to datagrid. but as i do not use this datagrids for editing. i want to use datareader instead of dataset.
The number of columns will not be fixed so i can not create datatable with fixed number of columns and fill it by iterating through datareader.
i do not want to use ' sqldataadapter.fill(datatable); ' either.
every suggestion welcome ..thanks in advance.
pallavi
|
|
|
|
|
Pallavi,
Firstly you have to provide structure to the datatable i.e. column names and datatypes....
Once you have the structure set you can loop through your datareader and add one row at a time to your DataTable.
You can provide structure to your datatable even after you have data in your datareader!
Gautham
|
|
|
|
|
thank u gautam .
but i have three different querries in switch case . and i am going to bind to datgrid according to selected criteria.
so, according to u may i hv to make ready different datatables with the different structures? isnt it there any easy way as--
datatable= (datatable)datareader ; (kidding. but i want it as flexivble as dataset).
thank u.
pallavi
|
|
|
|
|
Why don't you want to use the DataAdapter.Fill method? If you want the data in a DataTable you will be doing the same thing as that method does anyway.
---
single minded; short sighted; long gone;
|
|
|
|
|
thank u guffa,
though dataadapter.fill(........) uses datareader behind the scene, as per requirement i have to use datareader in my code.
plz help.
thanks in advance
pallavi
|
|
|
|
|
Pallavi Bhoite wrote: as per requirement i have to use datareader
Ok, then you just have to (more or less) rewrite the Fill method in your own code.
---
single minded; short sighted; long gone;
|
|
|
|
|
Hello,
I have a grid view with one column and populated that with the following code,
GridView1.DataSource = PropList;
GridView1.DataBind();
Where PropList is a List of string .
Now I have added another column in the GridView1 by the following code
BoundField b;
b = new BoundField();
b.HeaderText = "new1";
GridView1.Columns.Add(b);
Now my problem is that if I have another list of string, How i Add that list to the new column.
Please help me in this regards.
Thanks
sunil
|
|
|
|
|
You cannot. You'd need a list of a struct which has two properties, as you can only bind to one source, but you can set the columns to pull data from properties of items in your list.
Christian Graus - Microsoft MVP - C++
"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,
Can you please give me sample code for this.
Thanks,
sunil
|
|
|
|
|
Hi All,
Is there any other way except <div>
to place multiple forms in one page. I am doing development in ASP.Net 2.0.
Please suggest and have a nice day!!.
Amit
|
|
|
|