|
i want to connect network pc through IP address. how it is possible. i am using namespace.
System.Net.Sockets;
System.Net
|
|
|
|
|
What you want to do after connection ?
You have already posted this question in C# section.
Parwej Ahamad
R & D: REST services with WCF
|
|
|
|
|
when connection will estiblish then backend processing open terminal window ask me username and password. i want that username and password to fix in code. connect network pc.
|
|
|
|
|
I dont think you can do this through asp.net
We are not a Code Charity
|
|
|
|
|
Hi All,
Is there any way to set multiple target controls for a single AJAX Extender!?
I know there is no direct way to do this, as far as my knowledge says, but can we accomplish this using scripting lang. like javascript!!?
Why I want to know this -
I'm required to implement Calendar Extender to display date. I have to get the day, month and year in three different textboxes. Can I bind these three as target controls to the Calendar Extender!!!
I'm trying to solve this from my end too ... will update if I arrive at a solution.
Any suggestions and/or help would be greatly appreciated.
Thanks.
|
|
|
|
|
1. I have a image button in Image.aspx.
2. I want to enlarge image in new window when i click this button. ?
3. Image Path is coming from the database.
Got ? Give...
|
|
|
|
|
well, a new window means you pass the id on the URL so the window opens the image and shows it at a bigger size.
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 )
|
|
|
|
|
The Link is not solve my problem ?
Give me a Usefull Link
|
|
|
|
|
Sorry, are you kidding ?
How did you open the image in the first place ? You're going to open it the same way in the popup. I really don't get which bit you're stuck on.
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 )
|
|
|
|
|
Seems hopeless case !!!
Thanks,
Arindam D Tewary
|
|
|
|
|
Masood Kochi,SSF wrote: I have a image button in Image.aspx.
Call javascript onClientClick event of this Button.
Masood Kochi,SSF wrote: I want to enlarge image in new window when i click this button. ?
Ok. You can open new window using
window.open()
Masood Kochi,SSF wrote: Image Path is coming from the database.
You can pass ID of the image which you get that image on second page on page load event.Get ID from querystring and retrieve data from database.
Got? now do?
please don't forget to vote on the post that helped you.
|
|
|
|
|
I have written function by using java script. This function is working click click event but not for onblur event. Pls help.
---------
rbRndQRSSPoor.Attributes.Add("onblur", "EnableTxtBox(this)")
rbRndQRSSPoor.Attributes.Add("onClick", "EnableTxtBox(this)")
-----------------
What will be the problem
This is html view (by right clicking + View source) of my web page. Here, onblur event has set on out of the control. But click event is in side of the control. Why it is like that? What is the problem?
|
|
|
|
|
I don't see your script. I even checked the source, but what I saw was not script for a textbox.
Is it onblur and not onBlur, but it's onClick and not onclick ? I thought it was onblur and onclick. What if you add only one ?
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 )
|
|
|
|
|
---script
function EnableTxtBox(obj)
{
if (document.form1.rbRndQRSSPoor.checked == true)
{
document.getElementById('mstxtRndPoor1').disabled=false;
document.getElementById('mstxtRndPoor1').focus()
alert("In click");
}
else
{
document.getElementById('mstxtRndPoor1').disabled=true;
alert("In Blur");
}
}
-----------------
I've wrtn the following on page load
rbRndQRSSPoor.Attributes.Add("onblur", "EnableTxtBox(this);")
rbRndQRSSPoor.Attributes.Add("onClick", "EnableTxtBox(this);")
here onClick is working not onblur
Balasubramanian K.
|
|
|
|
|
well, you didn't answer my question, and you've not posted the most important code, the code where the onblur is inserted.
What does 'not working' mean, is the mthod not called, or does it not do what you hope ?
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 )
|
|
|
|
|
I want to call that function for both events click and onblur for radio buttons. When I click radio button1, that function is called.
But when I click radio button2 (leave from the selected radio button1), onblur should be fired. That the same function should be called as onblur event. That functin is not called at this moment.
Balasubramanian K.
|
|
|
|
|
It's almost like you don't want help. What does the html for the radio buttons look like ? What happens if you remove the onclick event, does the blur get called then ?
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 )
|
|
|
|
|
hello everyone,
I need your help once again. Had a problem in populating dropdownlist within the grid. Anyone pls help..
<EditItemTemplate>
<asp:DropDownList CssClass="CellValue" ID="ddlCategories" Runat="server" Width="100%"></asp:DropDownList>
</EditItemTemplate>
code behind::
private void gvDisclosures_ItemDataBound(object sender, EventArgs e)
{
DropDownList list = (DropDownList)
e.Item.FindControl("ddlCategories");
// Set the text and value properties
// for the dropdown list to appropriate columns in the
// data source
list.DataTextField = "fcCatCode";
list.DataValueField = "fcCatCode";
list.DataSource = m_uf.loadCategory();
list.DataBind();
}
when i click the edit button....
i always encounter an error on the behind code: can someone help me on this one..
your help is highly appreciated
tnx.
start a new beginning in every ending; thats what life for......
|
|
|
|
|
Can you post here error and on which line ?
Parwej Ahamad
R & D: REST services with WCF
|
|
|
|
|
moomoooomoo wrote: DropDownList list = (DropDownList)
e.Item.FindControl("ddlCategories");
Whatever the error is, you should never call find control, do the cast instead of using 'as' and then just use it right away. Write defensive code, that will not blow up if the FindControl call fails. Try to write a site that won't ever blow up, even if it doesn't work as you hope for some reason.
I am suspecting that is what's happening, b/c that's all I can see that could go wrong.
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 )
|
|
|
|
|
Hi, I have a javascript which I register on click of link button, using ScriptManager. My link button is in update panel,
the link button click code is:
protected void lnkButton_Click(object sender, EventArgs e)
{
StringBuilder sb = new StringBuilder();
sb.AppendLine(" var popup = window.open( '','popup','toolbar=no,menubar=no,scrollbars=1,width=750,height=800');");
sb.AppendLine("popup.document.write('<html><head>');");
sb.AppendLine("popup.document.write('<title>Configurations for ACA</title>');");
sb.AppendLine("popup.document.write('</head><body>');");
sb.AppendLine("popup.document.write('<div id=\"lnk\" class=\"noprint\" style=\"text-align:right\">');");
sb.AppendLine("popup.document.write('<a href=\"#\" onclick=\"window.print();return false;\">Print</a>');");
sb.AppendLine("popup.document.write('<a href=\"#\" onclick=\"window.close();return false;\">Close</a>');");
sb.AppendLine("popup.document.write('</div>');");
sb.AppendLine("popup.document.write('<table border=1px style=width:500px; margin-left:100px; margin-top:50px; border-color:Maroon; >');");
sb.AppendLine("popup.document.write('<tr><td>');");
sb.AppendLine("popup.document.write('This is my string');");
sb.AppendLine("popup.document.write('</td><td>')");
sb.AppendLine("popup.document.write('This is my string');");
sb.AppendLine("popup.document.write('</td></tr></table>');");
sb.AppendLine("popup.document.write('</body></html>');");
ScriptManager.RegisterClientScriptBlock(this.GetType(), "OpenWindow", sb.ToString(), true);
}
WHen I click on "print",window.print() do not pop uo printer selection dialog box. When I click on "close", it closes the window.
Can anyone please suggest what is wrong in the javascript ?
Many thanks.
|
|
|
|
|
sb.AppendLine("popup.document.write('<a href=\"#\" onclick=\"window.print();return false;\">Print</a>');");
It is not work without return false; ?
sb.AppendLine("popup.document.write('<a href=\"#\" onclick=\"window.print();\">Print</a>');");
Parwej Ahamad
R & D: REST services with WCF
|
|
|
|
|
Hi folks,
I'm re-doing a website that's in ASP and making it ASP.NET. Some of the pages in the site have links coming in and a Google PageRank worth preserving so I'm using URL Rewriter[^] to rewrite requests for .asp pages to .aspx pages.
My question is, is this a good method for maintaining links from search engines and other places? Is there another method better suited?
Thanks!
|
|
|
|
|
I have a website with a LoginView which has two templates, a LoggedInTemplate and the AnonymousTemplate. The AnonymousTemplate has the username/password boxes, a 'login' button, and 'Register' and 'Forgot Password' links.
The AnonymousTemplate displays fine. But when the user enters their username/password, the LoggedInTemplate does not display, instead, all I see is the AnonymousTemplate again. We have a three tier environment. This exact code works fine on our development and staging servers, but when we move it to production, is where we have the problem. All three use seperate databases.
The only differences between the sites are the database connection strings in the Web.Config, and the applicationName in the Web.Config. If the user enters a bad username/password, an error message is displayed to that effect. After logging in, I can go to the site admin area, and verify that I am logged in, but still only see the AnonymousTemplate.
If anyone has any ideas at all on this, I could really use the help!
Thanks
|
|
|
|
|
<body>
<form id="form1" runat="server">
<div>
<table width="100%">
<tr>
<td colspan="3">
<uc1:Header ID="Header1" runat="server" />
</td>
</tr>
<tr>
<td width="100px">
LEFT NAVIGATION
</td>
<td>
<asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
</asp:ContentPlaceHolder>
</td>
<td>
</td>
</tr>
<tr>
<td colspan="3">
Footer
<asp:Image ID="Image3" runat="server" Height="50px" ImageUrl="Images/Footer.jpg"
Style="z-index: 118; left: 11px; position: absolute ; top: 367px" Width="1000px" />
</td>
</tr>
</table>
</div>
</form>
</body>
I am trying to fix this Image with the Footer of Master Page as you can see in this code.But Image is not moving with the Footer...
Please provide solution..
modified on Tuesday, June 24, 2008 4:54 PM
|
|
|
|