|
you have to Gridview TemplateControl for Adding File Control in Grid View
<asp:GridView ID="GridView1" runat="server">
<EmptyDataTemplate>
<asp:FileUpload ID="FileUpload1" runat="server" />
</EmptyDataTemplate>
</asp:GridView>
now you have to use Gridview.FindControl To find particluar Fileupload control and do the needful operation.
Good luck !!!
cheers,
Abhijit
|
|
|
|
|
Hiya,
I was just wondering if it was possible to send text to the browser, without the normal HTML tags that gets sent with it, for example:
Response.Write("Test")
In example: http://whatismyip.com/automation/n09230945.asp[^]
But when I view the source of my page in the browser, it still has all of the other HTML tags (eg. the body tag, head tag etc.) Ive tried many ways of getting rid of this html code but havent figured out how.
Any help would be greatly appreciated,
Thanks, Lloyd.
Lloyd J. Atkinson
"Logic will get you from A to B, but imagination will take you everywhere" - ALbert Einstein
I look at Microsoft, and turn to my poster on the wall saying: "Bang head here in case of stress".
|
|
|
|
|
just create the page at runtime with out all other html tag. just for example you just write your name in a note pad and save it as "test.html" file. now open the file in browser. Now from View - > Source. you will get the same thing that you mention in link.
you what you have to do, you just create a HTML runtime with out adding other tages.
cheers,
Abhijit
|
|
|
|
|
I am trying to work arround with XMLHttpRequest . I am taking some data from XMLHttpResponse in a Div using
<br />
document.getElementById("txtResult").innerHTML=xmlHttp.responseText;<br />
but i am geeting nothing on that Div and Getting a JavaScript Error
Note : I am using IE 6.0
Any idea ?? Thanks in advance !!!
cheers,
Abhijit
|
|
|
|
|
Abhijit Jana wrote: and Getting a JavaScript Error
Which Javascript error?
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Thanks for reply sir,
This is my code block :
xmlHttp.onreadystatechange=function()<br />
{<br />
if(xmlHttp.readyState==4)<br />
{<br />
document.getElementById("txtHint").innerHTML=xmlHttp.responseText;<br />
}<br />
}
and i am getting error on that particual line
Error:
Line : 55 ( Note : document.getElementByID ...... is the 55th Line )
Error : Unknow Runtime Error
if i used innerText insted of innerHTML i am geeting all HTML Code that return by the responseText.
Can you please help !!!
Thanks in advance !!!
cheers,
Abhijit
|
|
|
|
|
string EncryptPassword = FormsAuthentication.HashPasswordForStoringInConfigFile(txtPassword.Text.Trim(), "MD5");
how dircrypt it to forword it to forgot password mail
|
|
|
|
|
You don't DEcrypt anything encrypted by a hash algorithm.
|
|
|
|
|
I have used <object> tag as below. Which is written in .aspx page
<OBJECT ID="Player" width="320" height="45"
CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" >
<param name="src" value="abhijit.mpeg" />
</OBJECT>
I want to pass src parameter of object when i am clicking on Button (a server control) Means I want to play another media file e.g. abhijit2.aspx Then How i can pass this source file abhijit2.mpeg to src parameter or object tag.
How i achieve this ?
Some one help me...
Thanks in advance.
modified on Sunday, October 12, 2008 8:00 AM
|
|
|
|
|
piyush_patel1111 wrote: I want to pass src parameter of object when i am clicking on Button
Let me clear one think, you want to give the source name by clicking a server side button?
please confirm !!!
cheers,
Abhijit
|
|
|
|
|
Yes, I want to pass the source name which file i want to play.
My Actual code is as below. This code is for .aspx file
<OBJECT ID="Player" width="320" height="45"
CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" >
<param name="src" value="abhijit.mpeg"/>
</OBJECT>
I want to play another song Abhijit2.mpeg when i click on button.
Then How i can pass these value to src parameter of object tag.
modified on Sunday, October 12, 2008 7:52 AM
|
|
|
|
|
|
Thanks,
I will try this suggetion.
|
|
|
|
|
Let me know if done
cheers,
Abhijit
|
|
|
|
|
piyush_patel1111 wrote: Thanks in advance.
Just remove one otherwise it will show an error.
SSK.
Anyone who says sunshine brings happiness has never danced in the rain.
|
|
|
|
|
Hi
When I want to delete a user I got an error :
Item has already been added.Key in dictionary:'UserName'Key being added 'UserName'
When I want to add a new user then add it to a role I get the error :
The parameter user must not be empty
and the exception point to the line of code
Roles.AddUserToRole(CreateUserWizard1.UserName,'Users')
I am too late but i will never give up
|
|
|
|
|
im using vb.net 2008. where is the best location to place the code.for example the code for sql (data reader, ds,queery).
Is it better to place code at the header of the page
or in the pagename.vb file
or in a class
I need hints
Thanks
|
|
|
|
|
y_mmohd wrote: where is the best location to place the code
you should have different layer (dll ) for that. In your application you should have presentation, Business and Database layer. and you should have to organaized accroding to them.
cheers,
Abhijit
|
|
|
|
|
Hi all,
iam using login controls for user registration and signing In and out . so may i customize the Membership API ? If yes give me hint or Article to pointer is highly apperciated.
Best Regards
Rameez
|
|
|
|
|
how can i send an email, when a user click a button.
thanks
|
|
|
|
|
Look at the System.Net.Mail.MailMessage class.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
nice to see this answer, this will help me.
Look at the System.Net.Mail.MailMessage class.
|
|
|
|
|
If you can't work this out based on the documentation, the articles on google, and the articles on this site, I recommend you become a plumber.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
|
You know, I've spent four days fighting the asinine Apple documentation to deploy an app in the iPhone, and I find people are still being paid who are too stupid to type a simple question into google. It really amazes me.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|