Showing posts with label website. Show all posts
Showing posts with label website. Show all posts

Thursday, March 29, 2012

Please Fix Form Post in Whidbey

I used to have forms like this that would post the information to the next website (listed in Action). This simple task has become onerous in VS.NET. Please please come up with a simple correction for this! Maybe a new control or something? I've seen some commercial controls attempt to use server transfer (not quite what I wanted). I've also tried doing it myself, but the next page will never display and it needs to because it has the result in HTML format! Come on...this was a 5 second deal in HTML and weeks in ASP.NET!!!!

<form method=post action="https://website">
<font size=+1>Special Order</font><br>
<input type=hidden name="PartNo" value="S-001">
<input type=hidden name="Item" value="Special Order">
Price: $<input type=text name="Price" value="0" size=10>
<input type=hidden name="Price" value="m-Price;10">
... and so on

</form>You can now in Whidbey add a PostTargetUrl attribute to the buttons control. When you press a button that has the PostTargetUrl attribute specified, the page will post the data to the specified target.

<asp:Button … PostTargetUrl="MyPage.aspx" …>
There are several ways to post to other urls in v1.* today:
(1) Use regular <form> tag, without any runat=server attribute or controls.
(2) Use javascript to change the server form's action attribute on the fly.
(3) MetaBuilders.com has a free custom server form with action enabled.
(4) My WilsonWebForm enables both action and multiple server forms.

Monday, March 26, 2012

Please help

I have developed a website in c# and I am facing a
strange problem.It is like this

When I am browsing my site and one time everything runs
fine and fast. But sometime what happens when I click on
the link on any page it does not do any thing but the top
flag starts moving as if it is doing something. When I
stop the browser by clicking on the cross button and then
click on the same link it starts working and I am able to
go to that linked page and same goes for any button.
There is no specific link or button which behaves in this
manner it could be anylink or button when clicked will
not do anything but top right flag moves all the time.
Stop the browser if lucky it will work.

Help is really appreciated.

Regards
TripHi,

Is there any evidence 4 application / asp.net recycling in event viewer?

Natty Gur[MVP]
Phone Numbers:
Office: +972-(0)9-7740261
Fax: +972-(0)9-7740261
Mobile: +972-(0)58-888377

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Please Help - DNS DIG

Hello,
this is a bit of a strange one and i don't know if anyone will know this. i want to be able to do DNS digs from my website. i want it to have the same functionality a dig or nslookup command line application. can anyone tell me how to implement this in an asp.net application or anywhere i can download callable dlls.
Thanks again for your help
thanks
g
I am not 100% sure, but I don't believe this functionality is inherent in ASP.Net anywhere - you'll need to do it with 3rd party components - - I believe nSoftware.com has one in its IPWorks package - I don't know of any free ones, however.
You will need access to nslookup - but you can just use the exe on the server:

protectedvoid Page_Load(object sender,EventArgs e)

{

System.Diagnostics.ProcessStartInfo psi =new System.Diagnostics.ProcessStartInfo();

psi.FileName ="nslookup.exe";

psi.Arguments ="server";//your nsserver to pass

psi.CreateNoWindow =true ;//Optional

psi.WorkingDirectory = Server.MapPath(".") ;//Execute in the local Vroot

psi.UseShellExecute =false;

psi.RedirectStandardOutput =true;

//Start the process

System.Diagnostics.Process p = System.Diagnostics.Process.Start(psi);

while (p.StandardOutput.Peek() > 0)

{

Response.Write(p.StandardOutput.ReadLine() +"<br>");

}

}

Wednesday, March 21, 2012

Please help me right if Im wrong

Hi,
Just want to make sure about some stuff before I start my website over.
Why? Because I was new to web development, and no EVERYTHING happen on the server side (asp.net) and my web application is slow, crash, etc, etc.

This is what I "realised" I should do:

1) Create my page layout in HTML.
2) Everything that don't need to happen on the server side, should be implemneted using Javascript
3) Everything else (like database talks, etc) can occur in the code behind.
4) Language specific information, like text, image names, stylesheet names (different images/stylesheets are used for different langauges)

this the right "attitude"?

make me think...asp.net ain't that "new way" of doing things...you should use it as extension to classic asp, because html + javascript = asp...right?

darn!, I miss deskop development! :sick:No!

ASP is also server side, but it was more inline than ASP.NET is. ASP is still server side, and so is ASP.NET.

The attitude you're looking for is:

ASP.NET is something you'd use in conjunction with HTML, JavaScript and CSS to make a complete web application.
I think most of the work should be done with JavaScript, if its not necessary to post the form.

Friday, March 16, 2012

please help me with ASP.net problems

Dear Sirs,

I'm a Vietnamese student. I've been developing a website for my school; as not a professional web programer, I have some problems using the language ASP.net. I'd be grapeful if you'd help me to solve some of the following troubles:

- I use a tool on left-hand toolbar called "file field" to upload a picture to a folder on the web server but I don't know what commands to be used to delete it from this folder?

- I call a confirmation box (in VB language) but I receive an error message: "It is invalid to show a modal dialog or form when the application is not running in UserInteractive mode"?

- What commands to hide or disable the back & next buttons in web browser?

Thank you for your help !

Luong trung Kien

Wellcome on asp.net forums.....
Here are your answers
1 - u use Input/output libarary , here is the reference ... http://aspnet.4guysfromrolla.com/articles/051802-1.aspx
2 - In Windows base application use, MsgBox(Prompt, Buttons,Title)
and in Web based application used Javascript message box
also see this link for reference , http://www.programmersheaven.com/mb/VBNET/161205/161205/readmessage.aspx
3 - simply used this command in code behind, BUTTON_NAME.visible = False (for hide) & BUTTON_NAME.enabled = False (For Disabled), and also u can perform this activity through designer.........

Happy Programming !
Sajjad

Hi,

The answers to your first and second questions are given above.

But for 3) - There is no way of disabling the back/forward button in a web browser, and nor should you try! The back/forward buttons are so important to web browsing that no web application should function without them. Most users on the web rely on the back/forward buttons for navigation - you should think of them as an asset rather than a problem.

Rich

please help me..... sms service

Hi evrybody, I am developing a website using asp.net with VB.net and access database.. the website is almost completed...but i have to finish one more small part. the website administrator should be able to send sms to the mobile number exist in the DB. i know that we should register to some sms provider which will supplement us with a user name and password.. I dont know how to implement it yet... and i have no clue about doing that.. I dont want to register to the sms provider yet since i am still working in the demo and i did not sell the website yet.. but i have this idea.. i hope if it will work. i have a DSL account in saudi.net (my.saudi.net.sa) company that provide me with username, pass, and numbers of free sms message and i am thinking to use them instead of creating an account in some provider. i hope if you help me in coding that to send sms message through my website using my account in saudinet. if my idea does not work, then please advice me for a provider and the code to send it if possible.. all what i can add here is that my work is stopped because of that and i will really appreciate any help here.. and please i am in hurry :)

Do you have console access to your site? If so create a queue table within your database as that your web application writes to this table. Then write a windows service to read this queue and call the SMS provider. Thus you can easily change the SMS provider.

Consuming such a web service is relatively easy, just import the wsdl to create a web reference and explore the resulting methods. It does help if the SMS provider gives you some sample code for their service. Code for other SMS providers will probably have a different interface and thus unlikely to be of help.


Hello,

This may be helpful to you,

http://www.codeproject.com/aspnet/SendingSMS.asphttp://www.zopensource.com/http://www.c4sms.com/codeExamples.asp?linkhref=dotnet