|
Ok, I got your point
You can do with hidden controls or session variable.
When you clicked on button set the value in hidden variable or session variable
and then access that variable in javascript function with the help getElementById method.
Parwej Ahamad
g.parwez@gmail.com
|
|
|
|
|
I have an html form that I want to send to an access database. I want a user to be able to volunteer to work a specific timeslot at a charitble function. Currently, each row is a timeslot and asks for name, phone and email then has its own submit button at the end of the row. I want the submit to update a database table and, if possible, display the name but not the phone and email back in the form to prevent a second person from taking the same timeslot. I have no coding experience except html and css so do not know how to write the code to do this. Everything in my site is currently written in html and style sheets.
Thanks for any help!
rick8s
|
|
|
|
|
http://www.google.com.au/search?sourceid=navclient&aq=t&ie=UTF-8&rlz=1T4ADBS_enAU225AU226&q=C%23+access+database[^]
If you find winforms examples on the web, they are using the same libraries and will work inside ASP.NET.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Does anyone have some sample code to use adsi to ad a certificate mapp to IIS. I have the script code but have not been able to get it to work under an ASP or asp.net page. I prefer VB but C# will also work. I am getting Generic errors using the invoke method in asp.net for client mapping. It is giving DISP_E_UNKNOWNNAME I have verified all the paths usernames and other info. This is running on a stand alone machine that is W2003 Server with IIS and VS2005 and 2008 installed. Any help or pointers anyone can give would be appreciated.
|
|
|
|
|
Hi,
I am using multi lang. web site using sessions & master page, resourse files. ex: default.resx, default.fr.resx, default.be.resx...
with a single page.. default.aspx.
Now , From external link, want to connect the page with choosen lang by a querry string.
suggest me the best way! Thnx
|
|
|
|
|
This isn't the way that localized resource files work. Based on the currently selected culture, ASP.NET will load the resources from the appropriate resource file. Your users will get the appropriate resource information based on their local machine settings.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
How to write arabic by default in a textbox in asp.net webform?
I need to swtch to arabic langwhen focusing in this textbox.
Thanks in advance
|
|
|
|
|
I don't think you can change character sets for just one textbox.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
please how do i set the gridview cell width? I am binding the gridview to a datatable. I wrote something like this in the
gridview_databound event
grdview.cells(0).width=100
but it does not work
pls help
|
|
|
|
|
Hi there. You need to do this in the RowDataBound event, yes?
|
|
|
|
|
- or -
If you are defining your <Columns> in your grid, you could use the <ItemStyle> property of the given column to declaratively set the width.
|
|
|
|
|
Oh, you cross posted this. Please don't do that.
You got the same answer in both places, you should just define the width in your aspx, not in code.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi all,
From past few days i have been trying to learn AJAX. After some R & D , i decided to give it a try in my appl. So first i installed Ajax extensions for VS 2005.
As discussed in a tutorial for paging in a grid view without postbacking, i first added a script manager to the page.Then i added an update panel to the page and added a gridview in the update panel...
Intially it gave an error as 'sys is undefined' but then i sorted out that prob.
Now the problem is that when i click the pager, it still postbacks...
what m i missing....
When you fail to plan, you are planning to fail.
|
|
|
|
|
Set ChildrenAsTriggers="true" in the update panel.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
its already set to true...
When you fail to plan, you are planning to fail.
|
|
|
|
|
Hi All,
I have a issue while converting .2003 web application to .net 2005 web application, after migration i am able to run the project as a web site. the issue here is while trying to open the screens in design mode it throws lot of errors in the HTML tags, and i cant able to view the design. is there is any way i can avoid this error. If any tools are available for this migration work apart from VSS Wizard, please provide me the link also..
Advance Thanks,
Umashanker.K
|
|
|
|
|
Fix the errors in the HTML.
|
|
|
|
|
Why would you want to view the design ? I mean, the designer is really not a great tool, it's far better to write your own script and run the page to view it.
But yes, you can turn off the HTML validation, but you'd do better to fix your HTML.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Besides memory consumption, are there any issues I should be aware of when keeping DataTables in a session object?
Here's my situation:
When a user adds a new entry into the database, there are of course a pile of related child tables that have to be filled in as well. When working with a new record, there won't be an valid ID for the parent record so I'm doing everything in memory until the user hits 'save'. I've already got a couple of my GridViews working fine but I was wondering if there where any gotcha's.
Thanks!
|
|
|
|
|
My 1 cent to this
1) May be you can try using a staging table in db to store this temporay values and when the user hits save; copy from staging to the main table.
2) Or Create a view state object and add the data table to it.
Thanks
Laddie
Kindly rate if the answer was helpful
|
|
|
|
|
1) So have a set of duplicate temp tables in the database? Maybe use the user's id as the record IDs.
2) Question, why would you use view state over session objects? I guess the view state would save memory on the server but it wouldn't the increased page size slow down the user's browser? I guess using AJAX update panels would help with that.
Thanks for your response!
|
|
|
|
|
1) Ya, UserID,Session ID cound serve as he primary key and when the user clicks save copy and insert to the main table and delete the same from temp table.
2)
a) The good thing of View sate over the session variables is that you can dispose then once done with it.
b) Update panel does nothing more than hiding the user from seeing a full page refresh by interepting post back.Behind the Scenes it does everything that needs to be done with out its presence.
Thanks
Laddie
Kindly rate if the answer was helpful
|
|
|
|
|
Hi, what I do in those cases, is set the related column in the child table as not required(allow nulls), then I save the parent data and I get the new ID, with that new ID I will fill all the child tables and then I save them.
Geek to the bone.
|
|
|
|
|
Create a custom class that's stored in Session with it's own Save() method that will write to the DB. The DataTable probably has more information than you need and will waste more memory by storing it in Session. You can bind all your GridViews to the class just as easy.
|
|
|
|
|
That seems like the best solution. Use an array to hold the data and built an interface around it.
Thanks!
|
|
|
|