|
Hi! As you've seen in the title I have a very simple problem, but I can't seem to find a good answer on the web. I have programmed a web service and a web application on my machine. Everything works great. However, it seems VS .NET has done all the work installing this on my machine. Now I want to install it on a server and don't really know how to do it. I've tried messing around with IIS, but I'm no specialist. Hence my question: do you know a good step-by-step reference that can guide me through this? Or if it's simple enough you could tell me directly!
Thank you very much!
|
|
|
|
|
I am messing with web services now, and I will give you one small advice to make some web or windows client for using the web service, cause once you will upload at remote web server you can not test the web service. If you want to install it you should publish the web service, right click on the project and press publish, then you can put the folder at the web server when you we're planning to put, it's similar like IIS, but you can search on Google, for detailed explanations. Laziale
|
|
|
|
|
Yeah I have web client for my service and everything is tested, I just want to transfer it to another local computer. I've searched on google, but I haven't found anything detailed.
|
|
|
|
|
I have a datatable which is having n no. of rows and each row has a unique field say ID.
Now I want to get a particular row for a specified ID.
eg. there are 5 rows in a datatable and the id's are
1,2,3,4 and 5 and if I want to select a row having ID = 4
What will be the code snippet for that?
Does anybody have any idea?
Thanks in advance,
|
|
|
|
|
IF your datatable hasn't got too many rows you could o the trick with:
foreach (DataRow row in dataTable.Rows)
{
if (row["ID"].Equals(4))
{
}
}
|
|
|
|
|
You can do it like this
dataTable.rows[4]["ColumName"].tostring()
|
|
|
|
|
Stick with the answer you got in the C# forum. It is the better way to achieve this.
|
|
|
|
|
i have this code:
<div>
<asp:DropDownList ID="DropDownList2" runat="server">
</asp:DropDownList><asp:TextBox ID="TextBox2" runat="server"></asp:TextBox><;asp:Button ID="Button1" runat="server" Text="Button" />
</div>
and i want when i push button, the above tools (that are bolded) create dynamically again(in c#) and if i push the button again they create again and in the end i can get their values for creating a query for doing search
has anybody idea?
modified on Wednesday, May 7, 2008 8:45 AM
|
|
|
|
|
Guys,
I am doing the following where any and all parts of the path are re-written so that all the requests are passed back to the write.aspx page during Application_BeginRequest. I do not have any httphandlers or httpmodules implemented and write.aspx file does exist. Even though my path contains a file name which exists, the server throws 404 exception.
Eg: http://<server>/home.aspx?pageid=1 > http://<server>/write.aspx/1
Eg: http://<server>/home.aspx?pageid=1&release=22 > http://<server>/write.aspx/1/release/22
Is there a simpler way of performing re-write. I did look at few articles and they way they were doing things (which ofcourse will work) but I am trying to take the simplest approach.
Shrini
|
|
|
|
|
hi friends...
i'm creating two texboxes in a Div dynamically using javascript. i want to add some space between the 2 textboxes.. how i can do this..
Thks in advance..
|
|
|
|
|
Use to force spaces, or do a div between and set the width using CSS.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
yes.. i already tried vat u suggest. both. but its not working.. any other..
when i use how much will give... ???? !!! so its not possible..
|
|
|
|
|
You could try using instead
What do you mean by its not working, be more specific.
A line break is given by a and will create a small space on the same line
|
|
|
|
|
vats 'instead'.
i tried using div with width 50%. but its not showing.
An i used line break <br> already, so that next controls will create next line..
Remind i have two textboxes in a line..
like
txtA1 --need space-- txtB1
txtA2 --need space-- txtB2
txtA3 --need space-- txtB3
|
|
|
|
|
my code is...
var newFileInputID = 'Ediv' + newFileIndex;
var newFileInput = document.createElement('div');
newFileInput.setAttribute("id", newFileInputID);
newFileInput.innerHTML = '<input id=a' + newFileIndex + ' name=a' + newFileIndex + ' type="text" readonly="readOnly" class="textbox" /> ';
newFileInput.innerHTML += '<input id=b' + newFileIndex + ' name=b' + newFileIndex + ' type="text" readonly="readOnly" class="textbox" /> ';
newFileInput.innerHTML += '<img alt="" id=c'+ newFileIndex + ' name=c' + newFileIndex + ' src="Images/delete_16x16.gif" class="images_del" onclick="DeleteDiv(this.id)" />';
newFileInput.innerHTML += '<br>';
|
|
|
|
|
Sorry I meant
You could try using <br> instead
What do you mean by its not working, be more specific.
A line break is given by a <br> and will create a small space on the same line </br></br>
|
|
|
|
|
Suppose my dynamic div width = 100%. and txt1 = 20% txt2 = 20 % .
so i want to put (100- (20 + 20 )) space between the textboxes..
in %.
|
|
|
|
|
If you want one hard right and one hard left, I'd just float them inside the div, or put them in a table.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
sorry dear .. i didnt get u..
|
|
|
|
|
my code is..
var newFileInputID = 'Ediv' + newFileIndex;
var newFileInput = document.createElement('div');
newFileInput.setAttribute("id", newFileInputID);
newFileInput.innerHTML = '<input id=a' + newFileIndex + ' name=a' + newFileIndex + ' type="text" readonly="readOnly" class="textbox" /> ';
newFileInput.innerHTML += '<input id=b' + newFileIndex + ' name=b' + newFileIndex + ' type="text" readonly="readOnly" class="textbox" /> ';
newFileInput.innerHTML += '<img alt="" id=c'+ newFileIndex + ' name=c' + newFileIndex + ' src="Images/delete_16x16.gif" class="images_del" onclick="DeleteDiv(this.id)" />';
newFileInput.innerHTML += '<br>';
|
|
|
|
|
If you have two elements and want one hard left and one hard right, you can position them easier by placing them in a table. Align one right and one left.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
but wen i tried with table , controls are showing but not in the table.
i given the table border = 2px. and tested.
|
|
|
|
|
Then your table was buggered. Fix it. If the tr/td tags are not correct, it will appear outside.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Ok.. can u please tell me how & where to include the table tag..
|
|
|
|
|
where you want the two items. The issue is that it needs to be well formed and your items to position need to be inside the table.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|