|
Can i send data through querystring and body using HTTP POST method?
mads
|
|
|
|
|
The GET method passes the data through the querystring whereas the POST passes it through the form.
|
|
|
|
|
crazy_mads wrote: What is the difference between HTTP GET and POST method?
Get means all informations send by the browser is visible. In post the information is hidden.
crazy_mads wrote: Can i send data through querystring and body using HTTP POST method?
What do u mean by body ?
|
|
|
|
|
<br />
function GetData()<br />
{<br />
<br />
var url='AJAX.aspx';<br />
<br />
<br />
var reqdBox = GetObject('txtOrderNumber','input');<br />
<br />
<br />
url = url + '?Data=' + reqdBox.value;<br />
<br />
<br />
oxmlhttp.open("GET",url,true);<br />
<br />
<br />
<br />
oxmlhttp.send(null);<br />
<br />
<br />
Now here, when i call oxmlhttp.open("GET",url,true); method, instead of using "GET" can i use "POST" and still send Data=' + reqdBox.value; as a Querystring.
Mads
|
|
|
|
|
Sorry i made mistake
Now here, can i call oxmlhttp.open("GET",url,true); method, instead of using "GET" can i use "POST" and still send Data=' + reqdBox.value; as a Querystring.
Mads
|
|
|
|
|
|
I am able to add controls at runtime but i am not able to specify the height and width of the control.How can i do it ?
Mohinder Singh
|
|
|
|
|
You should be able to. Please provide an example of what you've done.
|
|
|
|
|
Its very simple you have height and width property to control
e.g for TextBox
TextBox txt = new TextBox();
txt.ID = "ControlID"
txt.Width = 50;
txt.Height = 23;
panelSample.Controls.Add(txt);
if you don't have then use style sheet i.e css file and give class name to cssClass property of the control
Thanks and Regards
Sandeep
If you want something you never had,
do something you have never done!
|
|
|
|
|
sandeep akhare wrote: txt.Width = 50;
txt.Height = 23;
try: txt.Height = new Unit(UnitType.pixel, 50.00);
"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
|
|
|
|
|
OOPS thanks for corrections
Thanks and Regards
Sandeep
If you want something you never had,
do something you have never done!
|
|
|
|
|
Please help me out dear i am not able to get the output .
Mohinder Singh
|
|
|
|
|
when i see the width of textbox in the property window it shows 245px. Px is for pixels.
Mohinder Singh
|
|
|
|
|
hi dear i am doing this but the textbox is not being shown in the form.
Dim txt as textbox
Txt = New TextBox
Txt.ID = "SubmitBtn"
Txt.TextMode = TextBoxMode.MultiLine
Txt.Height = New Unit(UnitType.Pixel, 24.0)
Txt.Width = New Unit(UnitType.Pixel, 250)
PlaceHolder1.Controls.Add(Txt)
I am using place holder. when i dont give any height and width i get the textbox but it is small. and i want a bigger textbox.
Mohinder Singh
|
|
|
|
|
Hi, I want to create a custom textbox control in ASP.Net using C#, which extends the properties of the normal textbox control and it only allows numeric, alphabetic and alphanumeric characters depending upon the users choice. It should have a built-in client side validation for the same. Also, it should have a property called required, which when set to true, the text box also shows the property of the required field validator.
-----Have A Nice Day-----
|
|
|
|
|
What have you done so far? Anything?
|
|
|
|
|
Yes, I tried and found out that I would need to override the OnKeyPress method to track the keys and show the messages correspondingly, but, this OnKeyPress method is for Windows forms and I want it for Web.
-----Have A Nice Day-----
|
|
|
|
|
JavaScript also has an onkeypress method that you can use for the client side validation.
|
|
|
|
|
I want the textbox to do everything as a custom control, so that whenever the textbox is used in any form in any project, no code needs to be written anywhere for it.
-----Have A Nice Day-----
|
|
|
|
|
It will if you extend the control as it will inherit all of it's properties and methods.
|
|
|
|
|
I think in web you can't handle keypress event on server without a postback
|
|
|
|
|
Hi all.
When i tried to copy my web application folder and create a new copy in the wwwroot folder, with different name and settings, i am getting the following error, it was opening hitherto and i was able to make some changes and build them as well.
After i closed the IDE and reopened it, i am getting this error.
unable to get the project file from web server.Unable to open web project 'XXX' .The file path 'C:\INETPUB\WWWROOT\XXX' does not correspont to the URL 'http:\localhost\XXX'.The two need to map to the same server location.HTTP Error 401 : Access denied
I checked the webinfo file and the .sln file in notepad and found that the path is mapped correctly.
Any advise will be greatly appreciated.
Many Thanks,
Sid
If you fail for the first time , call it version 1.0.
|
|
|
|
|
krishna19 wrote: unable to get the project file from web server.Unable to open web project 'XXX' .The file path 'C:\INETPUB\WWWROOT\XXX' does not correspont to the URL 'http:\localhost\XXX'.The two need to map to the same server location.HTTP Error 401 : Access denied
Open XXX.csproj.webinfo file and change the location.
krishna19 wrote: I checked the webinfo file and the .sln file in notepad and found that the path is mapped correctly.
No problem with that
|
|
|
|
|
hi,
i am beginner developer in .net. suggest me some asp.net tutorials and .net tutorials where i can learn and understand concepts easily.
regards
Tech_spidy
|
|
|
|
|