|
The issue is as follows.
When we click the submit button, the table is built dynamically and is shown in the page. If we chage the font size (Theame resize button from master page)the font size is refreshed but the dynamic table is not seen.
It is using AJAX controls and we think the issue seems to be with AJAX. If we removed the AJAX controls then we are able to see the dynamic table results.
With out AJAX:
To make the dynamic tables work initially, we added a session variable to store the table results during on click and then during preinit we loaded the dynamic table using the session variable. This allowed the font size button to function properly.
With AJAX:
But with AJAX controls the same code dosent seem to respond. We are able to see the table getting loaded in the preinit but the values are not displayed.
Are we missing something here?
Thanks,Arun
|
|
|
|
|
If you are doing a PostBack then you may need to issue a Refresh on the AJAX control to repopulate the data.
|
|
|
|
|
I have a string in which the numbers are entered and decimal point is also allowed. But, when the user enters a string for eg: 123,43 .....even this should be accepted as number and with "," is assumed as period "." , how can i do this.
|
|
|
|
|
use Replace()
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87??6?N8?BcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i?TV.C\y<p?jxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
Nothing to do with trimming really, you want to look at String Replace[^]
He who makes a beast out of himself gets rid of the pain of being a man
|
|
|
|
|
|
for five-digit numbers such as 123,43
Luc Pattyn [Forum Guidelines] [My Articles]
This month's tips:
- before you ask a question here, search CodeProject, then Google;
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get;
- use PRE tags to preserve formatting when showing multi-line code snippets.
|
|
|
|
|
NumericUpDown, with two decimal places. I would expect the current culture would determine which decimal delimiter is in use (though I've never tried it).
|
|
|
|
|
PIEBALDconsult wrote: I would expect the current culture would determine which decimal delimiter is in use
I trust it does, but the way I understood it the OP wanted both period and comma to act
as decimal point (which I fully understand, the lack of a single international standard way
of using periods and comma's is troublesome).
my point however was the up/down doesn't seem very useful for long numbers: when the increment
corresponds to the last digit, it takes forever to up/down the leading digits; and when it does not,
the last digit(s) are not affected by it.
Luc Pattyn [Forum Guidelines] [My Articles]
This month's tips:
- before you ask a question here, search CodeProject, then Google;
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get;
- use PRE tags to preserve formatting when showing multi-line code snippets.
|
|
|
|
|
Yes, but I tend to just type the number into the NumericUpDown anyway.
|
|
|
|
|
I see, I'm still use TextBoxes for that, with some masking if appropriate.
The NUD does a lot of masking (and limit checking) but seems to accept multiple decimal points,
so it may still need validation. And I wish there were a way to hide the up/down arrows...
Luc Pattyn [Forum Guidelines] [My Articles]
This month's tips:
- before you ask a question here, search CodeProject, then Google;
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get;
- use PRE tags to preserve formatting when showing multi-line code snippets.
|
|
|
|
|
I am faceing a problem when a try to populate datagrid thread rise an exception ...
Object reference not set to an instance of an object.
at System.Windows.Forms.DataGridViewTextBoxCell.PaintPrivate(Graphics graphics, Rectangle clipBounds, Rectangle cellBounds, Int32 rowIndex, DataGridViewElementStates cellState, Object formattedValue, String errorText, DataGridViewCellStyle cellStyle, DataGridViewAdvancedBorderStyle advancedBorderStyle, DataGridViewPaintParts paintParts, Boolean computeContentBounds, Boolean computeErrorIconBounds, Boolean paint)
at System.Windows.Forms.DataGridViewTextBoxCell.Paint(Graphics graphics, Rectangle clipBounds, Rectangle cellBounds, Int32 rowIndex, DataGridViewElementStates cellState, Object value, Object formattedValue, String errorText, DataGridViewCellStyle cellStyle, DataGridViewAdvancedBorderStyle advancedBorderStyle, DataGridViewPaintParts paintParts)
at System.Windows.Forms.DataGridViewCell.PaintWork(Graphics graphics, Rectangle clipBounds, Rectangle cellBounds, Int32 rowIndex, DataGridViewElementStates cellState, DataGridViewCellStyle cellStyle, DataGridViewAdvancedBorderStyle advancedBorderStyle, DataGridViewPaintParts paintParts)
at System.Windows.Forms.DataGridViewRow.PaintCells(Graphics graphics, Rectangle clipBounds, Rectangle rowBounds, Int32 rowIndex, DataGridViewElementStates rowState, Boolean isFirstDisplayedRow, Boolean isLastVisibleRow, DataGridViewPaintParts paintParts)
at System.Windows.Forms.DataGridViewRow.Paint(Graphics graphics, Rectangle clipBounds, Rectangle rowBounds, Int32 rowIndex, DataGridViewElementStates rowState, Boolean isFirstDisplayedRow, Boolean isLastVisibleRow)
at System.Windows.Forms.DataGridView.PaintRows(Graphics g, Rectangle boundingRect, Rectangle clipRect, Boolean singleHorizontalBorderAdded)
at System.Windows.Forms.DataGridView.PaintGrid(Graphics g, Rectangle gridBounds, Rectangle clipRect, Boolean singleVerticalBorderAdded, Boolean singleHorizontalBorderAdded)
at System.Windows.Forms.DataGridView.OnPaint(PaintEventArgs e)
at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs)
at System.Windows.Forms.Control.WmPaint(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.DataGridView.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
please help
|
|
|
|
|
Can't you trace the code?
|
|
|
|
|
i used try catch in datagrid papulation code but Exciption bypass evry thing and takes me in Main function..
|
|
|
|
|
Please post the code at which point the exception arise and lines above it, so we can have some context to help you.
|
|
|
|
|
Your subject line suggest you're trying to update the DataSource property of a DataGrid control from a background thread you created. If this is true, you cannot do that. You MUST Invoke a method on your form so the UI thread updates the control's DataSource. You cannot manipulate controls from any other thread other than the one that created the control.
|
|
|
|
|
hey guys
i need to draw a circle that represents a clock, but i must also be able to dynamicly change the color of different time intervals inside that circle... (almost like a pie chart)
eg
5-6 red
6-7 yellow
7-8 green
8-9 yellow
9-10 green
how would i go about starting this project?
ps. i know nothing about drawing
thanx
Harvey Saayman - South Africa
Junior Developer
.Net, C#, SQL
think BIG and kick ASS
you.suck = (you.passion != Programming)
|
|
|
|
|
You'll need to create your own control, deriving from the Control class. Override the OnPaint method in this, then use the Graphics object provided in it's PaintEventArgs argument to draw whatever you want. Hint: Graphics.FillPie might come in handy.
Standards are great! Everybody should have one!
|
|
|
|
|
thanx, ill look into it
Harvey Saayman - South Africa
Junior Developer
.Net, C#, SQL
think BIG and kick ASS
you.suck = (you.passion != Programming)
|
|
|
|
|
hey
ok so i started the control project, the class inherits UserControl by default. should i leave that as is or replace it with Control?
thanx
Harvey Saayman - South Africa
Junior Developer
.Net, C#, SQL
think BIG and kick ASS
you.suck = (you.passion != Programming)
|
|
|
|
|
Doesn't really matter, UserControl allows you to use the visual designer, which you probably won't be needing in this case.
Standards are great! Everybody should have one!
|
|
|
|
|
Hi All,
I am drawing rectangle on the form. (VC#)
I am able to resize the rectangle when rectangle is at zero degrees.
For example, if i want to resize top right:
rect.Y = mousepoint.Y;
rect.Height += OriginalRect.Top - mousepoint.Y;
rect.Width += mousepoint.X - OriginalRect.Right;
whereas 'rect' is rectangle after resize, 'mousepoint' is mouse pointer while mouse move.
But
When i rotate rectangle at, say 30 degrees, I have the problem, the above code won't work.
I need to change x, y, width and height. How to do it? I just want a clue.
I want to make sure that i am using Visual Studio 2005. This app is NOT WPF.
Thanks in advance.
|
|
|
|
|
Use the Rectangle's Inflate method.
Standards are great! Everybody should have one!
|
|
|
|
|
dear friends,
i hope you are all fine,i am new in this community and this is my first post.actually i am doing my final year priject of image processing in C# .tell me how i can learn C# quickly and easily and also about the implementation of aindane algorithm.
thanx
messages sent here
|
|
|
|
|
waqas shah wrote: dear friends,
i hope you are all fine,i am new in this community and this is my first post.actually i am doing my final year priject of image processing in C# .tell me how i can learn C# quickly and easily and also about the implementation of aindane algorithm.
thanx
What? You are doing your final year project, as in you have been in the class all year, and now you are doing your final project? And NOW you need to learn C#? Didn't pay attention in class huh?
waqas shah wrote: also about the implementation of aindane algorithm.
use google.
I'm going to become rich when I create a device that allows me to punch people in the face over the internet.
"If an Indian asked a programming question in the forest, would it still be urgent?" - John Simmons / outlaw programmer
|
|
|
|
|