|
Have you read this[^] page?? It tells you a lot about passing variables to child windows and back...
|
|
|
|
|
I tried with that site, its showing about the car racing friend, can you please show me the right way please.
S/W Engineer
Akebono Soft Technologies
aleem_abdul@akebonosoft.com.
|
|
|
|
|
Hello All,
Can we close all IExplore instances running on client machine from using JAVASCRIPT? If yes can somebody provide me the details?
-- modified at 0:06 Monday 4th December, 2006
Jayant D. Kulkarni
Brainbench Certified Software Engineer in C#, ASP.NET, .NET Framework and ADO.NET
|
|
|
|
|
Ofcource you'll not be able to do 'stuff' in a clients process thread, thank god!!
|
|
|
|
|
I'm trying to access XML files stored on another server via my ASP.NET 2.0 Web Application. I've tried the UNC path and even a mapped drive letter. I know this isn't a coding issue but security issue. Do I need to install IIS on the other server and setup the ASP user account to have access?
Brent
|
|
|
|
|
That's one possibility, which I wouldn't choose.. If you can reach the 'other' computer from within your network, I'd solve the security issue in stead of installing an additional application in order to solve your problem.
|
|
|
|
|
I have an ASP.NET form with about 20 textboxes and several dropdown lists. Is there a way to send all of the information to my database handling routines - other than creating 30+ parameters?
Doug Thomas
|
|
|
|
|
Hi ,
yur can use model class for that. create one class which contains all set and get property and then create object of that calss that object will contain all parameter and finally pass this object to the database .
please let me know if u required more help i will send u code .
"It is not enough to have a good mind. The thing is to use it well."
Thanks
Jitendra
|
|
|
|
|
Thanks - code would be helpful. I come from a Visual FoxPro background and some of this is slow going...
Thanks again
Doug Thomas
|
|
|
|
|
hi,
in your model class two property is defined like this
private int caseId;
private string dbnumber;
public int CaseId
{
get{return caseId;}
set{caseId=value;}
}
public string DBNumber
{
get{return dbnumber;}
set{dbnumber=value;}
}
this is your two property in model class and u can access this two property by using model class object like this
Model.Case objModelCase = new Model.Case();
case is the model class and objModelCase is the object of case class
objModelCase.DBNumber=txtDrNumber.Text;
objModelCase.CaseId=txtCase.Text;
and finally u can paas this objModelCase object to database.
i think this will solve your problem.
"It is not enough to have a good mind. The thing is to use it well."
jitendra
|
|
|
|
|
Hi.
I want to put SMTP and POP3 addresses in web.config.
How can access these adresses via code ?
Best wishes
|
|
|
|
|
go to:
http://www.systemnetmail.com/
Example web.config:
<system.net>
<mailSettings>
<smtp from="xy@yourdomain.com">
<network host="mail.yourdomain.com" password="yourpassword" userName="xy@yourdomain.com"/>
</smtp>
</mailSettings>
</system.net>
Best regards
ullk
|
|
|
|
|
Hi.
I have a dynamic website .(All contents are in DB).
How can I write a search for it ?(C#,ASP.Net 2)
Best wishes
|
|
|
|
|
And you think anyone drops a line of code, and you have yourself a custom made search engine on your website?? I think you should provide us lots of additional information.
Just to start
- Find the seach string in the database
- Look within the search results and find 'best matches'
- Order the search results
- Display them
|
|
|
|
|
In my User Controls, how do I set the default property so that if I set it like this...
<custom:MyControl runat="server" ID="ctlTest">Insert Title Here</custom:MyControl>
'Insert Title Here' maps to a specific property in the user control called Title?
|
|
|
|
|
Hi all ,
in my web page i am inputting like asggg in text box. then it is giving error trace as below
A potentially dangerous Request.Form value was detected from the client (TxtBName="aa").
Description: Request Validation has detected a potentially dangerous client input value, and processing of the request has been aborted. This value may indicate an attempt to compromise the security of your application, such as a cross-site scripting attack. You can disable request validation by setting validateRequest=false in the Page directive or in the configuration section. However, it is strongly recommended that your application explicitly check all inputs in this case.
Exception Details: System.Web.HttpRequestValidationException: A potentially dangerous Request.Form value was detected from the client (TxtBName="aa").
If i set to validateRequest=false , then it is not giving the error, but people says there is some security problems.. i don't know what to do..
i want to know what is this error and how to rectify in some other way..
thanking you all..
|
|
|
|
|
|
Question:
How can I access to Images whitch are stored in the main directory /images/button2b.gif in a website that is stored in a subdirectory /member/default2.aspx?
My Problem:
I have a site in a subdirectory /member/default2.aspx
with the following code:
<input type=image id="InputImage2" src="~/images/button2b.gif"
onmouseover="this.src='~/images/button2c.gif';"
onmouseout="this.src='~/images/button2b.gif';"
runat="server" onserverclick="InputImage2_ServerClick"/>
My images are in the main directory ../images/button2c.gif
The code onmouseover="this.src='~/images/button2c.gif';" doesn't go. It search the image in the subdirectory /member/image/button2c.gif but the image is in the main folder /images/button2c.gif.
Do you have any tips?
Best regards
ullk
-- modified at 17:51 Sunday 3rd December, 2006
|
|
|
|
|
hi
i have a code in asp.net have the following problem ==>
in the web page threr is a datagrid and have a datasource from oracle
one of its column is a template and in the edit mode i convert it to
dropdownlist control
but i do not konw how to bind this drop down list with data from the database
please HELP HELP HELP HELP
ME ME ME ME
|
|
|
|
|
what is the method you edit the grid with ??
When you get mad...THINK twice that the only advice
Tamimi - Code
|
|
|
|
|
unig bulid in function ==>
Private Sub dg_find_result_EditCommand(ByVal source As Object, ByVal e As System.Web.UI.WebControls.DataGridCommandEventArgs) Handles dg_find_result.EditCommand
|
|
|
|
|
so good..........
suppose that your column index is 2(i.e. the second column).
then inside the dg_find_result_EditCommand, find your DropDownList, like this:
Dim DDL As DropDownList = CType(grdItem.Cells(0).Controls(1), dropdownlist), then write the code to bind your DropDownList.
When you get mad...THINK twice that the only advice
Tamimi - Code
|
|
|
|
|
when i write this code ==>
Me.dg_find_result.EditItemIndex = e.Item.ItemIndex
Dim DDL As DropDownList = CType(e.Item.FindControl("lst_temp_order_dir"), DropDownList)
DDL.Items.Add("gggggg")
Me.BindData()
Catch ex As Exception
Me.Literal1.Text = ex.Message
End Try
i get this error ==>
Object reference not set to an instance of an object.
=============================================================
and when i write this ==>
Try
Me.Literal1.Text = ""
Me.dg_find_result.EditItemIndex = e.Item.ItemIndex
Dim DDL As DropDownList = CType(e.Item.Controls(0), DropDownList)
DDL.Items.Add("gggggg")
Session("Edit_S") = e
Me.BindData()
Catch ex As Exception
Me.Literal1.Text = ex.Message
End Try
i get this error ==>
Specified cast is not valid
===============================================
what is the problem and how i can solve it , please ?
|
|
|
|
|
try :
Dim DDL As DropDownList = CType(e.Item.Controls(1), DropDownList)
When you get mad...THINK twice that the only advice
Tamimi - Code
|
|
|
|
|
it is also gove me this error ==>
Specified cast is not valid
in the datagrid the first column is the serial which is hidden
and the second one i convert it to drop down list
which i want to fill it with data .
|
|
|
|