Showing posts with label hii. Show all posts
Showing posts with label hii. Show all posts

Saturday, March 31, 2012

Table? Frameset or User control?

Hi!

I am new with ASP and now developing a web application that having two navigation menu.One is at left and another is at top side. When a user click a hyperlink at left, the top navigation menu will change according the hyperlinks at left. And when the user click the hyperlink at top, it will display the required page at bottom right hand side.

I have no idea whether the navigation menu develop as frame, table or user control. Can anyone sharing your opinion? Thanks.Hello, the menu should be a usercontrol, and you should have a look at this page to know how to setp up your pages:

Master Pages

regards

TableAdapter Insert (Primary Key)

Hi

I have just started to learn ASP.Net. However I have some experience with ASP.

Anyway I have created a asp-form which should create a new entry in the database after you have clicked the submit button.

I created a tableadapter and following simple code:
tbUsersTableAdapter topAdapter=new tbUsersTableAdapter();
topAdapter.InsertUser(DateTime.Now, DateTime.Now, DateTime.Now,true,false, txtNickname.Text, 2, txtEMail.Text, txtPassword.Text,"");

Here is the SQl Command without the primary key:
INSERTINTO[tbUsers] ([CDate], [MDate], [ADate], [Active], [Activated],[Nickname], [Role],Email, [Password],[IP])VALUES (@dotnet.itags.org.CDate, @dotnet.itags.org.MDate, @dotnet.itags.org.ADate, @dotnet.itags.org.Active, @dotnet.itags.org.Activated, @dotnet.itags.org.Nickname, @dotnet.itags.org.Role, @dotnet.itags.org.eMail, @dotnet.itags.org.Password, @dotnet.itags.org.IP)

This works fine as long as I put the ID (Primary Key) into the Insert command. But I don't know how I can find out the next avaiable primary key. I have thought it would be automatically incremented. Anyway I went to the properties of the tableadapter and there was a property which I switched on for my primary key field "AutoIncrement". However it still doesn't work.
Before I used to work with MS Access and OleDB Connection. There I just skipped the Primary Key Value and it has been created automatically. Here I get an error message that the primary key can't be null.

I hope somebody could help me with that or has an idea what I'm doing wrong.

thx

Hi

I searched and tried out a lot of things. Finally I found the problem today. I had to open the table with the Server Explorer. Actually I set my ID field to Primary Key but I forgot to set the Identity Column. After I set the Identity Column to my ID field it worked... great;-)))) Now I can just add a new record with skipping the Primary Key and it will be generated automatically.


thx all

Wednesday, March 28, 2012

TableLayoutPanel Control

Hi!

I am trying to create an Excel-like table in Visual Basic 2005 / Visual C# 2005 EE.

I use TableLayoutPanel control to present the data.

However, I found out that this table layout is not very efficient, like: I can't draw the border for specific cell, nor can I resize one cell to be bigger than others.

Is there a way to do this? Or maybe there is a better way to create an Excel-like table?

Many thanks in advanced!!!!

Hi,

Is this a web control??


Actually, I use Visual Basic 2005 EE for Windows Form. I don't know if VWD 2005 EE has the same control or not.

I am trying to build an application that run in Windows OS. The application will need this Excel-like table layout.

Thanks for you help and time, really appreciated that.


Can somebody help me please?

Many thanks in advanced!

Thursday, March 22, 2012

Taking off the Address Bar and..

hi

I'Dont know to much about JavaScript, anyway
I'm using JavaScript (NewWin = open('" + UML + "','null')) to open a new
windows , and it works fine, but now, I dont want to show in the new window
neither Address Bar nor Standard Buttons Bar.

I think there is a parameter to do it, also I′m using IE 6.0

Any Sugg
Thks

Kendo a google on it, there are a series of params and that is indeed an
option. It's not an ASP.NET issue but rather a clientside/javascript one.
I'd start there.

--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com

"Ken" <Ken@.discussions.microsoft.com> wrote in message
news:64F77FE9-9B17-4F6C-B0F3-8D69B86E238C@.microsoft.com...
> hi
> I'Dont know to much about JavaScript, anyway
> I'm using JavaScript (NewWin = open('" + UML + "','null')) to open a new
> windows , and it works fine, but now, I dont want to show in the new
> window
> neither Address Bar nor Standard Buttons Bar.
> I think there is a parameter to do it, also Im using IE 6.0
> Any Sugg
> Thks
> Ken
NewWin = window.open (<url>, <windowName>, 'location=no,toolbar=no');

HTH

"Ken" <Ken@.discussions.microsoft.com> wrote in message
news:64F77FE9-9B17-4F6C-B0F3-8D69B86E238C@.microsoft.com...
hi

I'Dont know to much about JavaScript, anyway
I'm using JavaScript (NewWin = open('" + UML + "','null')) to open a new
windows , and it works fine, but now, I dont want to show in the new window
neither Address Bar nor Standard Buttons Bar.

I think there is a parameter to do it, also Im using IE 6.0

Any Sugg
Thks

Ken

Taking off the Address Bar and..

hi
I'Dont know to much about JavaScript, anyway
I'm using JavaScript (NewWin = open('" + UML + "','null')) to open a new
windows , and it works fine, but now, I dont want to show in the new window
neither Address Bar nor Standard Buttons Bar.
I think there is a parameter to do it, also I′m using IE 6.0
Any Sugg
Thks
Kendo a google on it, there are a series of params and that is indeed an
option. It's not an ASP.NET issue but rather a clientside/javascript one.
I'd start there.
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"Ken" <Ken@.discussions.microsoft.com> wrote in message
news:64F77FE9-9B17-4F6C-B0F3-8D69B86E238C@.microsoft.com...
> hi
> I'Dont know to much about JavaScript, anyway
> I'm using JavaScript (NewWin = open('" + UML + "','null')) to open a new
> windows , and it works fine, but now, I dont want to show in the new
> window
> neither Address Bar nor Standard Buttons Bar.
> I think there is a parameter to do it, also Im using IE 6.0
> Any Sugg
> Thks
> Ken
NewWin = window.open (<url>, <windowName>, 'location=no,toolbar=no');
HTH
"Ken" <Ken@.discussions.microsoft.com> wrote in message
news:64F77FE9-9B17-4F6C-B0F3-8D69B86E238C@.microsoft.com...
hi
I'Dont know to much about JavaScript, anyway
I'm using JavaScript (NewWin = open('" + UML + "','null')) to open a new
windows , and it works fine, but now, I dont want to show in the new window
neither Address Bar nor Standard Buttons Bar.
I think there is a parameter to do it, also Im using IE 6.0
Any Sugg
Thks
Ken