Showing posts with label page. Show all posts
Showing posts with label page. Show all posts

Thursday, March 8, 2012

Check checkboxes

Hi,

I have two web pages in one web page i have 5 check boxes. For example if the user checks the Checkbox1, checkbox2 and clicks on button.

On the button click I am storing the selected checkboxes value in database lke the following:

Year Options

xxx 1

xxx 2

in the above format( user selectes checbox1, check box 2).

And in the Second Web page I am showing the 5 checkboxes but in this web page I need to check the first and second checkboxes on the page load because user selectes those two check boxes in the first web page.

my select query returning the results like this:

Options

1

2

based on options I have to check those corresponding check boxes in the second web page.

How to achive this.

Thanks in advance

Saving a user's CheckBoxList selection and re-populating the CheckBoxList from saved data:http://www.mikesdotnetting.com/Article.aspx?ArticleID=53

|||

Hello,

You need to loop thru your result set and set the checkboex to Checked on Page_Load event.

For example:

This is how you get the values and set the checkboxes to Checked.

SqlCommand cmd = new SqlCommand("Select OPtions from <Yourtable>...");

SqlDataReader reader =cmd.ExecuteReader();while( reader.Read())

{

int col = reader.GetOrdinal("Options");

int checkValue = reader.GetInt32(col);switch(checkValue)

{

case 1:

CheckBox1.Checked =true;

case 2:

CheckBox2.Checked =true;

... etc

}

}

Optionaly you can use Page.FindControl() method to get to the checkboxes (instead of using switch statement). The problem with that is that FindControl does not loop thru the Page hierarchy so if you page is complex you may have to write your own FindControl method.

Once you have that method you can call it from the Page_Load event, like this:

if (!IsPostback)
{

// Call the SetCheckBoxes method here ...

}

Hope this helps

regards,

G

Wednesday, March 7, 2012

Charts placement

I have two charts for a report page, I just introduced second one next to the
first already there and it seems like the new one is going to the right most
side of the page after the matrix below it finishes. I need it to be placed
next to the previous one but cant seem to understand what seems to be the
problem.
Did anyone had this kind of problem here?
Thanks
AsimAdd a rectangle to the report and move the two charts inside that rectangle.
Make sure the charts are really moved inside the rectangle and not just
overlap with the rectangle.
Most likely, the reason why the second chart gets "pushed" to the right
while the matrix grows is that the Left position of the matrix is lower than
the Left position of the second chart, but higher than the Left position of
the first chart. By moving both charts inside a rectangle - either the
entire rectangle will get moved or not.
-- Robert
This posting is provided "AS IS" with no warranties, and confers no rights.
"Asim" <Asim@.discussions.microsoft.com> wrote in message
news:868D2184-2841-4088-A348-654D80D23A2B@.microsoft.com...
>I have two charts for a report page, I just introduced second one next to
>the
> first already there and it seems like the new one is going to the right
> most
> side of the page after the matrix below it finishes. I need it to be
> placed
> next to the previous one but cant seem to understand what seems to be the
> problem.
> Did anyone had this kind of problem here?
> Thanks
> Asim

Saturday, February 25, 2012

Charts

Hi, I have a quick question about charts in SQL reporting services...

Is it possible to have a page through chart, meaning that an user can page through multiple pages of the same chart?

No, this is not built in to RS. You may be able to simulate this functionality using drill-throughs, where the user clicks on a link that opens the same report with a different set parameters that result in a new chart.

For more information:
Working with Parameters in Reporting Services

Charts

Hi, I have a quick question about charts in SQL reporting services...

Is it possible to have a page through chart, meaning that an user can page through multiple pages of the same chart?

No, this is not built in to RS. You may be able to simulate this functionality using drill-throughs, where the user clicks on a link that opens the same report with a different set parameters that result in a new chart.

For more information:
Working with Parameters in Reporting Services

Charting question

I have a report where each page presents some data in tabular form, the
bottom row (numerically) representing a histogram; i.e., % of values falling
into the "bucket" corresponding to that column. Below this row I'd like to
have a bar chart that graphically displays this histogram with each bar
aligned with the column above. Although I've figured out how to constuct
the chart object there doesn't seem to be any way to actually get things to
line up properly.
The portion of the last row containing the data consists of 7 cells. There
are a couple of padding columns so the first data item is in column 3. What
I tried was to insert a row below (actually a footer row), then merge the 7
cells below the data along with the left adjacent pad cell. I included the
extra cell to allow space for the y axis labels.
So, I can get the chart to appear, but due to the formatting of the chart;
i.e., white space, things don't line up properly. I'm trying to duplicate
(as much as possible) a Crystal generated report in order to determine the
feasibility of using Reporting Services instead. I'm afraid this might be a
deal breaker -- so if anyone has any suggestions I'm anxious to hear back!
Thanks in advance for any help.
BillSo, anybody got any ideas on this one? I'd hoped to get some help before
this scrolls off the edge of the earth...
Bill
"Bill Cohagan" <bill@.teraXNOSPAMXquest.com> wrote in message
news:eDoS$jukEHA.1936@.TK2MSFTNGP12.phx.gbl...
>I have a report where each page presents some data in tabular form, the
> bottom row (numerically) representing a histogram; i.e., % of values
> falling
> into the "bucket" corresponding to that column. Below this row I'd like to
> have a bar chart that graphically displays this histogram with each bar
> aligned with the column above. Although I've figured out how to constuct
> the chart object there doesn't seem to be any way to actually get things
> to
> line up properly.
> The portion of the last row containing the data consists of 7 cells.
> There
> are a couple of padding columns so the first data item is in column 3.
> What
> I tried was to insert a row below (actually a footer row), then merge the
> 7
> cells below the data along with the left adjacent pad cell. I included the
> extra cell to allow space for the y axis labels.
> So, I can get the chart to appear, but due to the formatting of the chart;
> i.e., white space, things don't line up properly. I'm trying to duplicate
> (as much as possible) a Crystal generated report in order to determine the
> feasibility of using Reporting Services instead. I'm afraid this might be
> a
> deal breaker -- so if anyone has any suggestions I'm anxious to hear back!
> Thanks in advance for any help.
> Bill
>

Friday, February 24, 2012

Chart Question: Number of Bars on X-axis

Hi Guys,
Is there any way, we can set the number of Bars on X-axis per Page (in a
Column Chart) in Report Designer?
All I want to do is set no of Bars per page so that a new page is created if
the number of bars on the X-axis exceeds the given value..
Any help is appreciated..
Regards
Raj ChidipudiThis is not natively supported in RS2000.
Depending on your actual data, you may be able to use filters on the first
chart and dynamically show/hide additional charts (with page breaks) if the
number of bars is too high for the first chart.
--
This posting is provided "AS IS" with no warranties, and confers no rights.
"Raj Chidipudi" <someone@.email.com> wrote in message
news:Ok9QsdbmEHA.596@.TK2MSFTNGP11.phx.gbl...
> Hi Guys,
> Is there any way, we can set the number of Bars on X-axis per Page (in a
> Column Chart) in Report Designer?
> All I want to do is set no of Bars per page so that a new page is created
if
> the number of bars on the X-axis exceeds the given value..
> Any help is appreciated..
> Regards
> Raj Chidipudi
>

Thursday, February 16, 2012

Charset from asp.net page

Hi all!
I have problem and dont know how to solve it. I'm from Croatia and charset
for my country is "Windows-1250" (codepage = 1250)
I made some pages that write text from textboxes in SQL database that is
international. After reading that data I dont get special characters in that
codepage.
On every page I have this in the beggining
--
<%@. Page Language="vb" AutoEventWireup="false"
Codebehind="kategorija.aspx.vb" Inherits="marti.finesa.kategorija"
culture="hr-HR" responseEncoding="windows-1250"%>
--
Special characters in that codepage are Ю. After reading that, I
get ?d?cc?CC.
What I need to do.
PLEASE HELP!Bubbi wrote:

> Special characters in that codepage are Ю. After reading
that, I
> get ?d?cc?CC.
Use the default UTF-8 encoding. This is a form of Unicode that will
properly render your characters. It can be set for the whole application
in the web.config file, and is set there by default to UTF-8.
The next step is to make sure you are storing the data in way that
preserves the unicode data (fields in database are unicode data types),
and that your client browser properly interprets the encoding of the
page (do you have a specific character set selected in the View Encoding
menu of IE, instead of letting it autodetect?).
Hope that helps.

Charset from asp.net page

Hi all!
I have problem and dont know how to solve it. I'm from Croatia and charset
for my country is "Windows-1250" (codepage = 1250)
I made some pages that write text from textboxes in SQL database that is
international. After reading that data I dont get special characters in that
codepage.
On every page I have this in the beggining
<%@. Page Language="vb" AutoEventWireup="false"
Codebehind="kategorija.aspx.vb" Inherits="marti.finesa.kategorija"
culture="hr-HR" responseEncoding="windows-1250"%>
Special characters in that codepage are Ю. After reading that, I
get ?d?cc?CC.
What I need to do.
PLEASE HELP!
Bubbi wrote:

> Special characters in that codepage are Ю. After reading
that, I
> get ?d?cc?CC.
Use the default UTF-8 encoding. This is a form of Unicode that will
properly render your characters. It can be set for the whole application
in the web.config file, and is set there by default to UTF-8.
The next step is to make sure you are storing the data in way that
preserves the unicode data (fields in database are unicode data types),
and that your client browser properly interprets the encoding of the
page (do you have a specific character set selected in the View Encoding
menu of IE, instead of letting it autodetect?).
Hope that helps.

Charset from asp.net page

Hi all!
I have problem and dont know how to solve it. I'm from Croatia and charset
for my country is "Windows-1250" (codepage = 1250)
I made some pages that write text from textboxes in SQL database that is
international. After reading that data I dont get special characters in that
codepage.
On every page I have this in the beggining
--
<%@. Page Language="vb" AutoEventWireup="false"
Codebehind="kategorija.aspx.vb" Inherits="marti.finesa.kategorija"
culture="hr-HR" responseEncoding="windows-1250"%>
--
Special characters in that codepage are ¹ð¾èæ©Ð®ÈÆ. After reading that, I
get ?d?cc?CC.
What I need to do.
PLEASE HELP!Bubbi wrote:
> Special characters in that codepage are ¹ð¾èæ©Ð®ÈÆ. After reading
that, I
> get ?d?cc?CC.
Use the default UTF-8 encoding. This is a form of Unicode that will
properly render your characters. It can be set for the whole application
in the web.config file, and is set there by default to UTF-8.
The next step is to make sure you are storing the data in way that
preserves the unicode data (fields in database are unicode data types),
and that your client browser properly interprets the encoding of the
page (do you have a specific character set selected in the View Encoding
menu of IE, instead of letting it autodetect?).
Hope that helps.

Tuesday, February 14, 2012

Character Set (code page)

I have to test an application under a Greek version of Windows.
I heave installed Windows XP - Greek. The Greek characters appears OK in the application contros (edits), but Crystal Reports viewer continues showing U.S.English character set.
Please, does anybody know how to set Greek character set for the Crystal Reports?
Any clue should be very appreciated.
Thanks!I've got the same problem. :confused:|||Hey, crystalreportsgurus around the world, wake up!

Sunday, February 12, 2012

chapter 3 page 44

I'm getting the following errow when I cut and paste script into the query design

There is an error in the query. Invalid object name 'FactResellerSales'.
Invalid object name 'DimEmployee'.
Invalid object name 'DimTime'.
Invalid object name 'DimSalesTerritory'.

I've tried some of everything to resolve this issue. Need help... Not sure what I'm doing wrong.

ThanksCheck your database connection "Data Source Properties" and give a Test connection