|
Thanks ToddHileHoffer,
I do have a question. From what I know of the interview, I may have to do some pogramming too (I'm not really sure). Can you please give me some input as to how to prepare for security related to forms/windows. what kind of practical questions can I expect w.r.t security ?
Thanks a lot for your help..
|
|
|
|
|
hi meena,
do u still need Interview questionare for ASP.NET?
or u alreay attend the interview? if so, how it went?
Regards,
Rahi
|
|
|
|
|
yes, I still need help coz I'm attending a couple of interviews in the next few days.I'd appreciate any help to do good in my interview..
Thanks a lot in advance....
|
|
|
|
|
I have a master/detail set of grids. on the detail(bound), all the data is visable and editable through the tempplate(Each bound column is a textbox in the template). When a user edits and leaves one of the cells, I want the grid to update. I cannot seem to find the call to get control of the system when the cell is left.
(think of it like excel, where a calulate is down after the cell is left).
Thank you
|
|
|
|
|
I'm trying to display a binary image on a webpage by using the following code however the actual binary data is displaying on the screen, not the actual image:
---------------------------------------------------------
FileInfo fi;
FileStream fs;
BinaryReader br;
fi = new FileInfo(imagePath);
fs = fi.OpenRead();
br = new BinaryReader(fs);
// Read and verify the data.
byte[] image = br.ReadBytes((int)fs.Length);
Response.BinaryWrite( (byte[]) image );
fs.Close();
----------------------------------------------------------------
How can I display the actual image on the screen?
Also, this image is not the only item on the webpage. The entire page contains a bunch of different data, so I don't know if using Response.ContentType("image/jpeg") is a viable option either (since wouldn't that force the page to just display the image and nothing else?).
Thanks for your help.
-Goalie35
|
|
|
|
|
hi goalie
use this code
Dim myConnection As New SqlConnection(ConfigurationSettings.AppSettings("ConnectionString"))
Dim myCommand As New SqlCommand("Select * from Person", myConnection)
Try
myConnection.Open()
Dim myDataReader as SqlDataReader
myDataReader = myCommand.ExecuteReader(CommandBehavior.CloseConnection)
Do While (myDataReader.Read())
Response.ContentType = myDataReader.Item("PersonImageType")
Response.BinaryWrite(myDataReader.Item("PersonImage"))
Loop
myConnection.Close()
Response.Write("Person info successfully retrieved!")
Catch SQLexc As SqlException
Response.Write("Read Failed : " & SQLexc.ToString())
End Try
regards
saravanan
|
|
|
|
|
The image date is not sent in the html document. You place an image tag on the page, and the browser requests the image file separately.
---
b { font-weight: normal; }
|
|
|
|
|
Hi
I need to fade certain controls into my aspx page on the pageload e.g. asp textboxes and labels. Obviously the fading needs to work on all browsers. I have tried searching for some sort of javascript to do this, but I havn't found anything yet. Does anyone know how to do this?
steve
|
|
|
|
|
I upgraded to internet explorer 7 and discovered that the visual studio 2005 script debugger doesn't seem to work with it at all, I can't set a breakpoint in embedded jscript on the page, where I used to be able to. I just get the "this is not a valid location for a breakpoint" error.
I've done a search and only found reports of it not working in vs 2003 so I'm wondering if this should work or if there is a work around or...?
|
|
|
|
|
|
John Cardinal wrote: I can't set a breakpoint in embedded jscript on the page, where I used to be able to. I just get the "this is not a valid location for a breakpoint" error.
Through F9 I guess? The lil red dot? I've never been able to get this to work, but adding a debugger; statement does with IE6 - how bout with IE7? (and hoping it does - was JUST about to upgrade, but if I can't debug js then NO DICE!!!)
"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
|
|
|
|
|
Hello,
I have a function which is transforming a XML file into another XML file using a XSL file.
Function GetXML()
...
Dim myXml As XmlDocument = New XmlDocument
...
myXsl.Transform(myXml, myXslArguments, HttpContext.Current.Response.Output)
...
End Function
Instead of displaying, in the browser, the resulting XML I want to return it so I can display it later in the browser as a XML document.
How can I do this?
Thanks,
Miguel
|
|
|
|
|
Have you tried writing it to a stream?
|
|
|
|
|
No, could you give me an example?
I have been looking for an example but no luck.
This is the code I have:
Hello,
I tried to find an example but no luck.
Could you give me an example?
Here is my code:
Function GetXML()
Dim myDocument As XmlTextWriter = New XmlTextWriter(Response.OutputStream, System.Text.Encoding.UTF8)
myDocument_Build(myDocument) ´ >> This line calls a function which adds nodes to myDocument
myDocument.Flush()
myDocument.Close()
End Function
All I want is to return myDocument in some format that I can display later as XML file.
Thanks,
Miguel
|
|
|
|
|
Create a new variable of stream type and change where you have Response.OutStream to the new stream.
|
|
|
|
|
Hi Guys, Anyone can help me with this question,
When i created a var session like this one Session["Var1"] = "1234567890"
which amount memory used the Server to save the var onto Ram Memory
Exactly 10 Bytes?, an default memory amount for small var (Ex, 1 Kb)
?¿?¿?
Thanks
Gracias
keep Learning and you never will be out of date...
|
|
|
|
|
You can try a test web page to test it. Try something like this:
private ProcessInfo po;
public int GetIteration
{
set{ ViewState["Iteration"] = value; }
get
{
if(ViewState["Iteration"] != null )
{
return (int)ViewState["Iteration"];
}
return 0;
}
}
private void Page_Load(object sender, System.EventArgs e)
{
po = ProcessModelInfo.GetCurrentProcessInfo();
if( !Page.IsPostBack)
{
lblOriginal.Text = po.PeakMemoryUsed.ToString();
}
}
private void Button1_Click(object sender, System.EventArgs e)
{
// Add to session
for( int i=0;i<100000;i++)
{
Session["Test" + GetIteration.ToString()] = "1234567890";
GetIteration = GetIteration + 1;
}
lblCurrent.Text = po.PeakMemoryUsed.ToString();
}
|
|
|
|
|
IsolatedStorageFile.GetStore(
IsolatedStorageScope.User | IsolatedStorageScope.Assembly,
null,
null))
|
|
|
|
|
Have you tried here?
http://msdn2.microsoft.com/en-us/library/29ks7wa3.aspx
|
|
|
|
|
do i have to add dynamic buttons(added at runtime ) to the page at each post back ?
WHY does ViewState property of placeholder Not Keeps my dynamic buttons?
I tried also panel, but it doesnt keep my dynamic buttons too.
|
|
|
|
|
You need to add the buttons during the oninit event of the page during each postback and the viewstate will be maintained.
how vital enterprise application are for proactive organizations leveraging collective synergy to think outside the box and formulate their key objectives into a win-win game plan with a quality-driven approach that focuses on empowering key players to drive-up their core competencies and increase expectations with an all-around initiative to drive up the bottom-line. But of course, that's all a "high level" overview of things
--thedailywtf 3/21/06
|
|
|
|
|
can we create classes in web service
|
|
|
|
|
no, a webservice can only have methods.
sAqIb
"Our scientific power has outrun our spiritual power. We have guided missiles and misguided men."
Dr. Martin Luther King Jr.
|
|
|
|
|
no, a webservice can only have methods.
sAqIb
"Our scientific power has outrun our spiritual power. We have guided missiles and misguided men."
Dr. Martin Luther King Jr.
|
|
|
|
|
I put some iframe in a page. then I need change its 'src' value in javascript.
but I can get the iframe object, it always return 'undifined'. I tried the
'document.getElementById' method and 'window.frames['xx']'.
at last, I did a test want to know how many frames in the page. so I use
'window.frames.length' to get the count. but it always return 0.
where did I wrong? Thanks in advance.
|
|
|
|