|
initially i used a label to check
if break is not used i need to check all check boxes for label to true and viceversa
|
|
|
|
|
See your variable str13 is not associated to the every item/checkbox in datalist so it will alyas be the latest.
Regarding the checkbox, try to debug the the code whether you arre able to access all the checkbox in the datalist and their associated values.If you are able to get the checkbox's value specifically then why they are not getting inserted.
One reason I can think of your row might be getting updated everytime so thats you are getting the latest one.Verify it.
Also
test-09 wrote: "insert into test(test1) values('"+ck.Text+"')";
you checkbox is chk not ck. Cheers!!
Brij
|
|
|
|
|
Thank you bros.. you people guide me well
I got exactly what i want...
|
|
|
|
|
Hi,
I m developing a project on parking system. I need to know how to make an entry to the session log table when an user logs in and how to remove the session when he logs out. and also when the user adds,deletes or updates an entry should be made in the event table. Pls help me out
|
|
|
|
|
|
Ok guys before you say this question has been asked before the problem is that
try<br />
{<br />
mail.Send(blah)
}<br />
catch(SmtpFailedRecipientsException ex)<br />
{<br />
}<br />
Microsofts example are pretty straight forward and if you go by the example the above should work bit it does NOT...theLizard
|
|
|
|
|
I have been looking into search indexing, and its a bit out of my depth. I have searched around plenty of forums and sites looking for answers.
I am trying to index my site locally so that when a user adds new content this shall get indexed along with the rest of the content.
If anyone knows of any good articles or even tutorials to help me accomplish my task I would be most thankful.
Once i have succeeded I will publish the results on the site so that others wishing to accomplish the task and modify the code to thier requirements may do so.
ThanksASP all the way
|
|
|
|
|
Hi
In my application, I am using ODP.Net in conjunction with my MVC design pattern, what is happening is that my application is not handing back the connections back to the pool, even with all the properties set in the connection pool. The application is using Dispose from IDispose, which I set in the unload method of my aspx page. In debug, this method is being hit every time, but even with this, and looking in SQL Plus at v$session table, the connections are still open and not closed. If I refresh the page all I am seeing are more connections being opened until the application crashes out. What is going on? Can anyone help?
|
|
|
|
|
Without seeing any of the code it's very difficult to tell you were you may have gone wrong or what is happening.
You shouldn't rely on the unload event to dispose of your connections. The data access shouldn't be bound to the presentation. You can wrap the calls in a using statement. Remember, especially with web, the connections should be opened as late as possible and closed as soon as possible. I know the language. I've read a book. - _Madmatt
|
|
|
|
|
I have an editable gridview with blank cells. User enters some numeric data in cells and also user can clicks a button to add new row to gridview. My problem is that, as soon as button click event is fired, the page refreshes & the gridview becomes empty. Can anybody tell me, how can I save values in gridview until the user saves all changes to the server in the end
|
|
|
|
|
Look at the section on Edit Mode, DataGridDemo[^]
Store the values entered in a datasource, such as a datatable that is bound to the grid. I know the language. I've read a book. - _Madmatt
|
|
|
|
|
How is it possible to change the database which the login control is using based on the selection of the database name from a dropdown control?
Thanks
|
|
|
|
|
Create the ConnectionString dynamically based on the selection.
|
|
|
|
|
|
Hello,
I would like to have several settings inside the webconfig file.
i.e.
<LOB>x</LOB>
<LOB>y</LOB>
<LOB>z</LOB>
<LOB>A1</LOB>
then in C#, I would like to populate a dropdown list with these values i.e. x, y, z, A1
What is the first thing to do in the webconfig to place these settings?
Thanks
|
|
|
|
|
The first thing to do is read this, How to get answers to your question[^]
Then read a book. Even a basic ASP.NET book covers web.config file I know the language. I've read a book. - _Madmatt
|
|
|
|
|
hi,
Please note that I do know how to retrieve values from something like <appsetting> in the web config by referring to the key but I do not know how to retrieve values if there is no key for example:
<LOB></LOB>
<LOB></LOB>
<LOB></LOB>
Then how do I populate a dropdownlist with the values in these pls?
Thanks
|
|
|
|
|
You need to add a appSettings section in your web.config
i.e.
<appSettings>
<add key="variableName" value="someValue"/>
</appSettings>
Now to read that value.
string x = System.Configuration.ConfigurationSettings.AppSettings.Get("variableName");
Hope this helps, its up to you how to use this. 
|
|
|
|
|
Hi, At present I do have these settings for other things. But the new requirement is to add something like the example I showed earlier.
So is it possible to add to the appsettings sections several lines with the same key? so that I can loop through that one key to get the values i.e.
<appsetting>
<add key="LOB" value="x"/>
<add key="LOB" value="y"/>
<add key="LOB" value="z"/>
...
Is it possible to just populate a dropdown list with the values of each LOB ?
Thanks
|
|
|
|
|
No, but you can separate the values by comma in the same key. and at the coding side you can read it accordingly.
i.e.
<add key="LOB" value="x,y,z"/>
and when you read the key split the string using comma.
i.e.
string []x = System.Configuration.ConfigurationSettings.AppSettings.Get("variableName").Split(",");
|
|
|
|
|
What I exactly would like to do is as follows:
On the main page of the site, there will be a dropdown with the names of the databases. On selecting a database name from the drop down list control, then the system will use one of the connectionstring settings which points to the relevant database.
so there are several connectionsettings i.e.
<....connectionstring...database=x..../>
<;....connectionstring...database=b..../>
...
I would like to make sure the correct connectionstring is used.
How can I do this please?
Thanks
|
|
|
|
|
Why save them in the web config? only config settings should be there.
How about a separate xml file. You then have total control over the format of the xml and can read it using the XMLDocument object.
|
|
|
|
|
I am interested in the connectionstrings as there will be several conectionstrings in the web.config i.e. one for each database.
The database is selected on the start page and then the correct connectionstring should be used.
What do you think now?
Thanks
|
|
|
|
|
The difference with connection strings is threefold.
Firstly the nodes are distinguised by their name attribute
Secondly they are, or can be secured. Connection strings can be encrypted, stored in the registry and so on
Thirdly, they are easily maintainable in the IIS managment console.
Web,Config is the right place for them.
|
|
|
|
|