I've got a checkbox list with 12 items to choose from. If one of them is chosen i postback and dynamically add 3 controls to a panel. Here's a snippet of the code i'm using...
For i = 0 to cblPatientGoals.Items.Count -1
If cblPatientGoals.Items(i).Selected
Dim myLabel as new Label ()...
I started to explore using the global.asax file but never really found anything concrete that fully showed what i wanted to do. I'll have a look at those examples.
Thank You for the tip.
I have a question regarding formsauthentication and page authentication in general.
I am capturing 3 session variables once a user successfully logs into the application. On various pages throughout the application i use these variables. On *all* the pages, if the session("username") is not...
Ah well, was worth a try. It's not going to be that difficult to show one person where to save a file, but i was hoping to make it as easy as possible.
Thanks for the input.
I should have mentioned that this is for an in-house process that is not accessed by anyone outside of the network and will be used by only one person. Security aside, can it be done?
I have a dataset/datagrid that i want to export to excel. I have successfully done this using the included code, however, when i click the button to "Export to Excel" it brings up a "save as" dialog box in which i have to choose where to save it. What i'd like to do is automatically save this...
I've accomplished similar things like this using 2 methods, both are probably not right, but the end result is what i wanted.
First you could try using a datareader
Dim myConnection as New SqlConnection...
myConnection.Open()
Dim myCommand as SqlCommand= myConnection.CreateCommand()...
Hamking01,
This is what i've used for all of the applications that i've developed for preselecting a dropdownlist after getting the information from a database. I've edited alot of it out to simplify it some but i hope i included enough so it helps. I tried to add "..." to sections of the code...
That could be too, i'll give that a try, however, i *think* i may have found a workaround...or maybe this is just "how you have to do it"
For each itmCADStatus in cblCADStatus.Items
If itmCADStatus.Selected Then
strCADStatus &=", " & itmCADStatus.Text
ElseIf strCADStatus = "" THEN
strCadStatus...
I was wondering if anyone has any clean (i'd even take not so clean) method of updating a database when a checkboxlist has NO items selected. The page used to insert the data (using a sql insert into...) works just fine, however, when i try to update the database from an edit page (using a sql...
I was wondering if anyone has done this. Here's what i'm looking to do.
i have 4 .pdf files. Each one gets updated on a daily basis. What i would like to do is have a user open an .aspx page click a link, whether it be a linkbutton or href, or a regular asp:button...and have those 4 .pdf...
I am having a bit of an issue with connecting to an Access database across servers.
The Access database is on a mapped drive (G:) from the IIS server. The path would be G:\db\database.mdb
When i hit the aspx page, as soon as i click the link that would run the sub to hit the database, i get...
I was wondering if anyone has ever created a vertical datagrid? What i'm looking to do is have my headers be vertical, along the left, and all the values displayed horizontally going across. So, as best i can demonstrate:
David's DataGrid
----------------------------------------------------...
Exactly! I did find one javascript control that did exactly what you stated, with the exception that is worked great in the demo, but i have yet to get it working. The example showed a listbox that wasn't populated from a database. I'd be interested in seeing what you come up with! Someday...
Thanks for the reply, but that's not what i'm looking to do. I have a an alphabet list of A-Z that if the user clicks "A" the listbox populates with all employers beginning with "A's" etc. Once the listbox is populated, i want to have the ability to begin typing in the name...
I have a listbox that get's populated from a database when a user clicks an employers name from an A-Z list. So, if the user clicks "A" the listbox get's populated with all employers that begin with "A". That works well. The problem is, there are quite a few...
I am running into a problem where i have a dropdown that has 2 variables in it. A greater than 7 and a Less Than 7.
Here is the issue. In the database, due to importing issues, the datatype of the "hgba1c" field is a varchar. When i try to filter out values that are less than 7...
Ok, i tried that out and it worked great, however, i think i left out one important factor in the original question.
Let me see if i can clarify it...it's difficult when i can't show someone.
Ok, the user picks a person from a list and chooses "View Results"
This in turn...
I'm thinking it's pretty simple what i want to do, however seeing as i don't know how to do it, makes it more difficult. Anyways...
I want to create a datagrid or a datalist...whichever allows the most flexibility and need it to look like this.
|DATE1 | DATE2 | DATE3 |...
Gary,
my friend, i owe you a beer! That worked fantastic. I am relatively new to ASP.NET and my syntax skills, simply put, suck. I am learning new little tricks here and there though.
Speaking of...anyone have some resources on ASP.NET syntax? and/or examples?
Thanks again Gary!!
dc~
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.