|
|
actually i want to insert two pictues at page 1 .using two seperate file upload control.images should be inserted at one click when i click submit button .and save the path at database and at page3 want to retrive the images by using the path of the images which comes from the data base .
i want only save path at database .
if anybody knows plz send me the code
thanks .....gaurav
|
|
|
|
|
try this code........
Dim filename As String = //name of ur file
If filename <> "" Then
Dim path As String = //path of file from database
Dim file As FileInfo = New System.IO.FileInfo(Path)
If (File.Exists) Then
Response.Clear()
Response.AddHeader("Content-Disposition", "attachment; filename=" + file.Name)
Response.AddHeader("Content-Length", file.Length.ToString())
Response.ContentType = "application/octet-stream"
Response.WriteFile(file.FullName)
Response.End()
End If
End If
|
|
|
|
|
Hi all...can anyone help me...im trying to retrieve a controls value from a datagrid in asp.net...can anyone assist me with this issue?
living life on the flip side
|
|
|
|
|
In which event you need to know this?
In RowDataBound?
In that case you have e.Row has help
foreach (DataCell cell in e.Row.Cells)
{
foreach (Control ctrl in cell.Controls)
{
}
}
In the second control you can check each control used in a cell of the gridview row
Is it after pressing Update or Delete in the gridview? You need something likt this
protected void Grid_OnCommand(Object sender, EventArgs e)
{
Button btn = (Button)sender;
(GridViewRow) row = (GridViewRow)btn.NamingContainer;
foreach (DataCell cell in row.Cells)
{
foreach (Control ctrl in cell.Controls)
{
}
}
}
Good Luck
|
|
|
|
|
Hi Digimanus...im actually looking to do this in html...if there is a way?
living life on the flip side
|
|
|
|
|
in html?
I do not understand this.
|
|
|
|
|
im trying to get a click event in html to call a javascript function that accesses the value of the control inthe datagrid...
living life on the flip side
|
|
|
|
|
When we r accessing our website after single NATing in the network,the Asp.net2.0 menu control is working fine but when we do double NATing the menu control is not working at all(like it's arrow icon is not coming and no hover effect is there)....in my view it happens only when Webresource.axd file is not accessible/present from the IIS.
|
|
|
|
|
Hi
Can anyone please tell me the regex for URL in javascript.Actully from Googling the regex i got,doesn't solve my problem,because
if i write
http://www.google.com
or
http://www.google
both is passed
i want if user enters www the it should check at least two'.' else one will be enough.
Thanks in advance
|
|
|
|
|
Brij wrote: i want if user enters www the it should check at least two'.' else one will be enough.
try this
/(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/
or Regular Express String
http(s)?://([\w-]+\.)+[\w-]+(/[\w- ./?%&=]*)?
please don't forget to vote on the post that helped you.
|
|
|
|
|
Hi
It doesn't solve my solve.it pass "http://www.home".My issue is,can we make "www" as optional,means
http://www.google.com and http://google.com shold pass
but
http://www.google or http://www.gooogle. should not.
|
|
|
|
|
I have 2 User Controls UserControls1.ascx and UserControls2.ascx
//serverside in Page_Load
if(cond)
{load UserControls1.ascx}
else
{load UserControls2.ascx}
How can I do this one dynamically?
thanks
You get the best out of others when you give the best of yourself.
|
|
|
|
|
trilokharry wrote: How can I do this one dynamically?
Try this code.
UserControl uc = new UserControl();
uc.LoadControl(Server.MapPath("UserControlPath"));
PL.Controls.Add(uc);
please don't forget to vote on the post that helped you.
|
|
|
|
|
thanks
You get the best out of others when you give the best of yourself.
|
|
|
|
|
i am using following code for freezing Header of Gridview
<style type="text/css>.DataGridFixedHeader { POSITION: relative;; TOP: expression(this.offsetParent.scrollTop-2); BACKGROUND-COLOR: white ></style>
Its fix the header while i scroll the div , but when i scroll browser scroll bar its postioin change.please help
modified on Friday, July 18, 2008 2:32 AM
|
|
|
|
|
I'm not clear about what you are asking,
While scrolling the div scroll bar and browser scroll bar, The grid view header should be fixed. Is this the requirement?
|
|
|
|
|
Sherin Iranimose wrote: While scrolling the div scroll bar and browser scroll bar, The grid view header should be fixed. Is this the requirement?
yes. That's i want.
but now , when i scroll div Grid header is fixed, but if i scroll Browser scroll bar first then div , Header postion is remain same , means i am getting header in between grid.
please help !!!
cheers,
Abhijit
|
|
|
|
|
Try this
css class
<br />
.gridContainer {overflow:auto;}<br />
.gridContainer table th {position:relative;}<br />
.gridContainer table tbody {overflow-x:hidden;}<br />
put your grid inside the following div
<br />
<div class="gridContainer" style="height:500px; width:600px; overflow:auto;"><br />
</div><br />
EVEN THE WORD IMPOSSIBLE SAYS I M POSSIBLE.
|
|
|
|
|
Try this
Click Here
Hope it will help u
Unless u don't give ur hundred percent whatever u r doning till there is no result of ur work...
|
|
|
|
|
want to create a setup for my vb.net desktop applicationt.
i will run my project on that system which dont have Visual Studio Install and any .NET framework.
.
what step i hav to follow,
thanks
kissy
|
|
|
|
|
I am Using Dev Express Aspxgrid.Int the grid bind some da6tas and enable edit button in the grid.When i click edit i want to check the vallidation of the editable data using clientside event of the grid.How is it possible.
|
|
|
|
|
create a javascript. That works client side
|
|
|
|
|
--> What is the difference between the data access code of Windows Apps and Web Apps..?
J A Nasir K
|
|
|
|
|
Jamal Abdul Nasir wrote: data access code of Windows Apps and Web Apps..?
Database access ? Nothing.
|
|
|
|