|
i am getting access denied error while parsing http xml using javascript...
how can i solve this...please any one help me...
Pradeep Reddy
|
|
|
|
|
|
Hi all i need to lock a record from edit to all other users when i am in edit mode for a certain record. Im using VS2005 and sql 2005.
|
|
|
|
|
There is no direct method available it seems. You could use a flag column and change the value when a user starts editing record. Before editing check this flag value.
|
|
|
|
|
If you use this method, make sure you have the ability to reset the column on error. (try /catch / finally). If your code crashes after setting this column for edit, and before resetting it, nobody else will be able to edit.
In C++ I would generally use RAII for something like this, but C# destructors are non deterministic, so RAII has to be implemented via 'using'.
"More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF
"I haven't spoken to my wife now for 48 hours. I don't like to interrupt her.
|
|
|
|
|
Malcolm Smart wrote: f you use this method, make sure you have the ability to reset the column on error. (try /catch / finally). If your
Yes that's correct. No will be able to edit it. Good point
|
|
|
|
|
i create an asp.net website using membership and ..
it works fine on local but when i deploy it to internet this error occures:
--------------------------
An error has occurred while establishing a connection to the server.
When connecting to SQL Server 2005, this failure may be caused by the
fact that under the default settings SQL Server does not allow remote
connections. (provider: SQL Network Interfaces, error: 26 - Error
Locating Server/Instance Specified)
---------------------------
My web config contains this:
<connectionStrings>
<remove name="LocalSqlServer"/>
<add name="LocalSqlServer" connectionString="Data Source=.
\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|
aspnetdb.mdf;User Instance=true" providerName="System.Data.SqlClient" />
</connectionStrings>
any one can help me ..???
thanks
|
|
|
|
|
ABBASI_RA wrote: <add name="LocalSqlServer" connectionstring="Data Source=.
\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|
aspnetdb.mdf;User Instance=true" providername="System.Data.SqlClient">
I think you can't probably use "." in hosting. You should ask your hosting service about how to connect to your SQL database. We can't say about that for sure since the connectionstring might differ from host to host...
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
thanks
i ask it and they dont support sqlexpress
i found its way...
thanks again
|
|
|
|
|
Iam using ASP.Net2.0 with VB.Net.
Iam having a code for validation to the controls which can be called on KEYpress Event i.e. checking for each keypress event related to that control where I have written this code in vbscript.How that function can be called in application or to a control
Can anybody give me the exact syntax to this or help in writing easiest way fro validation of all the controls.
Priya
|
|
|
|
|
txtName.Attribute.Add("onkeypress","yourvbscriptfunction") ?
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
Priya_2007 wrote: How that function can be called in application or to a control
You have to add attributes to all the controls. Assume you have a textbox with name Text1, then you could add Text1.Attributes.Add("onkeypress","function()") . You should change the event name and calling methods according to VBScript syntax.
Priya_2007 wrote: I have written this code in vbscript.
Why ? Better use javascript. VBScript is supported only in Internet Explorer.
|
|
|
|
|
In which event I have to write the text1.attributes.add("onkeypress","function()")
Parameters of the Function will be valuetype,keyascii of pressed key,text present in the control
How this can be specified
Priya
|
|
|
|
|
Priya_2007 wrote: In which event I have to write the text1.attributes.add("onkeypress","function()")
felicitous place would be Page_Load() .
Priya_2007 wrote: Parameters of the Function will be valuetype,keyascii of pressed key,text present in the control
What is valuetype ? I am not well-known in VBScript. In javascript it can be written like
Text1.Attributes.Add("OnKeyPress","Function(valuetype,event);");
event contains the keyCode which is used to find what is the key pressed.
|
|
|
|
|
Where I have to write the VBScript function either in the Source file or COde File.
Or else can u please suggest where to VBscript file outside and importing of that vbscript file into the project
Priya
|
|
|
|
|
U can use vbscript file in Source
<Script language="VB">
code here
</Script>
Best Regard
Patha
---------------------------------------------------
|
|
|
|
|
code here
THis can be written in the Source file where I have to call the Function present in the Script into code file which may not move to the function present in the Source file.
Priya
|
|
|
|
|
Priya_2007 wrote: Where I have to write the VBScript function either in the Source file or COde File.
you can use in the source file as Pathan suggested
Priya_2007 wrote: uggest where to VBscript file outside and importing of that vbscript file into the project
Sorry no idea on vbscript much
|
|
|
|
|
Hi Can any one help me how to do the paging for DataList in ASP.Net 1.1
Please do help me.
chandu
|
|
|
|
|
|
|
How can i enter a date in other format than Gregorian and upon tab for example change it to its equivillant in Gregorian.
thanks
|
|
|
|
|
u can do it like
DataTime.Now.ToString("MM/dd/yyyy");
|
|
|
|
|
i am having a problem.how to store the cells value stored in a row of a gridview on the click event of row.there is no command argument in the gridview.its just a row.am using JS on click event.please help me out
|
|
|
|
|
lcharan wrote: there is no command argument in the gridview.its just a row.am using JS on click event
Ya there is no event for this since gridview is rendered as plain HTML table. What's the problem you are facing with JS onclick ?
|
|
|
|