|
|
Hello All,
I am using following hyperlink code to open a popup window using javascript.
<pre><a href="javascript:;" onClick="window.open('SearchBOM.aspx','myWin','scrollbars=yes,width=500,height=500,resizable=no');" >Search</a></pre>
I want to pass a querystring to SearchBOM.aspx page based on the value entered in a textbox.
How can i achieve this?
Thanks,
Nagendra.
|
|
|
|
|
Why dont you use a Session for this ?
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
I declared a session variable as follows but its not showing value in next page.
<%Session["strSearch"] = txtSearch.Text;%>
|
|
|
|
|
Why don't you do this on the Server Side ?
Session["strSearch"] = txtSearch.Text;
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
nagendrathecoder wrote: onClick="window.open('SearchBOM.aspx','myWin'
Use this
="window.open('SearchBOM.aspx?id=1&name=xyz','myWin'
You can create a variable called parameter and add you query string to this and use following code..
>="window.open('SearchBOM.aspx?" & parameter & "'" ,'myWin'
Be an Eagle, Sky is Yours.
|
|
|
|
|
|
Create a JavaScript function and use it.
<<a href=MyClickHandler...<br />
<br />
function MyClickHandler()<br />
{<br />
var url = 'SearchBOM.aspx?.....';<br />
window.open(.....)<br />
}
only two letters away from being an asset
|
|
|
|
|
I have to create a statement for each client from my application.I have a stored procedure that filters the transactions data for each client using say the client ID.Linking or executing the stored procedure is a method in my data access layer through to my business layer returning a datatable.I want my crystal report to be populated using this methods, so i can pass the client ID as a parameter. Please help.
ML Lingwati
|
|
|
|
|
I defined a enum as
public enum Access
{
Guest = 1,
Public = 2,
Center = 4,
Member = 8,
Trader = 16
}
there are 5 checkboxes in my asp.net page suppose user checked Guest and Center then Value of center and Guest i.e.(1+4=5) 5 will save in Database in integar field..
Now my Question is I am getting Value from database like
categoriesDTO.CatAccess = (Access)r["CategoryStatus"];
Now enum has value 5... So how can i check these 2 checkboxes of center and Guest
Thanx In advance
|
|
|
|
|
You cannot!
How you think you will make 5 into 4 and 1??? It could either be 2 and 3!!
Save comma separated values like 1,4 in database and then fetch, split and use them.
HTH
|
|
|
|
|
Coding C# wrote: How you think you will make 5 into 4 and 1???
Ever heard of bit flags?
only two letters away from being an asset
|
|
|
|
|
Hi all.. My question is Genuine..
Bcoz if stored value is 5 it means only 1 and 4 checkbox has to be checked. No other Chekbox make combination of 2 +3 bcoz 2 is a value but 3 is not there
|
|
|
|
|
Sachin Dubey wrote: My question is Genuine..
and so is my answer below
only two letters away from being an asset
|
|
|
|
|
Add the Flags attribute to your enumeration and you can use it like this[^] or a simple example here[^]
only two letters away from being an asset
|
|
|
|
|
Hi,
Up until now we have developed projects in asp.net 3.5
Would you say it is a good idea to start all the new web projects in silverlight instead of asp.net ?
I ask this question because it seems silverlight is the future of asp.net
What do you think please?
Thanks
|
|
|
|
|
It is very important to understand something before you use it or say anything about it. i think you have to buy Books for that you will know the Difference between the two. Silverlight and ASP.NET Compliment each other. So if i were you i will start buying Books and read.
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
Silverlight is not the future of ASP.NET, it is simply another tool to be used, like JQuery and MVC.
only two letters away from being an asset
|
|
|
|
|
Hi all,
While i am browsing the website hosted in my hosteing server ,im getting the error" Security Exception ".when i googled most ofthe solutions say to keep the trustlevel in web.config to Full as follows
lt;system.web>
<trust level="Full" originUrl=""/>
</system.web>But the prolem is my hosting server doesn't support it..That will allow onlu medium trust level so What will be the next solution..Can anyone help me..
Thatnks in advance
|
|
|
|
|
How many Web configs you have in your Project ?
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
|
can you please post the exact error that you are getting. Dont manipulate the Error
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
Security Exception
Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.
Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Net.WebPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
|
|
|
|
|
Good. Now Please Read here
Understanding .NET Code Access Security[^]
That means the .NET user has no Permissions.
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
Hi
I am Facing A Problem with Ajax Combobox list items position..
The Ajax combobox is displayed at one place ..
when i type a character it is displaying the listitems at bottom right corner of the page..
how to solve this issue..
|
|
|
|