|
i set initialvalue to -1 then, it is also not working???????
|
|
|
|
|
This my solution, you must to create a dropdownlist with only one item, the text is '-' y el value is the same...
So, insert a COMPAREVALIDATOR and make this changes
ControltoValidate: the dropdownlist
Operator: Not Equal
ValuetoCompare: - (Its the line)
Thats all, the validator fireup if you choose the line value
Best regards
keep Learning and you never will be out of date...
|
|
|
|
|
In my Main page,
<asp:TextBox ID="txtDate" runat="server"></asp:TextBox>
<A href="javascript:GetDate('txtDate.ClientID')">View Calendar</A></td>
Here, I am passing the ClientID of the TextBox control in GetDate() method.
JavaScript Code:
function GetDate(CtrlName)
{
ChildWindow = window.open("MyCalendar.aspx?CtrlName=" + CtrlName, "PopUpCalendar", "width=270,height=270,top=200,left=200,toolbars=no,scrollbars=no,status=no,resizable=no");
}
In my Calendar Page (Popup), I have used the below function to return the date.
private void ReturnDate()
{
String returnScript = "";
returnScript += "<script language=javascript>";
returnScript += "window.opener.getElementById('";
returnScript += Request.QueryString["CtrlName"];
returnScript += "').value = '";
returnScript += strSelectedDate;
returnScript += "';window.close();";
returnScript += "<" + "/" + "script>";
ClientScript.RegisterStartupScript(this.GetType(), "", returnScript);
}
returnScript Output (while running):
"<script language=javascript>window.opener.getElementById('txtDate.ClientID').value = '01/31/2007';window.close();</script>"
My motto is to assign the Date Value in the TextBox of in my Main Page.
How can I solve this? Pls help me.
Regards,
Jay
|
|
|
|
|
Hi,
I have chenged below 2 lines of code, to work properly.
<A href="javascript:GetDate('<%=txtDate.ClientID%>')">View Calendar</A>
returnScript += "window.opener.document.getElementById('";
Now, It works fine
Regards,
Jay
|
|
|
|
|
Dear All,
i am bit new to the dotnet world. i am making web application using asp.net ,C# (Visual studio 2005).i have login form where i wanted to use member class facility ( so as to minimize coding and increase efficieny).
i have user table(usermst) where i am storing userid , user password and other detail.
My Question is
Is it possible for me to use member class with my database only ?
if yes please provide me some link or some example( iam already searching but till now not get sufficiet info.)
please guide me
thanks
regards
imran khan
|
|
|
|
|
I have no idea what you're talking about ?
By member class, do you mean a class in your app_code section ? You should have at a minimum, a class whose sole job is to handle database access, and a class which represents a user, and knows how to load/save itself using the data layer.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
Hi
Am using a Datagrid with 5 columns
Name,Address,City,Country and Phone Number.
And i have set the width of the Grid.
The problem is, when the Address field retreives a lengthier row, the width of the Grid also expands,even though i have set its width and in Property Builder --> Format --> Items also i have Checked 'Wrap text within cell' checkbox.
I dont want my Datagrid to grow in width though the fields have lengthier data,they need to be wrapped inside the cell itself.
Please help me to do this...
Thanx in advance
-- modified at 3:49 Thursday 18th January, 2007
|
|
|
|
|
haven't you tried to set the HeaderStyle-Width property of your BoundField columns to your desired width?
like ->
<asp:BoundField DataField="Name" HeaderText="Name" HeaderStyle-Width="20%" />
//mastereuo
On Error GoTo Hell
|
|
|
|
|
Ya...i have tried that
here it is:
asp:BoundColumn DataField="Address" HeaderText="Contact"
HeaderStyle-Width="30%">
But in vain...anyother alternatives?
|
|
|
|
|
I tried to use <menu> in html but it won't works with updated versions.plz provide me any javascript/asp.net code to implement a side menu with submenu options.
With Thanks & Regards
Amit Sk Sharma
|
|
|
|
|
You need to check the option to not render tags for your code to be visible.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
hi
check out http://javascript.internet.com/
and goto menu option.
just add the script on html page in asp.net
bye
|
|
|
|
|
I am using a user control with hyperlinks as a side menu. i need to popup a table or div (or another user control)with sub options of a option. plz tell me the way to popup a or on mouseover having active links
-- modified at 1:34 Thursday 18th January, 2007
With Thanks & Regards
Amit Sk Sharma
|
|
|
|
|
Hi
i have created a web deployment project (wdproj file). But now i don't know what to do with it. I mean i don't know how to use that file, i don't know where to place it so that i can start working. My web application is written in asp.net 2.0. Can someone help me regarding this please.
Regards
sAqIb
"Our scientific power has outrun our spiritual power. We have guided missiles and misguided men."
Dr. Martin Luther King Jr.
|
|
|
|
|
Hi, i want to resize the image in asp.net.im using upload control.whicle clicking upload button,it shud
compress the image to 750 kb if its size is mmore than that.how do i do this.
regards,
tasnim
|
|
|
|
|
Hi,
I made a test.ASPX and usercotrol.ascx. On usercotrol.ascx , I placed three web control like btnsave, btndelete and btnedit.
Now I would like to print all web control Id like
Btnsave, btndelete, btnedit on a test.ASPX.
Any help is appreciated.
Regards,
Rajesh
rajesh
|
|
|
|
|
maybe you can see the html source code and find out the control's ID
|
|
|
|
|
foreach (Control ctrl in YourControlName.Controls)
{
Response.Write(ctrl.ID+ "||");
}
|
|
|
|
|
I have a very small site where I want to have a section of the page be editable by the user. The requirement is that the user could edit a file on a share, save it and the content would show up.
I thought about creating an XML document and have a link and text nodes. I would suck this into the application and display it. Is this a bad approach? Is there an easier way to do this? The content won't hold anything but links and text. Thanks.
|
|
|
|
|
Does anyone know of a modern-looking free C# asp.net tab control ?
Yes, I know - I want the moon on a stick. (And I want it for free)
|
|
|
|
|
So is the timeout parameter in Web.config what you'd change to allow users to stay connected longer without being logged out?
|
|
|
|
|
And set slidingExpiration = true (I assume you're talking about <authentication><forms... element, right?). I have timeout set to a really high number.
I'm also using the <roleManager> , and I have cookieTimeout set to a high value, and cookieSlidingExpiration set to true .
I'm not sure if this is exactly what's required to persist logins between sessions, but this particular setup has worked for me.
Jon Sagara
I controlled my laughter and simple said "No,I am very busy,so I can't write any code for you". The moment they heard this all the smiling face turned into a sad looking face and one of them farted. So i had to leave the place as soon as possible.
--Mr.Prakash
Blog | Site | Articles
|
|
|
|
|
I think cookieSlidingExpiration is what I'm after.
|
|
|
|
|
How to make a datagrid with next page?? like 1,2,3 etc... I checked it true for "Allow Pageing" then i added this :
Private Sub dgItems_PageIndexChanged(ByVal source As Object, ByVal e As System.Web.UI.WebControls.DataGridPageChangedEventArgs) Handles dgItems.PageIndexChanged<br />
dgItems.CurrentPageIndex = e.NewPageIndex<br />
End Sub
But it's not working very good.
Adrian De Battista - Web Designer, Web Programmer, Software Programmer From Malta. My Website .. www.MaltaTrade.org
|
|
|
|
|