|
There is a workaround to do this is by setting "DefaultValue" of the "SelectParameters" of your object datasource. This depends on how and what u r calling exaclty
Best Regards
3ala2
|
|
|
|
|
Works! Thanks
|
|
|
|
|
how to save a ppt file in database and retrive it and execute?
|
|
|
|
|
You have to store your file in a BLOB field. Have a look at this link:
http://www.codeproject.com/KB/database/Store_and_manipulat_BLOBs.aspx[^].
To run powerpoint with the ppt-file, just start a process (System.Diagnostics.Process) with passing the name of the ppt-file (you have to store it first on the disk). Windows will know that for ppt-files Powerpoint must be opened. That should work.
Regards
Sebastian
|
|
|
|
|
Hi all,
Whn im tryin gto run a web application im getting the error pop up "unable to start debugging on the web server.Server side error occured on sending debug http request"
CAn anybody help me to solve the same
Thanks
|
|
|
|
|
According to Microsoft KB Article[^], it says : "This problem can occur if there are syntax errors in the ASP.NET application's Web.config file".
|
|
|
|
|
To resolve this problem, make sure that all of the XML in the Web.config file is valid and well formed. Also, remember that everything in Web.config is case-sensitive. You can follow this article with Visual Studio to debug it-
http://msdn.microsoft.com/en-us/library/e8z01xdh(VS.80).aspx[^]
Good luck!
Ranjit Viswakumar
Professional Services Specialist
http://hostmysite.com/?utm_source=bb
|
|
|
|
|
this is my css
.top
{
width:200px;
height :100px;
margin 0 0 0;
background-image :url(IMAGES/theme1.bmp);
color:Green;
}
i want to apply my css to this portion..
<div style="color:Green ;">
<table width="700">
<tr style="color :Green;">
<td style="height:50px;width:260px; color:Green ;">
<img src="IMAGES/capital.jpg" alt="" title="" height="70px" width="260px" />
</td>
</tr></table>
</div>
i trid but no effective answer...
modified on Saturday, February 7, 2009 5:48 AM
|
|
|
|
|
try giving class="top" to div...
|
|
|
|
|
<div class="top">
i gave this...
and i place this coding in <head> part
<link rel ="stylesheet" type ="text/css" href ="css/king.css" />
nothing happens...
|
|
|
|
|
A couple things. Make sure you enclose your background images in quotes. Next, you want your CSS to declare images relative to where the CSS is located, not where the web pages exists. So, given these three files-
./page.aspx
./css/king.css
./IMAGES/theme1.bmp
...make sure the background image call looks like this-
background-image: url('../IMAGES/theme1.bmp');
Good luck!
Ranjit Viswakumar
Professional Services Specialist
http://hostmysite.com/?utm_source=bb
|
|
|
|
|
Why Do you use style in html tag?
sepel
|
|
|
|
|
I've already hosted some web sites developed in .NET Frame 1.1 and wud like to do the upcoming projects in .NET Frame 2.0 is it feasible to this shifting and hosting it in the webserver ?
|
|
|
|
|
You can't host both on the same webserver, no.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
If you want to run 1.1 websites and 2.0 website this is possible on the same server, I think you just have to change
the Configuration file.
2.0 supports 1.1 (so microsoft said), but i had a few issues when I switched.
BTW only switch to 2.0 if your actually going to use any of the 2.0 framwork.
|
|
|
|
|
You can run .NET 1.1 and .NET 2.0 applications on the same web server. One thing that's important is to section them off into different application pools-
http://technet.microsoft.com/en-us/library/cc757073.aspx[^]
Ranjit Viswakumar
Professional Services Specialist
http://hostmysite.com/?utm_source=bb
|
|
|
|
|
Hello everyone, I am having a bit of a problem with my asp.net code (vb). I am attempting to update a datagrid on my page. This is something I have already completed in a previous page. The only difference here that I can tell is that I have made the datagrid on this problem page an updatable datagrid without putting each row into edit mode (using textboxes instead of labels).
When I attempt to assign the values of my datagrid into my vb code I am getting that dreaded "Object reference not set to an instance of an object."
The assignment sits inside a for each. Yet if I pull it out and put it outside the for each (just to see if it will fail again) I receive the same error message. I am stumped. I can't figure out why it works on one asp page, but not this one.
Here is my code. Hopefully someone will be able to help me. P.S. This is for an school project and I am quite new to ASP (about 2 wks new )
Thank you in advance.
<br />
<div style="text-align: center; background-color: lightgrey;"><br />
<br /><br />
<br />
<asp:checkboxlist id="chkFocusSearch" runat="server" autopostback="false" repeatdirection="Horizontal" xmlns:asp="#unknown"><br />
DataValueField="tid" DataTextField="Type_" Width="360px" > <br />
</asp:checkboxlist><br />
<br />
<asp:button id="btnSlctAll" runat="server" onclick="btnSlctAll_Click" text="Selet All" xmlns:asp="#unknown"><br />
Width="114px" /> <br />
<br />
<asp:button id="btnSlctNone" runat="server" text="Select None"><br />
Width="114px" OnClick="btnSlctNone_Click" /> <br />
<br />
<asp:button id="btnRefresh" runat="server" text="Refresh View" onclick="RefreshInv" /> <br />
<br />
<asp:datagrid id="mysqlInvGrid" runat="server" cellpadding="4" forecolor="#333333" showfooter="True" bordercolor="Black"><br />
OnItemCommand="Update"<br />
AutoGenerateColumns ="False" BorderWidth="8px" CellSpacing="3" style="border-right: black thin solid; border-top: black thin solid; border-left: black thin solid; border-bottom: black thin solid" Height="299px" Width="360px"><br />
<br />
<columns><br />
<asp:boundcolumn datafield="prodid" visible="false" /><br />
<asp:boundcolumn datafield="item" headertext="Item" /><br />
<br />
<asp:templatecolumn visible="False"><br />
<itemtemplate><br />
<asp:label id="aspProdID" runat="server" text="<%# DataBinder.Eval(Container.DataItem, "prodid") %>" /><br />
</itemtemplate> <br />
</asp:templatecolumn><br />
<br />
<br />
<asp:templatecolumn headertext="Quantity"><br />
<br />
<footertemplate><br />
<asp:button id="btnUpdate" runat="server" text="Update" /><br />
</footertemplate><br />
<br />
<itemtemplate><br />
<asp:textbox id="aspAmount" runat="server" columns="5" text="<%# Container.DataItem("amount") %>" /><br />
</itemtemplate><br />
</asp:templatecolumn><br />
<br />
<asp:boundcolumn datafield="measure" headertext="Measurement" /><br />
<br />
<br />
</columns><br />
</asp:datagrid></asp:button></asp:button></div>
<br />
Sub Update(ByVal Sender As Object, ByVal e As DataGridCommandEventArgs)<br />
Dim dgI As DataGridItem<br />
Dim strSql As String<br />
Dim sqlCmd As New MySqlCommand<br />
<br />
sqlCmd = New MySqlCommand()<br />
mysqlConn = DBConnect.Connect<br />
sqlCmd.Connection = mysqlConn<br />
<br />
Try<br />
<br />
For Each dgI In mysqlInvGrid.Items<br />
'get the Prod ID and the new quantity<br />
Dim strProdID As String = CType(e.Item.FindControl("aspProdID"), Label).Text<br />
Dim strQuantity As String = CType(e.Item.FindControl("aspAmount"), TextBox).Text<br />
<br />
Dim intProdID As Integer = CInt(strProdID)<br />
Dim intQuantity As Integer = CInt(strQuantity)<br />
<br />
'Update the DB with the information we have gathered.<br />
<br />
strSql = "update Inventory set quantity = " & intQuantity & " where prodID = " & intProdID<br />
<br />
sqlCmd = New MySqlCommand(strSql, mysqlConn)<br />
sqlCmd.ExecuteNonQuery()<br />
<br />
Next<br />
Catch ex As MySqlException<br />
MsgBox("Insert failed", MsgBoxStyle.Exclamation, "Insert Status")<br />
MsgBox("Error returned was '" & ex.Message, MsgBoxStyle.Information, "Error Message")<br />
MsgBox("SQL command was: '" & strSql)<br />
<br />
<br />
Catch ex As Exception<br />
<br />
MsgBox("Insert failed", MsgBoxStyle.Exclamation, "Insert Status")<br />
MsgBox("Error returned was '" & ex.Message, MsgBoxStyle.Information, "Error Message")<br />
<br />
Finally<br />
<br />
mysqlConn.Close()<br />
BindGrid()<br />
<br />
End Try<br />
<br />
|
|
|
|
|
AAARRRGGHHH!!!
Been working on this for an hour and I spend 5 minutes to type up this post. Take another look at it and figure out the problem.
When I into the For each of my datagrid I made the mistake of passing in 'e' which was the datagridcommandeventargs handler and not the actual datagrid item.
the correct code is:
<br />
Sub Update(ByVal Sender As Object, ByVal e As DataGridCommandEventArgs)<br />
Dim dgI As DataGridItem<br />
Dim strSql As String<br />
Dim sqlCmd As New MySqlCommand<br />
<br />
sqlCmd = New MySqlCommand()<br />
mysqlConn = DBConnect.Connect<br />
sqlCmd.Connection = mysqlConn<br />
<br />
Try<br />
<br />
For Each dgI In mysqlInvGrid.Items<br />
'get the Prod ID and the new quantity<br />
Dim strProdID As String = CType(dgI.FindControl("aspProdID"), Label).Text<br />
Dim strQuantity As String = CType(dgI.FindControl("aspAmount"), TextBox).Text<br />
<br />
Dim intProdID As Integer = CInt(strProdID)<br />
Dim intQuantity As Integer = CInt(strQuantity)<br />
<br />
'Update the DB with the information we have gathered.<br />
<br />
strSql = "update Inventory set quantity = " & intQuantity & " where prodID = " & intProdID<br />
<br />
sqlCmd = New MySqlCommand(strSql, mysqlConn)<br />
sqlCmd.ExecuteNonQuery()<br />
<br />
Next<br />
Have a good night all.
|
|
|
|
|
Hi There,
I had written funtion in js file to check two textbox values.Funtion is if textbox1 value is less than textbox 2 value then it should throw an error. I am Calling this funtion on click of save button.There is no problem in executing this funtion.But my problem is that when I Click on Save button this funtion gets executed but after the error occure then also code written on button for save button get executed.Now I want to restrict this code from executing after error occure in js funtion.Is it possible.
If anybody knows please help.
Thanks
|
|
|
|
|
You may want to post some of your code here to help explain your problem and allow for someone to help you out more easily.
Regards,
--Perspx
"A refund for defective software might be nice, except it would bankrupt the entire software industry in the first year." -Andrew Tanenbaum
"Einstein argued that there must be simplified explanations of nature, because God is not capricious or arbitrary. No such faith comforts the software engineer." -Fred Brooks
|
|
|
|
|
Try something like this for your Javascript-
function validateValues(theForm) {
var error = "";
if (theForm.textbox1 < theForm.textbox2) {
reason = "-textbox1 must be greater than textbox2."
}
if (reason != "") {
alert("Some fields need correction:\n" + reason);
return false;
}
return true;
}
...and the form should contain-
<form method=POST action=action.aspx name=Demo onSubmit='return validateValues(this)'>
Good luck!
Ranjit Viswakumar
Professional Services Specialist
http://hostmysite.com/?utm_source=bb
|
|
|
|
|
Hai All
I am using asp.net vs2005 and crystal report 10.2 version , my problem is
that when i access the report repeatedly i am getting "Load report failed".
For this problem i restart my system and it works fine . Is there any
other way to solve this problem without restarting the system.Plz help me.
|
|
|
|
|
hi,
ReportDocument rd=new ReportDocument();
rd.Load("Cryatalreport");
///write rd.Close();//put this line too
hope this will help U
|
|
|
|
|
Hai
Thank You for the reply. After changing the code as you told still i am getting Load report failed . Is any other way to solve it.
Thank you
|
|
|
|
|
i hope my question is clear to all those who are too good in web designing.
I have a sign up page signup.aspx. which redirects to list.aspx. in list .aspx i select a particulasr customer and that customer id is passed to customer.aspx with the help of query string variables. when a logged in shopkeeper goes to customer.aspx, then on that customer .aspx there is a menu on the left which is menu.ascx. this menu has links to different sections of the customer and which ever link is cliked it should navigate to that link. now but to navigate to the section of the corresponding customer i need to pass in the customer id from that menu.ascx to abc.aspx or def.aspx. how do i do that. how will the menu.ascx recognize the customer id from customer.aspx. i dont want to use session variables because if a shopkeeper opens two customers at the same time then it will be a problem. following flow is more clear.
shopekeeper A logs in to system through signup.aspx
|
then a page with many customers is seen known as list.aspx
|
`the shopkeeper clicks any one of the customer and then goes to the main page of that custmer known as customer.aspx
on this customer.aspx there is a menu on left which is menu.ascx a user control which has navigation links to different sections of the selected customer.
|
if section 1 is selected then navigates to abc.aspx
if section 2 then def.aspx
section 3 then ghi.aspx
and so on
but i need the customer id in abc.aspx or def.aspx or ghi.aspc and i need to pass that from menu.ascx . then menu should get the customer id from customer.aspx.
now i want to do the above without using customer id as session varibales.
please advice
|
|
|
|