Showing posts with label vs2005. Show all posts
Showing posts with label vs2005. Show all posts

Wednesday, March 28, 2012

TableAdaptor Update Access database

I used the wizard in VS2005 to create my connection, dataset, and tableadapt
or
I have a typed dataset named dsUserInfo
I have a tableadaptor named taFillUserInfo
I would like to on the vb side be able to do update the database when a
button is clicked executing the following code.
if me.textbox1.text = "x" then
taFillUserInfo.text1 = me.textbox1
else
some message
End if
What I can't get is how to "call" my tableadaptor taFillUserInfo to get the
column names.Ysgrifennodd Andre:
> I used the wizard in VS2005 to create my connection, dataset, and tableada
ptor
> I have a typed dataset named dsUserInfo
> I have a tableadaptor named taFillUserInfo
> I would like to on the vb side be able to do update the database when a
> button is clicked executing the following code.
> if me.textbox1.text = "x" then
> taFillUserInfo.text1 = me.textbox1
> else
> some message
> End if
> What I can't get is how to "call" my tableadaptor taFillUserInfo to get th
e
> column names.
>
I can't remember if this answers your question directly, but it should help:
http://www.peredur.uklinux.net/TypedDataSets.pdf
This example project (which is really about forms authentication), uses
a Typed DataSet. It definitely shows you how to use the Typed DataSet
using the column names:
http://www.peredur.uklinux.net/Form...ticationSln.zip
Note that the zip file contains a complete .NET solution. I cannot
guarantee that it is virus-free. I think it is; but I can't guarantee
it. So please examine the code and recompile it before running it.
Both the above use C# rather than VB, but I don't think that should give
you too much trouble. It might even persuade you to use C# :)
HTH
Peter

TableAdaptor Update Access database

I used the wizard in VS2005 to create my connection, dataset, and tableadaptor

I have a typed dataset named dsUserInfo
I have a tableadaptor named taFillUserInfo

I would like to on the vb side be able to do update the database when a
button is clicked executing the following code.

if me.textbox1.text = "x" then
taFillUserInfo.text1 = me.textbox1
else
some message
End if

What I can't get is how to "call" my tableadaptor taFillUserInfo to get the
column names.Ysgrifennodd Andre:

Quote:

Originally Posted by

I used the wizard in VS2005 to create my connection, dataset, and tableadaptor
>
I have a typed dataset named dsUserInfo
I have a tableadaptor named taFillUserInfo
>
I would like to on the vb side be able to do update the database when a
button is clicked executing the following code.
>
if me.textbox1.text = "x" then
taFillUserInfo.text1 = me.textbox1
else
some message
End if
>
What I can't get is how to "call" my tableadaptor taFillUserInfo to get the
column names.
>
>


I can't remember if this answers your question directly, but it should help:

http://www.peredur.uklinux.net/TypedDataSets.pdf
This example project (which is really about forms authentication), uses
a Typed DataSet. It definitely shows you how to use the Typed DataSet
using the column names:

http://www.peredur.uklinux.net/Form...ticationSln.zip
Note that the zip file contains a complete .NET solution. I cannot
guarantee that it is virus-free. I think it is; but I can't guarantee
it. So please examine the code and recompile it before running it.

Both the above use C# rather than VB, but I don't think that should give
you too much trouble. It might even persuade you to use C# :)

HTH

Peter

Monday, March 26, 2012

Tables arent sized correctly in VS2005

Im using visual studio to make my website, but im having problems with tables every time.

I use the mnouse to resize the tables cells, but every time they are shown totally wrong! If i place a table with to columns and a width of 800px and then set the left coulm to be 50 px then the shown lengt is a third of the table of that column. Also in the preview.

I havent seen this problem in dreamweaver, so i dont know if this is a setting or something that i have to set..

what does the STYLE property look like on the <table> tag?

Are any CSS classes being inherited?


Well it seems like that if i drag a cell in a table, only the width of this cell is being set and not the one in the next cell. Which means that when i get these strange sizes, then the table have the width 800px, but the first column have a width of 50px and the next have the width 150 (just and example). If i then type the proper lenghts in to the style field, then i can make it display properly.

Is this a bug in VS perhaps (a rather big bug i would say)

I would like the drag the sizes around, so that it is easier to see


not sure I follow... but remember that CSS goes down to the lowest level. If you have two colums and you set cell1 to 50 and cell2 to 50 then you get 100... if you want the table to 800 and only cell1 to 50 then make sure that cell2 has NO WIDTH SET...

I've found that NO designer is great for HTML. You are almost always better off doing it yourself from the html view.

Tables in VS2005

Hello,

I am new to ASP.NET and my question, I suspect, is a simple one. I want
to implement comments for an article. A single comment consists of a
table with 2 rows in it (author info and the comment text). Some
articles will have many comments. What server side control could I use
to implement this type of functionality?

If I remember correctly in classic asp you just built the html for your
tables and did Response.Write. I suppose I could do the same thing
here, but that's probably not in the spirit of asp.net. Anyway, what is
the right approach here?

ThanksLook at the Repeater control or a DataList control.

<%= Clinton Gallagher
METROmilwaukee (sm) "A Regional Information Service"
NET csgallagher AT metromilwaukee.com
URL http://metromilwaukee.com/
URL http://clintongallagher.metromilwaukee.com/

"Frank Rizzo" <nospam@.nospam.com> wrote in message
news:eI0m78U7FHA.3684@.TK2MSFTNGP12.phx.gbl...
> Hello,
> I am new to ASP.NET and my question, I suspect, is a simple one. I want
> to implement comments for an article. A single comment consists of a
> table with 2 rows in it (author info and the comment text). Some articles
> will have many comments. What server side control could I use to implement
> this type of functionality?
> If I remember correctly in classic asp you just built the html for your
> tables and did Response.Write. I suppose I could do the same thing here,
> but that's probably not in the spirit of asp.net. Anyway, what is the
> right approach here?
> Thanks

Tables in VS2005

Hello,
I am new to ASP.NET and my question, I suspect, is a simple one. I want
to implement comments for an article. A single comment consists of a
table with 2 rows in it (author info and the comment text). Some
articles will have many comments. What server side control could I use
to implement this type of functionality?
If I remember correctly in classic asp you just built the html for your
tables and did Response.Write. I suppose I could do the same thing
here, but that's probably not in the spirit of asp.net. Anyway, what is
the right approach here?
ThanksLook at the Repeater control or a DataList control.
<%= Clinton Gallagher
METROmilwaukee (sm) "A Regional Information Service"
NET csgallagher AT metromilwaukee.com
URL http://metromilwaukee.com/
URL http://clintongallagher.metromilwaukee.com/
"Frank Rizzo" <nospam@.nospam.com> wrote in message
news:eI0m78U7FHA.3684@.TK2MSFTNGP12.phx.gbl...
> Hello,
> I am new to ASP.NET and my question, I suspect, is a simple one. I want
> to implement comments for an article. A single comment consists of a
> table with 2 rows in it (author info and the comment text). Some articles
> will have many comments. What server side control could I use to implement
> this type of functionality?
> If I remember correctly in classic asp you just built the html for your
> tables and did Response.Write. I suppose I could do the same thing here,
> but that's probably not in the spirit of asp.net. Anyway, what is the
> right approach here?
> Thanks

TabPage Control ?

Hello,

I want to create a TabPage control for my web application like one page layout with 2 different pages, but in the toolbox VS2005 doesn't have that option, So instead of creating 2 different pages and directing from one to the another, I'm wondering if I could use the TabPage control to keep one page layout and have the ability to flip back and fourth from one page to another, Does anyone knows how to do it and really appreciated if have any tips or suggestions on how to accomplish this, thanks

Have you considered using the ASP.NET AJAX TabControl or using a MultiView control to simulates Tabs?


I would consider to try both if it works, How do you setup the ASP.NET AJAX TabControl in Visual Studio 2005 ? In the toolbox control it doesn't have any TabControl option, all I have is the MultiView in the toolbox but I'm not sure how to setup the multi page inside the MultiView control, Can you guide me through this? thanks


Refer the the link below for an example on using the ASP.NET AJAX TabControl.

http://www.asp.net/learn/ajax-videos/video-156.aspx

Here are a few links for the MultiView Control.

http://www.codeproject.com/aspnet/TabControl.asp

http://www.c-sharpcorner.com/UploadFile/mahesh/Multiview10092005215233PM/Multiview.aspx?ArticleID=ad731f33-820e-4968-89fa-393c43872384

http://www.internet.com/video/ Scroll down the leftside under Developer Videos the Using ASP.NET 2.0 MultiView Control is the last one.

Hope these help.