|
I'm directly clicking on the grid rows, not any child controls. The grid has a hidden cloumn, which has a unique id. This id is unique for every row. I'm using this id on row click and getting data from the database, with data I fill the controls below the Grid.
So this is the scenario. What can I do now?
Regards,
Blumen
|
|
|
|
|
try this ValidateRequest=false in your page directive of your asp.net page,, but there are security concerns
winnie
|
|
|
|
|
Page validation should not be turned OFF when there is a need to validate the data on submit.
To disable validation for any control on the page, need to set the control's CausesValidation property to false
Regards John
|
|
|
|
|
Hi,
I have a problem. How do you send xml file (or data in xml file or in string) from one aspx page to other aspx page. Remember that the other aspx page is different application. we can't use context here.
The content of the xml is more to accomodate through Query String. Can some body help me
Thanks in advance
Naren
Naren
|
|
|
|
|
store the XML file into database and pass the ID in the query string and retrieve it from the database in the other aspx page...
Regards John
|
|
|
|
|
No. We have to pass that one as string only. That application can be able to read the string through the query string only. that application is a III party application where we can't handle.
Thanks,
Naren
|
|
|
|
|
Store the XML either on Disk or Database and pass the 3rd party an ID to that XML. Then provide them with a WebService that accepts the ID and returns the correct XML. This way you can avoid trying to pass a huge XML document through the QueryString.
|
|
|
|
|
If the other page is a different application, then you're kind of stuck, the query string is your only hope.
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 )
|
|
|
|
|
i have a table named emp.
where one coloumn named "status",
which doesnot take any value from the front end.i am storing its default valus as"ON" in the emp table which is set in its cloumn property .
and another table emp_detail where one column named "eligible".( both tables are related with each other by "emp_id" coloumn)where it takes the value from the frontend either "Y" or "N".now i want if the value for "eligible" is stored as "Y".then the corresponding record of that in the "emp"table should be updated that is only the "status " column set to be OFF.
where it takes the value from the frontend either "Y" or "N".
now i want if the value for "eligible" is stored as "Y".then the corresponding record of that in the "emp"table should be updated that is only the "status " column set to be OFF.
|
|
|
|
|
you can change the status while inseting the data in emp_detail table. Or you can create a triger on emp_detail table on insert and check the eligible column and update emp table as per value
Hardik Panchal
|
|
|
|
|
i dont know how to write trigger.but know the storeprocedure,so can let me know howto write the trigger for that
|
|
|
|
|
how cani change the status of the table. can you be little elaborate it. or if possible do write the code ..
or the trigger
|
|
|
|
|
i have a table named emp.
where one coloumn named "status",
which doesnot take any value from the front end.i am storing its default valus as"ON" in the emp table in the table .
and another table emp_detail where one column named "eligible".
( both tables are related with each other by "emp_id" coloumn)
where it takes the value from the frontend either "Y" or "N".
now i want if the value for "eligible" is stored as "Y".then the corresponding record of that in the "emp"table should be updated that is only the "status " column set to be OFF.
|
|
|
|
|
hi
i am designing a desktop application and a website. i have write the following code in desktop application but facing difficulty to do the same task in website.i am using grid to display data. in desktop application the Event "GridView1_CellClick" exist but in website i dont find it, can anyone tell me what changes to do with the follwing code to apply it in website
searchgrid.CurrentRow.Cells[0].Value;
Image1.Image = Image.FromFile(path);
protected void Page_Load(object sender, EventArgs e)
{
String strConnection;
strConnection = "server=localhost;User ID=sa;Password=sasa;database=rescue15";
SqlConnection conn = new SqlConnection(strConnection);
conn.Open();
string s = " SELECT cr_pic FROM criminal WHERE cr_id = " + searchgrid.CurrentRow.Cells[0].Value;
SqlCommand com1 = new SqlCommand(s, conn);
SqlDataReader dr1 = com1.ExecuteReader();
if (dr1.Read())
{
string path = dr1.GetValue(0).ToString();
Image1.Image = Image.FromFile(path);
}
dr1.Close();
}
}
i am using ASP.Net with C# and SQL Server2005
|
|
|
|
|
mavii wrote: Image1.Image = Image.FromFile(path);
This is a waste of time, it creates an image on the server. Generate an img tag which has a src attribute with the server path ( so not the file path, but the path as a URL that a browser can see )
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 )
|
|
|
|
|
actually i want to display the image of person according to his ID in the table, so in table i have saved the url, as i have used grid, when one clicks on the Grid, the ID in the first column of the grid is picked and image URL of that ID is taken from table which is diplayed in the picturebox.and i hv not any clear idea of server path, will u plz explain it?
|
|
|
|
|
If your ASP.NET app can see the file, then it must be within the web application. Sending c:\inetpub\MyApp\images\cgraus.jpg means nothing to the client. \images\cgraus/jpg will work fine, it's a path from the web root.
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 )
|
|
|
|
|
Hi,
I was wondering is there a way to create groups in session. so that if I needed to clear down session variables pertaining to a particualr section of our application, I could call Sesswion.Clear on that group, but leave all others intact?
Regards
Paul Custance
|
|
|
|
|
oceanexplorer wrote: is there a way to create groups in session
Upto my knowledge NO.
oceanexplorer wrote: so that if I needed to clear down session variables pertaining to a particualr section of our application, I could call Sesswion.Clear on that group,
You can do this using Arraylist or any other memory storage. So each of your section values are filled into ArrayList and store arraylist object to session. To remove a particular section data, simply do Session.Remove(your section name). So arraylist object contained in the specified location will be removed and others will still exist in the session.
|
|
|
|
|
Thanks for your help, much appreciated. I have decided to implement a Dictionary in order to create groups in session.
Regards
Paul
|
|
|
|
|
I show error messages via pop up windows.
at first there is no striction for blocking pop up windows.
after 3rd debugging, pop up blocker was automaticaly activated.
i deactived that, but i cant still see my pop ups
whyyy ?
|
|
|
|
|
Are you calling popup window in ASPX page or are you writing popup script to response from code behind ?
|
|
|
|
|
i use this code
Response.Write(<script language = ""Javascript"">var win=window.open('Message.aspx',null,'width=510,height=255,top=250,left=250','true');win.moveTo(0,0);</script>)
or
this one
Response.Write(<script language = ""Javascript"">var win=window.open('Message.aspx',null,'width=510,height=255,top=250,left=250','true');win.moveTo(0,0);</script>)<br />
response.redirect ("hi.aspx")
but both of them not run.
|
|
|
|
|
try executng this in your page,, this code will detect the pop blocker status
function detectPopupBlocker() {
var test = window.open(null,"","width=100,height=100");
try {
test.close();
alert("Pop-ups not blocked.");
} catch (e) {
alert("Pop-ups blocked.");
}
}
// Created by: Simon Willison
// http://simon.incutio.com/archive/2004/05/26/addLoadEvent
function addLoadEvent(func) {
var oldonload = window.onload;
if (typeof window.onload != 'function') {
window.onload = func;
} else {
window.onload = function() {
if (oldonload) {
oldonload();
}
func();
}
}
}
addLoadEvent(detectPopupBlocker);
winnie
|
|
|
|
|
Hi,
How can I use SSL in my ASP.NET eCommerce application? SSL is already installed in Web Server.
Please help me
Thanks
Regards
Nazeem
-- modified at 9:00 Thursday 23rd August, 2007
Mohamed Nazeem
Software Engineer
Bangalore
|
|
|
|