|
I just used:
hyperlink.ForeColor = Color.FromArgb(98, 170, 40);
converted the hex code
cheers anyway!!
|
|
|
|
|
HyperLink1.ForeColor = System.Drawing.Color.Aqua;
|
|
|
|
|
I know how to set it as a specific colour but i wanted to know how to set it to a hex number
|
|
|
|
|
Hi its possible to tell in page load event size of the page(Height & width of the page)?
Means if u popupnew window we can tell the height and width of that newly popupwindo...,
But for me, the initial window itself, we have to tell the height and width of the page...,
Thanks & Regards,
NeW OnE,
please don't forget to vote on the post
|
|
|
|
|
I am not sure but i think you can do it only in page init or pre-init methods.
Ahsan Ullah
Senior Software Engineer
|
|
|
|
|
No its not working
Thanks & Regards,
NeW OnE,
please don't forget to vote on the post
|
|
|
|
|
this can be possible with java script
|
|
|
|
|
Ya i did for my childwindow using javascript...,
But how u can tell it for the parent window itself?,
Ths is the code for making childwindow size:
Response.Write("<script>");
Response.Write("window.open('CollapsePanel.aspx','_blank','width=550,height=450,scrollbars=no')");
Response.Write("</script>");
Where u will tell this one for parent window?
Thanks & Regards,
NeW OnE,
please don't forget to vote on the post
|
|
|
|
|
Hi,
I need to develop a paging control which will work for gridview and listview. Which show paging like First Prev 1 2 3 4 5 6 of 1 page of 6 Next Last
1 2 3 4 will be shown in css style . Can anyone help me how can I made such a custom paging which will work for both gridview or listview.
|
|
|
|
|
Why would you use a grid view, and do your own paging, when it is built in ? Why not use something simple like a repeater, that gives you full control over the layout, if you want to take over the paging ?
In any case, what you basically need to render this, is to know what the current page number is, and how many pages there are. Then you need to create links for the numbers that either postback a value, or put it on the URL, so you know what page to navigate to. I'd write a proc that gives me the current page and the number of pages, so you can just ask for the data you want to display and plug the other info into your pager.
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
Hi
I have a GridView that initializes when page is load,its data source is a DataSet. One of the columns is in a DateTime type, how can i change its type or alternately its DateTime format.
Thanks in advance,
Yohay
|
|
|
|
|
By not using auto generated columns, so you can specify a format string
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
Does it means that I need to manually create custom columns for all columns within the DataSet's table?
thanks again for your help
yohay
|
|
|
|
|
if you are assigning it data from database then when you are binding you can change the format like this. DateTime.ToString("dd MMM, yyyy HH:mm:ss");
Ahsan Ullah
Senior Software Engineer
|
|
|
|
|
<asp:label id="Label1" runat="server" text="<%# Bind(" apply_date",="" "{0:dd-mm-yyyy}")="" %>"="" xmlns:asp="#unknown">
|
|
|
|
|
i have a make a small module for a school fees website which will check if 3 day remining in due date of fees submission it will email that perticular user that "only 3 days remining plz submit fees .. etc". Its eazy if user login then aginst id of the user and datediff query this whole thing can be done. BUT if user dont login or forgot to login how to automate this whole process?
thanks in advance
|
|
|
|
|
|
thanks for this solution but any other alternate solutions ... plz
i was thinking about to use thread that keep running and checking is that a good idea??
|
|
|
|
|
.netman is right. ASP.NET is designed on the principle that pages are created to run once on the server, for a postback. You can't spawn a thread from your page, the page dies on the server side when it is returned to the client.
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
if i create a class in which i implement all the logic and call method on global.asax application start event ... is it possible?
thanks.
|
|
|
|
|
You may be able to start a thread from there, but you would still need to put the details of the emails you need to send, etc, in a database, and have code that ran on a timer to regularly check if any thing needed doing. It makes more sense to do this in a service, and have the service and the website share access to the data store IMO.
If you just write a thread that handles the emails by keeping them in memory, you will lose that info if the server restarts, and you will need to handle cross thread communication, which would be a lot more challenging than writing a service.
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
You have to make a module as a scheduler which will run on the server. You can check it on the server.
Ahsan Ullah
Senior Software Engineer
|
|
|
|
|
soory Ahsan i didnt get yr solution plz can u explain in bit detail thanks.
-------------------------------
if i create a class in which i implement all the logic and call method on global.asax application start event ... is it possible?
thanks.
|
|
|
|
|
Scheduler is a module on your hosting server. It runs the module( in your case mail sending) automatically as per you logic.
Ahsan Ullah
Senior Software Engineer
|
|
|
|
|
Thanks alot all the professionals and developers
|
|
|
|