|
You can't do that.
It might be possible to change the mappings in the browser, so that it starts a program without asking. But then you would have a browser with a huge security hole right through it, which makes it practically unusable for browsing the web.
---
single minded; short sighted; long gone;
|
|
|
|
|
I heard that it is possible to configure the MIME setting to do this????
|
|
|
|
|
Yes, that was what I was talking about. Making the browser run executables without warning makes it unfit to browse the web.
---
single minded; short sighted; long gone;
|
|
|
|
|
Guffa,
can you explain how can I configure MIME to solve my problem (I dont care about browser scurity).
yours,,
aziz
|
|
|
|
|
Hi,
How can I have user control to populate a list with different values when its property value changes at run time?
e.g I have Radio buttons :- Animals, birds, Mammles etc. outside the user control.
Based on radio button selected user control should populate values. I have created a property for user control to pass chosen radio option.
Thanks
|
|
|
|
|
Hi,
I have the wizard control. O n each Wizard step I have put some code next I converted that wizard to templates like the below:
<stepnavigationtemplate>
<asp:button id="StepPreviousButton" runat="server" causesvalidation="False" commandname="MovePrevious" text="< Back">
<asp:button id="StepNextButton" runat="server" commandname="MoveNext" text="Next Step >">
Now I want to write separate code for each button click. For example I want to handle the StepPreviousButton click event. Where to handle that event.
In Wizard_ActiveStepChanged(..){
Here How we check which button is clicked.
Thanks
-- modified at 13:49 Thursday 9th August, 2007
|
|
|
|
|
How to get previous page's link the users come from in asp.net code-behind.
Thanks in advance.
I am not a perfect programmer,but i have perfect's programmers' habits.
|
|
|
|
|
Hi all,
I'm newbie of ASP.NET, and i want to use Ajax in ASP.NET. But i realize that Ajax is supported in ASP.NET by ASP.NET AJAX. And if i want to use Ajax, i just put that control to UpdatePanel.
And i think the security of ASP.NET AJAX is better than i write a file with tranditional Ajax
Therefore, i don't know why should we learn Ajax when i have ASP.NET AJAX.
Please let me know why should i learn Ajax?
|
|
|
|
|
Well the reason you should learn AJAX .. is to know how AJAX works, This will help you understand why something is not behaving the way you want it to behave, also when trying to optimize performance in your applications, extending or creating new controls.
Greets! Joel
|
|
|
|
|
Well, it depends. Do you want to be a capable programmer, or just a reuser of libraries ? If you just have a need to create something and walk away from it, use Microsoft's library. If you want to be able to optimise, to understand what is happening, and to have full control over the process, learn how to do it yourself.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
First u ahv to understand wat is ajax. and the working of AJAX.Actually ajax is a TEchnology using in web applications for the asyncronize data tranfer.
But u hav to study Javascript and Xml very well. Then only u can use
AJAX[ Asyncronize Javascript And Xml]
Sarith...
|
|
|
|
|
Hi,
I’m new to web developing so now I’m on a project of building a webpage that can generate graph using data source from excel sheet that are updated frequently and I’m using ASP.net to develop it so now my problem are :
1.How I can talk to the excel sheet via asp.net, is it using the OLE DB ?
2.Does visual studio provide any chart library that generate graph from the dataset ?
3.Also the chart engine I currently studying is NPlot(Freeware) and will it possible the chart engine read the dataset that contain the excel data(integer) to generate the graph?(coz i'm not palnning to use 3rd party software)
thanks
|
|
|
|
|
how can we create a web entry form like MS Access? Pleas help. The form contain Combobox {Contain project name: get from a tables). The datagrid contain data inputed. texbox are: username (string, Date (DD/mm/yyyy), task (number), hour(number)
Scaleton
|
|
|
|
|
I'm trying to access the value of a HtmlInputHidden inside a datalist, but I get "Object reference not set to an instance of an object" as an error when I try to call the value.
Here is my code:
Protected Sub DataList1_ItemDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.DataListItemEventArgs) Handles DataList1.ItemDataBound
Select Case e.Item.ItemType
Case ListItemType.Item, ListItemType.AlternatingItem
'Dim row As DataRowView = CType(e.Item.DataItem, DataRowView)
Dim TitleLink As HyperLink = CType(e.Item.FindControl("ProdTitleLink"), HyperLink)
Dim TextLink As HyperLink = CType(e.Item.FindControl("ProdTextLink"), HyperLink)
Dim prodID As HtmlInputHidden = CType(e.Item.FindControl("ProductID"), HtmlInputHidden)
TextLink.NavigateUrl = "productDetails.aspx?catID=" & Request.QueryString("catID") & "Id" & prodID.Value
TitleLink.NavigateUrl = "productDetails.aspx?catID=" & Request.QueryString("catID") & "Id" & prodID.Value
End Select
End Sub
Code of Datalist:
<asp:DataList ID="DataList1" runat="server">
<HeaderTemplate>
<div class="ProdHeadBox">
<div class="ProdTitleHead">Product</div>
<div class="ProdQtyHead">Qty</div>
<div class="ProdPriceHead">Price</div>
</div>
</HeaderTemplate>
<ItemTemplate>
<div class="ProdMainBox">
<div class="ProdPicBox">
<asp:Image ID="ProdImage" runat="server" ToolTip='<%# Eval("PictureLarge") %>' ImageUrl='<%# "~/images/productImages/small/" + DataBinder.Eval(Container.DataItem, "PictureSmall").ToString() %>' />
</div>
<div class="ProdTextBox">
<div class="ProdTitle">
<asp:HyperLink CssClass="ProdTitleLink" ID="HyperLink2" runat="server" NavigateUrl='<%# "productDetails.aspx?Id=" + Eval("ProductID").ToString() %>' ToolTip="Read More...">
<asp:Literal ID="litTitle" runat="server" Text='<%# Eval("ProductName") %>' /></asp:HyperLink>
</div>
<div class="ProdText">
<asp:Literal ID="ProdType" runat="server" Text='<%# Eval("Type") %>' /><br />
<asp:Literal ID="litDescription" runat="server" Text='<%# GetDescription(Eval("ProductDescription")) %>' /><br />
<asp:HyperLink CssClass="ProdTextLink" ID="HyperLink1" runat="server" NavigateUrl='<%# "productDetails.aspx?Id=" + Eval("ProductID").ToString() %>' ToolTip="Read More...">more...</asp:HyperLink>
<input type="hidden" id="ProductID" runat="server" value='<%# Eval("ProductID") %>' />
</div>
<div class="ProdQtyBox">
<asp:TextBox Width="25" ID="ProductQTY" Text="0" MaxLength="5" runat="server" />
<asp:RegularExpressionValidator ControlToValidate="ProductQTY" ValidationExpression="\d+" Text="*" ID="QTYValidator" runat="server"></asp:RegularExpressionValidator>
</div>
<div class="ProdAddBox">
Price: <asp:Literal ID="Literal1" runat="server" Text='<%# String.Format("{0:c}", Eval("ProductPrice")) %>' />
<br />
Per roll/pack<br />
<asp:Button ID="Add" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "ProductID")%>' Text="Add" runat="server" />
</div>
</div>
</div>
</ItemTemplate>
</asp:DataList>
Thanks for any help!
|
|
|
|
|
HI
Can anybody tell me what is the syntax if i want to write some server
function(like if else statement) in client side script.
I am able to check the value using if else loop on client side
but while showing output in datagrid it shows me value retrieve from
database plus if else and end if statement.Please tell me what is
the syntax.
Thanks.
Rahul
|
|
|
|
|
You usually write server-side code in C# or VB.NET if you are using ASP.NET. You can write the code in other languages but these are the most integrated into ASP.NET. There are a lot of books and articles available to reference their syntax.
"We make a living by what we get, we make a life by what we give." --Winston Churchill
|
|
|
|
|
Hi,
Can any one suggest me a way to get my local database intimated whenever there is an insert/update occurring in my Remote server.
Regards,
Jagadeesh
|
|
|
|
|
A little more detail please. What do you mean by "local database"? You have a central database which you want to replicate changes to satellite databases on your webserver?
only two letters away from being an asset
|
|
|
|
|
Hi,
Thank you for replying. I want to give more details about my question.
In my question “local database” means my SQL Server database in my desktop machine. I know my remote server can no way communicate with my local machine
Condition:
Local DB must be updates soon after the remote server is updated. (Max. 5 mins. time)
What I am planning to do:
On Remote server:
Whenever there is an insert in the database after inserting I will be writing the same insert statement in a text file. If there is another insert I want to simply append it to the text file.
On My Windows Machine:
I want to develop a windows application that will be accessing the text file every 3-5 minutes, Updates the local database in my machine and process it locally.
Problem:
Expecting 5-8 inserts in database per day my solution may not be the best choice.
Plz let me know any other alternatives.
Regards,
Jagadeesh
|
|
|
|
|
Merge replication
Database mirroring
SQL Notification Services
SQL Service Broker
MSMQ
Writing to a file and polling it is the least desirable solution and very amateur.
only two letters away from being an asset
|
|
|
|
|
Hi all..
I am using MS access database to store the values enterd in text boxes of a ASP.Net page. Since i am using retreiving date of birth too i have speciefied the format as Datetime (shortdate) in Access.
What my problem is whatever time I enter in the text box it is getting stored as 12/30/1899. I really dont have the idea why this is happening. Somebody please help me on this.
Here is the code segment used to store the text box values in MS Access database.
Protected Sub txtsubmit_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles txtsubmit.Click
Try
Dim sconnection As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\154466\DW\DW.mdb;User ID=Admin; Password="
Dim sqlstatement as string
sqlstatement = "INSERT INTO dwbi values( " & txtid.Text & ",' " & txtname.Text & " ', " & txtdob.Text & " ," & txtvnet.Text & "," & txtextn.Text & "," & txtmoblie.Text & ",'" & txtpskill.Text & "','" & txtsskill.Text & "','" & txtinterest.Text & "','" & txtproject.Text & "')"
Dim dbcon As New OleDbConnection(sconnection)
Dim oCmd As New OleDbCommand(sqlstatement, dbcon)
dbcon.Open()
oCmd.ExecuteNonQuery()
dbcon.Close()
lblmesg.Text = "Details Updated Successfully!!"
Thanks in advance..
Jaysheel
|
|
|
|
|
Hi!
sqlstatement = "INSERT INTO dwbi values( " & txtid.Text & ",' " & txtname.Text & " ', " & txtdob.Text & " ," & txtvnet.Text & "," & txtextn.Text & "," & txtmoblie.Text & ",'" & txtpskill.Text & "','" & txtsskill.Text & "','" & txtinterest.Text & "','" & txtproject.Text & "')"
should be like
sqlstatement = "INSERT INTO dwbi values( " & txtid.Text & ",' " & txtname.Text & " ','" & txtdob.Text & "'," & txtvnet.Text & "," & txtextn.Text & "," & txtmoblie.Text & ",'" & txtpskill.Text & "','" & txtsskill.Text & "','" & txtinterest.Text & "','" & txtproject.Text & "')"
note the ' character for txtdob.text
Hope this helps.
|
|
|
|
|
Thanks alot Nilesh !!!!
That worked out !!!
|
|
|
|
|
Hi
While entering date into database user Datetime.Pasrse(txtdob.text) function
while saving data into database it is saved as MM/DD/YYYY format.
Rahul
|
|
|
|
|
Hi,
I was trying to open an aspx form in VS 2005, which I created in VS 2003. But its throwing exception:
"System.Web.HttpException: Cannot use a leading .. to exit above the top directory."
But when I remove the line in aspx where I link the CSS to the page, the error vanishes. The CSS link is:
<LINK href="<%=strVersionPath%>" type=text/css rel=Stylesheet>
Could anyone tell me what going wrong here?
Regards,
Blumen
|
|
|
|