|
New one wrote: I restrict that cant enter more than 300 characters using javascript:
TextBox has one property named MaxLength. You can set MaxLength=300.
OR
You can also check your javascript when Button event call.
Regards
Khan
please don't forget to vote on the post that helped you.
|
|
|
|
|
Ho we can remove menubar and toolbar of a webpage ?
Got ? Give..
|
|
|
|
|
Masood Kochi,SSF wrote: Ho we can remove menubar and toolbar of a webpage ?
No need to write code to remove toolbar as well as menubar.
just use this script to open popup window
window.open('PageName.aspx','title','width=500,height=500','');
Regards
kHan
please don't forget to vote on the post that helped you.
|
|
|
|
|
sorry dude, when i respond to post no answer was available
|
|
|
|
|
may with something like this
toolbar=no, menubar=no, scrollbars=no, resizable=no,
location=no, directories=no, status=no'
in window.open()
|
|
|
|
|
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 )
|
|
|
|