|
Ya i given eventhough its not properly display..,
see actually what i am asking the calendar display under textbox its ok...,
After that dropdown also there...,
so if i click the textbox the calendar is appearing the same place but the dropdown is hiding the some dates of calendar control...,
i want to solve this
Thanks & Regards,
NeW OnE,
please don't forget to vote on the post
|
|
|
|
|
You can also take dropdownlist control upper on textbox.
please don't forget to vote on the post that helped you.
|
|
|
|
|
Ya upside one more dropdown list is there...,
And i cant change the design format...,
Becoz they given format like that
Thanks & Regards,
NeW OnE,
please don't forget to vote on the post
|
|
|
|
|
hai friends
i m refreshing a page within time interval say 5 min
the code is
when the page is refreshed
how to maintain the scroll bars position
mt page is so lengthy
plz help me
thanks in advance
vijay
|
|
|
|
|
I use the following to do it __SCROLLOC is a hidden field in the form, i use this with Register script tags in .net 1.1 it should work if you wire it up correctly in the aspx. there is also a property in .net 3.5 (possibly in 2, but we skipped from 1.1 to 3.5) Page.MaintainScrollPositionOnPostBack, and Page.SmartNavigation do simliar things, except smart navigation has issues with datagrids in 1.1 hope this helps
string setScroll = "<script language="javascript"> " +
"function SetScrollLocation() { " +
"document.body.scrollTop = " + __SCROLLLOC.Value + ";}" +
"document.body.onload=SetScrollLocation;"+
"</script>";
ClientScript.RegisterStartupScript (this.GetType (), "setScroll", setScroll);
}
string saveScroll = "<script language="javascript"> " +
"function SaveScrollLocation() { " +
"document.forms[0].__SCROLLLOC.value = document.body.scrollTop;} "+
"document.body.onscroll=SaveScrollLocation;" +
"<script>";
</script></script>
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
hai friends
i have a menu bar in my page
when i click on a submenu item, then i m doing some validation in code
which is written in menu1_Itemclick event
and i redirect to new page
that new page should be opened in new window
how can i do it....
thanks in advance
vijay
|
|
|
|
|
the only way i can think of right now(its still early) is to registar a script block(startup or otherwise) in your click event, that way when your page returns it runs the javascript to open the other page in a new window. i'm curious as to why you want that behavior but javascript is the only way i can think to do it, and registering the script block in the code behind lets you generate the js however you want i.e. if different values go to different pages you can change the script inthe code, and not have 3 or 4 or more different functions on the page. ClientScript has the Register methods, there are afew and they just determin when the js gets run.
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
Hi Vijay,
Try this code…
protected void Menu1_MenuItemDataBound(object sender, MenuEventArgs e)
{
e.Item.Target = "_blank";
}
Thx,
Gayani
|
|
|
|
|
|
please dont post the same unclear question 3 times in the same hour if someone knew the answer or knew what you wanted they would answer the first time.
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
Hi
I am getting the error
"RegisterForEventValidation can only be called during Render()"
i am trying to fix this by adding the line <pages enableEventValidation ="false"/> into my web.config (see below)
but i am getting
Parser Error Message: Unrecognized element 'pages'. appear
Can anyone help
<system.web>
<authentication mode="Windows" /><identity impersonate="false"/>
<pages>
<pages enableEventValidation ="false"/>
<controls>
<add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions,
Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
</controls>
<pages>
|
|
|
|
|
Hi
I am getting the error
"RegisterForEventValidation can only be called during Render()"
i am trying to fix this by adding the line <pages enableEventValidation ="false"/> into my web.config (see below)
but i am getting
Parser Error Message: Unrecognized element 'pages'. appear
Can anyone help
<system.web>
<authentication mode="Windows"><identity impersonate="false">
<pages>
<pages enableeventvalidation="false">
<controls>
<add tagprefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, <br mode=" hold=" /><br mode=">
<pages>
|
|
|
|
|
Hi,
I have one master page name is called master1,which is in MasterPage folder. I want use this master page in my default1.aspx file. What I have to do? Pls help
Thanks in advance
Balasubramanian K.
|
|
|
|
|
Hi
Change your default1.aspx page to the following code.
<%@ Page Language="C#" MasterPageFile="~/MasterPage/master1.master" AutoEventWireup="true" CodeFile="default1.aspx.cs" Inherits="default1" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
</asp:Content>
Thx,
Gayani
|
|
|
|
|
Thank you. It is working now.
Balasubramanian K.
|
|
|
|
|
hello friends
I am able to connect to the xlsx file and get the Data my problem is where to keep the file i got an error which tells to keep in the
C:\WINDOWS\system32\inetsrv
i am almost dumb with this
Please suggest me what is the correct way
(* i am confused as if i upload it to my client Server suppose easycgi then where to upload this file *)
I may need to read a basic book
Still i expect reply's
Happy programming
If You win You need not Explain............
But If You Loose You Should not be there to Explain......
|
|
|
|
|
You may put this file anywhere...
THe only thing you need to remember is that proper access rights have been granted to access this file...
Best Regards,
Sam Xavier
www.componentone.com
|
|
|
|
|
hello frnds,
i got following error when am browse the site using IIS
what can i do ?
server application unavaliable
any hint ???
thankx in advnace
koolprasad2003
Be a good listener...Because Opprtunity knoughts softly...N-Joy
|
|
|
|
|
This is a very common error message...
Please post the server log as well..
Best Regards,
Sam Xavier
www.componentone.com
|
|
|
|
|
I have to get all colors of inside image and change some specific color to some else color. I am getting all colors of images but colors which are similar how to compare i mean dark balck and normal black how to compare tow rgb color
|
|
|
|
|
Member 3435614 wrote: I have to get all colors of inside image and change some specific color to some else color. I am getting all colors of images but colors which are similar how to compare i mean dark balck and normal black how to compare tow rgb color
Colors have RGB value.you can compare that value.
Color A;
Color B;
if(A.ToArgb()=B.ToArgb())
please don't forget to vote on the post that helped you.
|
|
|
|
|
That one only compare simillar color I want simillar pattern I mean I have to change color from white to black but in image not only contain pure white that is ffffff but some ffffaa,ffffbb,et. also i have to change those all similer color. plz help me.
|
|
|
|
|
Member 3435614 wrote: That one only compare simillar color I want simillar pattern I mean I have to change color from white to black but in image not only contain pure white that is ffffff but some ffffaa,ffffbb,et. also i have to change those all similer color
There are RGB value.You can also compare it
Color A;
Color B;
if(A.R==B.R && A.G==B.G && A.B==B.B && A.A==B.A)
but it is the same A.ToArgb===B.ToArgb
Can you explain in details what you want to do?
Regards
Imran
please don't forget to vote on the post that helped you.
|
|
|
|
|
I have to give option to user to chage color in image that is if one red shirt is there with some yellow and blue design then i have to give red,yellow and blue as option where user will select any one to change that color so user can select blue color and change blue color to green color like that i have to implement. help me.
|
|
|
|
|
See this example
I have made one method in which you can pass Bitmap object of image,current color of the image that you want to change as curColor and new color that you want to apply as newColor.
Now I am getting current color from image object using GetPixel Method of bitmap and apply new color using SetPixel Method.
this method returns bitmap object.after calling this method, call save method of bitmap so changes will apply.
Now this method will change image color that you want to change.
private Bitmap CreateGrayscale(System.Drawing.Image source, Color curColor,Color newColor)
{
Bitmap bmp = new Bitmap(source);
for (int y = 0; y < bmp.Height; y++)
{
for (int x = 0; x < bmp.Width; x++)
{
Color col = bmp.GetPixel(x, y);
if (col.A == curColor.A && col.R==curColor.R && col.G==curColor.G && col.B==curColor.B)
{
int r = (int)(newColor.R);
int g = (int)(newColor.G);
int b = (int)(newColor.B);
Color chgColor = Color.FromArgb(r, g, b);
bmp.SetPixel(x, y, chgColor);
}
}
}
return bmp;
}
regard
imrankhan
please don't forget to vote on the post that helped you.
|
|
|
|