|
How can i get values in between some tags. I have one pre tag and i want to get the value contained in the pre tag.
Eg :
I want this code<br>next line
any idea? can i use regular expressions ? how can i form a regular expression for this..
|
|
|
|
|
Use the "Ignore HTML" option when you post markup code, or use the < > buttons to insert the html code for those characters.
---
single minded; short sighted; long gone;
|
|
|
|
|
i m not telling about code project. i want to this in an asp.net application ?
|
|
|
|
|
Yes, I know, but if you don't make sure that your post shows what it is that you want to do, how do you expect anyone to be able to help you?
---
single minded; short sighted; long gone;
|
|
|
|
|
Good morning everyone.
I'm developing an application that listens to incoming TCP/IP socket connections from client applications. the client connects to my server and sends an array of bytes. My application receives it, does some calculation on the bytes and resends the modified byte array back to the client. I was pretty new to socket connections, so i thoroughly read the article "Asynchronous socket communication" here on Code Project. I managed to put up this application and it seems to work (i did not have to develop the client, that is made by another programmer).
My problem is that i was recently asked to make this service accessible also on the Internet through a website. I should put up a simple page with a textbox and a button: the user writes a HEX string in the textbox, pushes the button and he's prompted with the result.
As a complete newbie to ASP, i first tried the desperate attempt to do the old "cut&paste": after a small adjustment, the very same code i used for a c# test application (that i used to connect to my server app) compiled under ASP. As i load the page, i can see my server application recognizes and accepts the connection; sometimes i even manage to send the byte array; but nothing is received back. I know it was too much to expect this rough approach to work flawlessly: so i think it's better to write it from scratch. Though, after some unproductive googling, my poor (read: none) knowledge of ASP led me to ask for help here. I know it may be laughably simple for you experts, but i really just need to do this:
- send a byte array to a specified IP address on a specified port;
- keep listening for a similar byte array
- display the received code under the form of a HEX string.
Please note that due to the heavy calculations needed, the server can take up to two-three minutes before sending the answer.
If anyone can help me, or at least can point me out some articles which can enlighten me, i would be very grateful. Thanks in advance, all of you.
~~~ From Milano to The Hague, easy as it goes ~~~
|
|
|
|
|
Hi,
I'm having a RadioButtonList that has two RadioButtons. One has "Good Mood " and the other one "Bad Mood". But I want whe one is selected it may come with a particular smilie. How could I go about this?
Thanks
|
|
|
|
|
Hi,
Add two images in your web application.
Add an html Img tag in your .aspx.
<img runat="server" id="ImageSmile" />
Make it invisible using javascript function as given below:
document.getElementById('ImageSmile').style.visibility = "hidden";
Add the foll. line in the code-behind file as
RadioButtonList1.Attributes.Add("OnClick", "return ChangeSmile();");
and add a javascript function:
function ChangeSmile()
{
if (document.getElementById('RadioButtonList1_0').checked == true)
{
document.getElementById('ImageSmile').style.visibility = "visible";
document.getElementById('ImageSmile').src = "images/smiley_smile.gif";
}
else
{
document.getElementById('ImageSmile').style.visibility = "visible";
document.getElementById('ImageSmile').src = "images/smiley_frown.gif";
}
}
P.S.: Change the path of your images.
Rate this message. Thank you. Harini
|
|
|
|
|
Hi Harini,
Thanks, I want to ask you if I'm using C# it will change or not?
Thanks
|
|
|
|
|
Hi
I tried in ASP.Net with C#.Net
Is that OK??
Rate this message. Thank you. Harini
|
|
|
|
|
Thanks Harini,
I've tried But it's not working out. I get so many errors like. I'm putting the errors in Brackets:
rblmood.Attributes.Add()("OnClick", "return ChangeSmile();");
function ChangeSmile()
{
if (document.getElementById("rblmood").checked(Identifier expected, 'checked' is a keyword)({expected)=false(;expected))(;expected);
{
document.getElementById('ImageSmile'(Too many characters in character literal (This appear to all the 'ImageSmile sentences'))).style.visibility = "visible";
document.getElementById('ImageSmile').src = "Is_Dash_Board/laudhing-smiley-010.gif";
}
else(;expected)
{
document.getElementById('ImageSmile').style.visibility = "visible";
document.getElementById('ImageSmile').src = "Is_DashBoard/sad-smiley-017.gif";
}
}(}expected)
|
|
|
|
|
Hi
If your radio button id is 'rblmood' then dont change the variable name ...
just copy the foll. text : ( i have renamed the id)
Your code should look like this.
<script language="javascript" type="text/javascript">
document.getElementById('ImageSmile').style.visibility = "hidden";
function ChangeSmile()
{
if (document.getElementById('rblmood_0').checked == true)
{
document.getElementById('ImageSmile').style.visibility = "visible";
document.getElementById('ImageSmile').src = "images/smiley_smile.gif";
}
else
{
document.getElementById('ImageSmile').style.visibility = "visible";
document.getElementById('ImageSmile').src = "images/smiley_frown.gif";
}
}
</script>
P.S:- In the above example 'rblmood_0' means the first radio button id...In IE, right click your web application, Click View Source.
You will see RadiobutonList_0, RadiobuttonList_1 etc..
Harini
|
|
|
|
|
Thanks Harini,
But can't you translate this into c# for me please? Because if I do thatI will have to change everything into java yet time is not on my side.
Thank you.
|
|
|
|
|
|
please help
|
|
|
|
|
Why can't you create your own?
|
|
|
|
|
Imagine a company that produces several products.
This company would like its employees to log into an intranet and view
a
list of all its products.
When an employee clicks on a product more detail about that product
must be
displayed.
I would basically just like to see:
1) Logon process
2) Viewing all products
3) Clicking through and view product detail
|
|
|
|
|
You have to create a database solution to achive all above steps.
What help you need in above? you need code or solution?
Naveed Kamboh
Complexity kills, Write easy code for your self.
isolutionteam
|
|
|
|
|
http://msdn2.microsoft.com/en-us/library/ms366730.aspx
but i dont known function
public override MembershipUser GetUser(string username, bool userIsOnline)
have error :not found
|
|
|
|
|
Please explain further, if you've followed the article you shouldn't have a problem. Can you post your code?
|
|
|
|
|
hi friend
i am using gridview in (Content page)Masterpage..So i want open new Content page on the click of gridview row.
Piyush Vardhan Singh
Programmer
TAS NewDelhi
9313077379
|
|
|
|
|
what i am getting is you want to open a new page on click of row.?
You need to put a button or a link in gridview and then
use RowDataBound event of gridview
if (e.Row.RowType== DataControlRowType.DataRow)
{
e.Row.cells[5].Text= "view..."
}
[5]=your column text where user will click to open new widow.
View...=your text which you want to show your user
is html tag , format it according to your needs.
Naveed Kamboh
|
|
|
|
|
hi friends i am developing an aplliction in asp.net2005 using c# in which i want to upload multiple files.
user can drag any number of files and drop in my form and then on button click
these files will be upload.
pls help me i don't know how to do this.
if possible send me code ,atleast give any idea how to do this
Thanks in advance
|
|
|
|
|
HI
Don't know about drag and drop feature but ASP.NET 2.0
have inbuild FileUpload Control
<asp:fileupload runat="server" id="uploader">
void UploadButton_Click(object sender, EventArgs e)
{
// Specify the path on the server to save the uploaded file to
string savePath = @"c:\temp\uploads\";
if (FileUpload1.HasFile)
{
string fileName = FileUpload1.FileName;
savePath += fileName;
FileUpload1.SaveAs(savePath);
UploadStatusLabel.Text = "File saved as: " + savePath + "";
}
else
{
// Notify the user that a file was not uploaded
UploadStatusLabel.Text = "You did not specify a file to upload.";
}
}
make use of it
Thanks and Regards
Sandeep
If you want something you never had,
do something you have never done!
|
|
|
|
|
i have added user defined module in dot net nuke portal that contains several web forms with extension .ascx the problem is linkbutton in these webforms doesnt work properly when i run the application. sometimes i had to click atleast 7 or 8 times to make it work and sometimes it just works with only one click .
can someone please help me in this regard
|
|
|
|
|
I have a doubt in using Atlas Website....
While using Atlas Website does the ajax performs in the particular Webforms or it can perform in other forms. If we use it in other forms how do we need to specify... Kindly help me out
Regards,
LEE
|
|
|
|