|
|
Hi all,
i am developing a 3-tier asp.net web application on C#, with an Access database on the Data Access Layer. I have developed some reports on my Access database.
On some aspx page i want to fire / open a certain Access report when the user clicks on some ImageButton, but i have no idea how to do this, and what are my chances on displaying it. I have searched on the web with no good results.
Anyone can give me a clue how to do that, or provide some link with basic info?
Thanks a lot.
|
|
|
|
|
I am not sure if it is possible to show Access Reports from asp.net.
Do you have an access to SQL reporting tools? if so look here[^]
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
Hey guys
I'm busy developing a website and ive hit a bit of a snag... again!
I've decided to put the content of my site in a table(the borders will be invisible or "0" after i get this to work right). Ive mocked up the table in a plain HTML file, here is the code for that.
<html>
<head>
</head>
<body>
<center>
<table border="1" width="1000" align="center" cellpadding="0" cellspacing="0">
<thead>
<tr>
<td align="center" colspan="4">Tool Bar</td>
</tr>
<tr>
<td align="left" colspan="2">Rooms 4 Rent Logo</td>
<td align="right" colspan="2">Add Space</td>
</tr>
<tr>
<td align="center" colspan="4">Tabs</td>
</tr>
</thead>
<thead>
<tr>
<td align="left" colspan="1" width="150" valign="top">Search</td>
<td align="center" colspan="2" width="700">
<center>Content
<br/><br/><br/><br/><br/><br/><br/><br/><br/>
<br/><br/><br/><br/><br/><br/><br/><br/><br/>
<br/><br/><br/><br/><br/><br/><br/><br/><br/>
</center>
</td>
<td align="right" colspan="1" width="150" valign="top">Add Space</td>
</tr>
</thead>
<tfoot>
<tr>
<td align="center" colspan="4"><center>Link Bar</center></td>
</tr>
</tfoot>
</table>
</center>
</body>
</html>
And heres a screen shot of the result
http://www.r4r.co.za/images/TableLayout.JPG
So i took this design and put it in my ASP.net solutions master page. And added the content in the correct cell's
Here is the code
<table border="1" width="1000" align="center" cellpadding="0" cellspacing="0">
<thead>
<tr>
<td align="center" colspan="4">Tool Bar</td>
</tr>
<tr>
<td align="left" colspan="2">
<asp:Image ID="ImgLogo" runat="server" Height="100px" ImageUrl="~/Images/Logo.jpg"
Width="400px" ImageAlign="Left" Style="text-align: Left" />
</td>
<td align="right" colspan="2">Add Space</td>
</tr>
<tr>
<td align="center" colspan="4">
<asp:ImageButton ID="BtnHome" runat="server" ImageUrl="~/Button Images/HomeButton.jpg"
OnClick="BtnHome_Click" />
<asp:ImageButton ID="BtnJohannesburg" runat="server" ImageUrl="~/Button Images/JohannesburgButton.jpg"
OnClick="BtnJohennesburg_Click" />
<asp:ImageButton ID="BtnPretoria" runat="server" ImageUrl="~/Button Images/PretoriaButton.jpg"
OnClick="BtnPretoria_Click" />
<asp:ImageButton ID="BtnRustenburg" runat="server" ImageUrl="~/Button Images/RustenburgButton.jpg"
OnClick="BtnRustenburg_Click" />
<asp:ImageButton ID="BtnPolokwane" runat="server" ImageUrl="~/Button Images/PolokwaneButton.jpg"
OnClick="BtnPolokwane_Click" />
<asp:ImageButton ID="BtnNelspruit" runat="server" ImageUrl="~/Button Images/NelspruitButton.jpg"
OnClick="BtnNelspruit_Click" />
<asp:ImageButton ID="BtnDurban" runat="server" ImageUrl="~/Button Images/DurbanButton.jpg"
OnClick="BtnDurban_Click" />
<asp:ImageButton ID="BtnPortElizabeth" runat="server" ImageUrl="~/Button Images/PortElizabethButton.jpg"
OnClick="BtnPortElizabeth_Click" />
<asp:ImageButton ID="BtnCapeTown" runat="server" ImageUrl="~/Button Images/CapeTownButton.jpg"
OnClick="BtnCapeTown_Click" />
<asp:ImageButton ID="BtnBloemfontein" runat="server" ImageUrl="~/Button Images/BloemfonteinButton.jpg"
OnClick="BtnBloemfontein_Click" />
<asp:ImageButton ID="BtnFAQ" runat="server" ImageUrl="~/Button Images/FaqButton.jpg"
OnClick="BtnFaq_Click" />
<asp:ImageButton ID="BtnContactUs" runat="server" ImageUrl="~/Button Images/ContactUsButton.jpg"
OnClick="BtnContactUs_Click" />
</td>
</tr>
</thead>
<thead>
<tr>
<td align="left" colspan="1" width="150" valign="top">Search</td>
<td align="center" colspan="2" width="700">
<center><asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server"><br/><br/><br/><br/><br/><br/><br/><br/><br/>
<br/><br/><br/><br/><br/><br/><br/><br/><br/>
<br/><br/><br/><br/><br/><br/><br/><br/><br/>
</asp:ContentPlaceHolder>
</center>
</td>
<td align="right" colspan="1" width="150" valign="top">Add Space</td>
</tr>
</thead>
<tfoot>
<tr>
<td align="center" colspan="4"><center><a href="Default.aspx">[Home]</a> <a href="mailTo:Info@r4r.co.za">[E-mail Info]</a>
<a href="mailTo:WebMaster@r4r.co.za">[E-mail Web Master]
</a> <a href="AdminLogin.aspx">[Admin]</a></center></td>
</tr>
</tfoot>
</table>
And here is the result
http://www.r4r.co.za/images/Problem.JPG
Now what seems to be happening is that when i put the logo in the cell it belongs, the corresponding columns width increases.
How can i get the columns width to stay the the way it is irrespective of its content?
Note: I need the cell heights to dynamically increase as content is added, and it is doing this correctly
<div class="ForumSig"><center><b><font color="red">Harvey Saayman - South Africa
Software Developer
.Net, C#, SQL</font></b>
<code>you.suck = (you.Passion != Programming & you.Occupation == jobTitles.Programmer)</code>
<font color="lime"><b>1000100 1101111 1100101 1110011 100000 1110100 1101000 1101001 1110011 100000 1101101 1100101 1100001 1101110 100000 1101001 1101101 100000 1100001 100000 1100111 1100101 1100101 1101011 111111 </b></font></center></div>
|
|
|
|
|
hi,
following will help you out, in order of its importance.
1.) quickest -- Tablecell has a "wrap" property. Set it to true. This will wrap the contents inside it and the width will not increase.
2.) right from the first TableRow's Table cell apply the width is "%" only rather than "pixels". This makes sure you have very dynamic layout rather than a stringent one.
Also, please make a note that, HTML will surely have some limitations when it comes to displaying a particularly very large picture with any of the properties set.
3.) toughest -- alternative of all will be to check in your code whats the approximate size of your pic and if that size is considerably large, you will have to convert that pic in some other format with little loss of color and sharpness and include it accordingly in your TableCell for your application.
PLEASE DO NOT FORGET TO MARK AS ANSWER IF FOUND USEFUL/RELEVANT, SO THAT OTHERS CAN FIND IT EASILY.
Software Developer,
Pune,
India
|
|
|
|
|
Add the CSS style to your table.
style="table-layout:fixed; width:XXXpx"
|
|
|
|
|
Hi All,
I really need a asp.net code to read the emails in my gmail account.
Can any one help me? I am very much great full to you...
Thanks in advance
Senthil.S
A Software Engineer
|
|
|
|
|
There are some good FAQs on the gmail pages that should get you going.
Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
|
|
|
|
|
ASp.NET has NOTHING to do with writing code to interact with another website to read your mail.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Nothing? c'mon!
___________________________________________
.\\axxx
(That's an 'M')
|
|
|
|
|
how can i get the value out of a dataset?
My code looks like this:
GridView1.DataSource = dsProductDescription.Tables["Product"].Columns[2].ToString();
GridView1.DataBind();
I keep getting the column name. The dataset has 3 columns ID, Product Code and productdescription. I need to select the product code from the dropdownlist and then the description should be displayed in the textbox.
Illegal Operation
|
|
|
|
|
Illegal Operation wrote: I need to select the product code from the dropdownlist and then the description should be displayed in the textbox.
In selectedIndexChanged event of DropDownList add this code:
textbox1.Text = ddlControl.Text;
dropdownlist's DataTextField property have to have column productdescription.
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
|
|
|
|
|
Illegal Operation wrote: I keep getting the column name.
of course you will...
Illegal Operation wrote: GridView1.DataSource = dsProductDescription.Tables["Product"].Columns[2].ToString(); GridView1.DataBind();
GridView1.DataSource = dsProductDescription.Tables["Product"];
GridView1.DataBind();
use this instead
Illegal Operation wrote: I need to select the product code from the dropdownlist and then the description should be displayed in the textbox.
bind combobox and textbox, like this (second message)
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-iTV.C\y<pjxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
<Columns>
<asp:TemplateField HeaderText="ProductDescription">
<ItemTemplate>
<asp:TextBox runat="server" ID="pDescription" Text='<%# Eval ( "productdescription" ) %>'></asp:TextBox>
</ItemTemplate>
<EditItemTemplate>
<asp:TextBox runat="server" ID="pDescription" Text='<%# Eval ( "productdescription" ) %>'></asp:TextBox>
</EditItemTemplate>
</asp:TemplateField>
</Columns>
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-iTV.C\y<pjxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
I want change information in my web site by advancing time
for example:
I want to add 10score to all acounts every 5 minutes
I wrote a code like this:
public static class CoreTimer
{
public static System.Windows.Forms.Timer GlobalTimer =
new System.Windows.Forms.Timer();
static TimeSpan TikDuration;
public static int TikCount = 0;
public static void SetTikDuration(string time)
{
TikDuration = TimeSpan.Parse(time);
}
public static void CoreTimerStarter()
{
GlobalTimer.Tick += new EventHandler(AdvanceTime);
GlobalTimer.Interval = 300000;
GlobalTimer.Enabled = true;
GlobalTimer.Start();
}
static void AdvanceTime(object sender, EventArgs e)
{
}
}
but AdvanceTime never run!!!!!!
what can I do?
how can I run a function evey 5minutes in website background????!!!
.
|
|
|
|
|
Masterhame wrote: but AdvanceTime never run!!!!!!
an it will never run. 5 minutes is LONG time for webpage to process things. The client will timeout, unless you kept it undating it frequently.
Masterhame wrote: how can I run a function evey 5minutes in website background????!!!
You can not run from the website background. Let me take that one back, technically you can run the timer, but you got to remember, website is inheritly stateless. What that means is, you objects will get created and as soon as the page is done processing, it will get sent to the client and boom, it is gone.
So, what you want to do is, write background application (service may work for you) let it run on the background updating your database.
Yusuf
|
|
|
|
|
this 5min is not related to client actions
may be no client open any page of the site, but I must increase that values every 5min
5min in an example, may be some times every 1hour, and some times every 5second
and this time is not related to any user login in!
can i use background process???
my timer must work forever in background
how can i define it?!
|
|
|
|
|
Masterhame wrote: can i use background process???
not on web applications. See my earlier post
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
|
Looking for a freelancer type .net senior professional to work in a product on a full-time or a part-time basis. A must have skills:
- Great communication
- Positive attitude
- Must know how to read, respond and understand business requirements
- Critical thinker, must recommend better ways of doing things
- Strong .net, C# with structured coding style
- Strong database design, SQL
- Prototype, UI, HTML, XML, AjAX
- How to do modular and reusable design
- Not looking for manager type person who does not like coding or design
- Access to phone and voice chat and email
Should have 20 to 40 hours available to work on the product per week. if interested write to *removed*
modified on Sunday, March 8, 2009 5:52 PM
|
|
|
|
|
software101 wrote: Looking for a freelancer type .net senior professional to work in a product on a full-time or a part-time basis. A must have skills:- Great communication- Positive attitude- Must know how to read, respond and understand business requirements- Critical thinker, must recommend better ways of doing things- Strong .net, C# with structured coding style- Strong database design, SQL- Prototype, UI, HTML, XML, AjAX- How to do modular and reusable design- Not looking for manager type person who does not like coding or design- Access to phone and voice chat and emailShould have 20 to 40 hours available to work on the product per week. if interested write to avermav (at sign) yahoo (dot) com
are you asking for help or recruiting someone
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-iTV.C\y<pjxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
|
|
I am removing the reply to on this post, because CP has a job board. If you can't afford to advertise, why would anyone risk working for you ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
hi
my page contains a button with a javascript click event.
when i click the button i want to check if the page is valid, and if the answer is yes, to perform the event function. if the page is not valid i want the error message to show in the page's validation summary.
i tired a few code lines:
function btnLogin_Click()
{
if (AllValidatorsValid(Page_Validators))
{
var a = document.getElementById('ctl00_ContentPlaceHolder1_txt1').value;
var b = document.getElementById('ctl00_ContentPlaceHolder1_txt2').value;
alert(a + " " + b);
}
}
i also tried:
if (Page_isValid)
{
....
}
nothing seems to work.
|
|
|
|