|
Don't use "Urgent Help Needed" in the subject. It is poor etiquette here and your question will be ignored by those who can help the most
only two letters away from being an asset
|
|
|
|
|
ASP is different to ASP.NET, you need to say ASP.NET.
If you get the data from Access, it should come back in a DataSet or Data Table. Just make that the data source of a grid, call it's DataBind method, and you're done. You can format it, and change how it looks, but that's all there is to displaying it.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"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 )
|
|
|
|
|
I recommend you take some time off this project to work through a book on ADO.NET, and possible a book on your chosen language.
A dataset is returned from Access. By definition, it is an object within the language, there is no extension or folder, nothing is stored in the project directory.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"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 )
|
|
|
|
|
Could you please send me code how to send an email in ASP.Net 2.0
seema
|
|
|
|
|
Type "send mail asp.net" in to the search box above and click Go!
only two letters away from being an asset
|
|
|
|
|
using System.Net.Mail;
SmtpClient c = new SmtpClient("host");
MailMessage message = new MailMessage("from@email.com","to@mail.com","test","body");
c.Send(message);
|
|
|
|
|
Hi,
Problem: I have a web application that is tied into a Windows Workflow that tracks orders. In the portion of the application that allows the user to set/reset the state of an order I have a gridview and a formview. The gridview displays the meat of the order data as stored in the database, and the formview is where I'd like to store the buttons that will perform the updates and progress the order states.....etc.
I'd like to set the visibility of the different buttons in the formview dependant on the current state of the Workflow. I can get the current state of the order no problem from the gridview's OnItemCreated event.
I've tried to access the FormView control via: FormView fv = this.Page.FindControl("fvOrderState") as FormView; but hitherto I am unable to get any reaction from the FormView.
I would appreciate any and all suggestions and/or leads for this problem.
Thank you.
An American football fan -
Go Seahawks!
Lil Turtle
|
|
|
|
|
In my Web form I have DataGrid1 and want to
add 2 cols in DataGrid1.DataKeyField property.
If I had 1 col. it would be DataGrid1.DataKeyField = "ColName1",
but how can I add another more "ColName2"?
|
|
|
|
|
Hi,
If you r working on asp.net 2.0 then to get this facility you should use GridView Control.
Gridview has property called "DataKeyNames" which you can set to comma separated column names and you can access their values as following.
gv.DataKeys[keindex].Values[columnindex].ToString()
I hope this will help you.
Thanks and Regards,
Chetan Ranpariya
|
|
|
|
|
hi i'm trying to format TemplateColumn in datagrig wich is generated in codebehind file
the problem that TemplateColumn type hasn't DataFormatString property.
can you tel me how settings format in codebehind for a TemplateColumn
Thanks in advance!!!
|
|
|
|
|
In essence the Template is just a class that knows how to do dynamically
add other controls. So you'd have to write that class. Here'a a Microsoft
example:
Clickety[^]
Regards,
Satips.
|
|
|
|
|
My boss wanted me to make a data entry form so Jane can type customers' email addresses into our database. It needs to have two fields: store number and email address, and a submit button that inserts into the mailling list. ON my resume, i didn't put that I knew SQL....but yet I am still being asked to do this, can any one help me?
|
|
|
|
|
Just Create one form where you will collect the Store Number and Email and store it in the Database and then use the SMTP to send it to all of the Emails.
Regards,
Satips.
|
|
|
|
|
oh, ok thanks that helps with that part,
how do i attach or make the submit save the information on the forms work? or be stored?
|
|
|
|
|
Just drag and Drop one Button Control and just Double click that button and on the button_click write the code for storing it in the database.
Regards,
Satips.
|
|
|
|
|
I dont think I can do that Using Dreamweaver. :/
|
|
|
|
|
That is entirely Different.
You can simply do with the Asp.net Control itself.
Regards,
Satips.
|
|
|
|
|
ok i set up the page http://webice.net/addresses/addresses.asp BUT getting it to work with the MS access file, i don't know how to do that.
|
|
|
|
|
Hey guys
I have a datetime field in database table(mySQL) and I want to get distinct DATE not distint DATETIME from that table. Any idea how to get it???
|
|
|
|
|
if your MySQL version is 4.1.1 or above you can use the DATE() function on your query, this function extracts just the date part from a DATETIME value
i.e.: SELECT DISTINCT DATE('your_datetime_fieldname') FROM 'your_table'
hope that helps... and works hehe...
-- modified at 12:35 Thursday 14th June, 2007
maybe it's on the wrong forum but oh well...
|
|
|
|
|
its 4.0 dude n thats the real problem...
|
|
|
|
|
Here is my requirement :
users has to able to create their custom forms through web interface. it should more or less equal to visual studio 2005 deisgner. I come across many articles and done some work around to create a drag and drop scenario in web application for controls but i finally ended with nothing.
Again i changed layout for that maodule :Form Designer:
i came up with linear design which is having a property window on right side holding few common properties for most controls like Control name, control type, height, width etc.
I have another layout having multiple rows & 2 columns(like Left & Right), in each cell i assigned a link button.
Here how i planned to work it out:
When user click on any cell, right side properties will be visible to user and user can select the controls of his/her choice setting some properties to it. Upon clicking save button (which will be located in the property window) program will generate a control at the link button place.
Problems am facing :
I could not able to regenerate the controls after postback done. I could able to save & load control properties from array but could not able to establish the same controls after postback done.
can anyone give me references or suggesstions how to handle multiple dynamic controls after
postback?
from:
krishna
|
|
|
|
|
Some general advice for working with dynamic controls- Always assign dynamic controls and all of their naming containers explicit ids.
- Always recreate your dynamic controls in either the page's
OnInit method or Init event handler. - Ensure that you assign the same id to your controls and all of their naming containers on initial creation and at each postback. Assign the ids at the time you recreate your controls.[
OnInit method or in Init event handler] - Ensure that you place the controls in the same naming containers on the page on initial creation and at each postback. Site the controls at the time you create them.[
OnInit method or in Init event handler] The ASP.NET page model is going to use a combination of UniqueId , ClientId , and positional association within the control tree in order to restore your control's ViewState, match up post data, and raise postback events. In order to make sure that your controls are created properly for that processing to happen, your best bet is always to preform the actions in the page's OnInit method or Init event handler, as I've beaten to death above.
I'd suggest that you take a peek at the Lifecycle of a Page[^]. Even though that article was written for .NET 1.0, it is still accurate for versions 2.0 and 3.0. It may also prove helpful for you to download a copy of Lutz Roeder's Reflector[^] and look over the implementation of the Page class.
Hope that helps.
--Jesse "... the internet's just a big porn library with some useful articles stuck in." - Rob Rodi
|
|
|
|
|
Hi jesse,
Thanks for your valuable suggestion.
I am doing the same steps and also following robbieMorris sample at >
http://www.eggheadcafe.com/articles/extendtextboxviewstate.asp , here he clearly demonstrated creating controls runtime as well as handling them at postback & in viewstate.
In my scenario i took two rows and two columns.
> I have linkbuttons in each cell
> upon clikcing on linkbutton a window will be enabled at right side (assume it as property window)
> From that window user will select controls from a dropdown list (like text box, label etc), enter name, height, width for that controls (as we do in property window).
> upon hitting on save button in that property window, my program will create a runtime control.
> next he'll click linkbutton in another cell and follow same procedure for creating controls.
> but at this point am facing problem though am following Robbie Morris concepts i dont know control is not creating as well as i am loosing last control which i created.
appreciate ypur help on this !!!
From,
Krishna
|
|
|
|
|
If you are following the advice that I posted and the approach that Robbe uses in his tutorial, then I don't see anything in your description that would indicate a design issue. At this point, without looking at some of the code, I don't think that we will be able to help you further.
I'd suggest that we start by looking at the relevant snipits where you recreate the controls on postback / Save button click.
--Jesse "... the internet's just a big porn library with some useful articles stuck in." - Rob Rodi
|
|
|
|