Showing posts with label guys. Show all posts
Showing posts with label guys. Show all posts

Thursday, March 29, 2012

passing values

hi guys, hello :) im new to asp.net and come from php "gasp" - anyway, i have a list of car categories and when i click an item i want it to populate the datalist with the data, ie - if you click Car1 = select * from Car1.

I already have a search facility, which calls a stored procedure which loads the data by part number. but im not sure how to do this.

the categories are in the same form, so once a category is clicked it loads the data into the same formI'm not sure I follow what the issue is... Having a button postback? Generating the results? Displaying the results?
Hi curt sorry if i confused you

basically i have this function set up

sub loaddata(s as object, e as evenargs)
dim cmd as new sqldataadapter("select * from varCategory", objConn)
objDA.Fill(objDS, "parts")
dgData.Datasource= objDS
dgData.Databind()
objconn.close()

ok now on my form i have a list of cars, and what i want it to do is call this procedure when a car is clicked, and pass on the value of that car to varCategory.

how can i do this?

Hi!

You could call it like this:

Try
cmd =New SqlCommand("usp_TrackUser", objConn)
cmd.CommandType = CommandType.StoredProcedure
cmd.Parameters.Clear()
cmd.Parameters.Add("@.varCategory", varCategory)
If objConn.State <> ConnectionState.OpenThen objConn.Open()
'execute or asggin to adpater
cmd.ExecuteNonQuery()
Catch exAs System.Exception
'show the error
EndTry

Review the next article:Call a parameterized SP in SQL

Saludos,


What is this "list"? Dropdown? Grid? Etc?

Most controls have an event you can tie to (Click, etc) you can also usually set the control to "autopostback" and allow this event to cause the page to post....

passing values from a web page into windows form application

Hi guys,

How can I pass session/application values from a web page (ASP or
ASP.NET) that is on a host company, into my cliente application?

So I can hide menus based on access permisions once the user makes the
log in in the web page by the application.

I'm using VB.NET with Web Control COM

Thank you

Bruno Alexandre
(Sintra, PORTUGAL)Hi Bruno,

You could post the values to a page from your site containing a vb6
component. The vb6 component would run in-process and with a reference to
the 'Microsoft Active Server Pages Object Library' you could then query the
session and application variables ASPTypeLibrary.Session and
ASPTypeLibrary.Application.
I have a sample program which isfreely available from a demonstration I did
on this a while back available at
http://www.crainiate.net/downloads/vb6wsdemo.zip

This component would then need to notify your application across process's,
there are a number of ways of doing this.

Your client would however need to run IIS, so this solution is limited to
windows2000 or windowsXP.

Kind regards,
James

--
Create interactive flowcharts, diagrams and UML models with ERM3 at
http://www.crainiate.net

"Bruno Alexandre" <bruno.alexandre@.filtrarte.com> wrote in message
news:uWoY6OsoDHA.2188@.TK2MSFTNGP11.phx.gbl...
> Hi guys,
> How can I pass session/application values from a web page (ASP or
> ASP.NET) that is on a host company, into my cliente application?
> So I can hide menus based on access permisions once the user makes the
> log in in the web page by the application.
> I'm using VB.NET with Web Control COM
>
> Thank you
> Bruno Alexandre
> (Sintra, PORTUGAL)

Monday, March 26, 2012

Passing values to a pop-up window and de-activating parent window...

Hello All,

How are you guys doing today? Hope all is well.

This is my scenario...

What I want to be able to do is 3 things...first, when I click a hyperlink, I would like to display another aspx page in a pop-up window...second, I need to pass values from the parent window to the child (pop-up) and third...I also would like to deactivate the parent window when the child window is visible! Any guidelines as to how I can accomplish all of this is highly appreciated.

Thanks,

Mohammed

This sounds like something you can do with theASP.NET AJAX Modal Popup window.


You can do this using javascript as well. using window.showModalDialog() and dialogArguments. Here is link to an example:

http://www.java2s.com/Code/JavaScriptReference/Javascript-Methods/showModalDialogExample.htm


Thank you very much for your help Jon. I appreciate you getting back to me.


Hello Darrell,

Appreciate your feedback and thank you for your support.

Friday, March 16, 2012

Password Input Boxes

Hey Guys,

How would I make a password box that shows the ********** ?

Something like this
<asp:PassBox id="NewPassword" runat="server" /
Just can't find the answer.

Thank you!Hi there,

The TextBox web control has a TextMode called "Password" that does this for you.

HTH,

Covo
You would do this.

<asp:textbox id="passwordfield" textmode="password" runat="server" /
Then it will show up as ****

Keep in mind, any time you want a user to type something in, you always use the asp:textbox. But the textbox has different 'texmode's. such as single line, multi line, or password. Does this help?