|
I have generated dynamic database table in
which the colums will vary as per the selection
by the end user. Now, if my table name is car which
i have generated dynamically on the button save click
event it will have its colums like: colour, gears etc.
So can i generate a dynamic form by taking the cars id
and its column name as the textbox controls on the new
form. The new generated form will also have the basic
funtionality of add, edit,delete etc. If my table is car
then to generate dynamically car.aspx form or if table
is computer then
computer.aspx should be generated.
|
|
|
|
|
Sounds messy to me. I'd think you want to rewrite the URL, and have a common page that gets pointed to at the end of the day.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Hi
I have been scratching my head on this for days, but getting no where!
Using visual basic and a sqldatasource for my gridview, I need change the colour of a gridview row backcolour plus set a hidden checkbox to checked when the user clicks on an image button. I also need to grab a field value from a row in the gridview.
Now, everything works when I am on the first page, but when I page to the next page I get the following error message "Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index".
My image buttons are connected to an onrowcommand in the gridview tag, which checks to see which image button has been called, gets the row number and then calls the appropriate method for that button.
Does anyone have a solution to set a hidden checkbox over a number of pages, grab a field value from the gridview and change the row back colour?
Thanks
|
|
|
|
|
If it works only on the first page, I guess you should post some code so we can look at it.
I'd never use a SQLDataSource tho, that stuff blows.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Hi
I have managed to crack the problem in so far by adding an onclick event to the image button, but if I page back the grid is refreshed and in turn the rows that have been clicked upon are changed back. Therefore, slightly modified question - how do you maintain those rows with post back?
Thanks
|
|
|
|
|
You need to store the selected page somewhere ( on the URL perhaps ) so you load the correct page when you do a postback.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Sorry, can you explain to me how you would this? I am not clear on what you mean.
|
|
|
|
|
Ideally, the control does no paging and you just pass it the data for the selected page. But, either way, however you get the data for page 2, say, what is needed is to store the selected page number so you can select that data on your postback. Perhaps a better idea is to look at the code that does the selecting, and just keep the data you had before, which will be in viewstate./
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Hi
I am developing a website using Visual Basic and NetFramework 3.5, and for my gridview I would to have a custom sort.
What I am looking for to control the sort on the columns. Therefore, if a user clicks on a column and puts into order, and then clicks another column, then the first column should remain in the sort order it was put by the user. However, I need to repeat this pattern over at least 3 columns.
Can anyone help me, please? I have tried every where for an answer.
|
|
|
|
|
Hi,
I have one application. I want to call method in that page again and again while Records are deleted. There are near about 10000 records in that table.
OR should I use multiple threading if yes then how can I write.
Thanks
sjs
|
|
|
|
|
sjs4u wrote: How to call page using webservice
Maite, page calls a webservice and not the vice versa.
sjs4u wrote: I want to call method in that page again and again while Records are deleted
Use some kind of loop.
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
but if I write code in that webservice should it will run background till the condition complete.
I have 10000 records and I want to distribute in 300 and call that function again and again till it reach to 10000.
bucause my page is expired though I write and configure all the setting for page expired. I want to increase the access to that records.
|
|
|
|
|
sjs4u wrote: but if I write code in that webservice should it will run background till the condition complete
No.
For that you can simply use AJAX Implementation.
Cheek Some sample from W3School
sjs4u wrote: I have 10000 records and I want to distribute in 300 and call that function again and again till it reach to 10000.
I don't think there is any use of loading 10,000 records in a page. Use Filter to minimize the records that would also helps you to improve performance.
sjs4u wrote: bucause my page is expired though I write and configure all the setting for page expired. I want to increase the access to that records.
My suggestion try to minimize the records in a single time.
Good Luck
|
|
|
|
|
Abhijit Jana wrote: For that you can simply use AJAX Implementation.
Gosh - do you have any idea at all ? You want him to use AJAX to delete records using a webservice call ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
This is dumb. Your business layer should exist outside of the page, unless your whole design is an utter disaster. Call your business layer to delete records, don't force a page to load to complete the task.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Can any one tell how to pass arguments for this code in the place of "path=?".
|
|
|
|
|
|
In anchor tag for the place of ? symbol. The whole code is not copy.
|
|
|
|
|
use Response.Redirect("Yourpage.aspx?path=sss");
now get the value of path within yourpage.aspx using Request.QueryString["path"]
Abhishek Sur
|
|
|
|
|
S. But my question is how to supply the value for the "path" dynamically using "?" mark
|
|
|
|
|
Hmm. A URL is a string. I'd probably use that as a starting point and consider maybe, just possibly, concatenating some kind of string that looks like a URL together. Including a ? at some point.
|
|
|
|
|
Karthick_gc wrote: S. But my question is how to supply the value for the "path" dynamically using "?" mark
Just use String or StringBuilder. Append Text. Add with path.
|
|
|
|
|
String.Format("myurl?path={0}", thePath)
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Hi,
I am using Mysql as backend to the asp.net 2.0 project. I have deployed the project in online. I want to take the database backup.
Can anybody give me an idea which concept i have to use.
Thanks
|
|
|
|
|